BBCode Wishlist

Any feedback to improve the content of this site is appreciated!
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: BBCode Wishlist

Post by HaWe »

maybe you asked the wrong question (what exactly was your question? Latex the Life, the Universe, and all the rest?)
maybe try to ask a little simpler Question:
doc-helmut wrote:test:

Code: Select all

[math]{d\over dt}{\partial{T}\over \partial{\dot{\varphi}_j}} - {\partial{}\over \partial{\varphi_j}} (T-V) = 0[/math]
Formula
or try to ask your forum's system administrator... ;)

ps:
what have they done to your face? did you have to listen to some Vogon's poetry?
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: BBCode Wishlist

Post by mightor »

what have they done to your face? did you have to listen to some Vogon's poetry?
It's Halloween and a zombie bit me.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: BBCode Wishlist

Post by muntoo »

mightor wrote:
what have they done to your face? did you have to listen to some Vogon's poetry?
It's Halloween and a zombie bit me.

- Xander
LOL, I need to save this:
Attachments
Xander, after my pet bit him.
Xander, after my pet bit him.
68.jpg (8.97 KiB) Viewed 19082 times
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: BBCode Wishlist

Post by muntoo »

muntoo wrote:LOL, I need to save this:
Still laughing. :lol:

Anyways, can we have support for spoilers?

And with images, we could do this in our signatures to have extra content?:

Code: Select all

[spoiler][img]http://stackoverflow.com/users/flair/365102.png?theme=dark[/img][/spoiler] Over 90px!
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboy
Posts: 29
Joined: 29 Sep 2010, 18:15
Location: Cambridge, UK
Contact:

Re: BBCode Wishlist

Post by nxtboy »

I know how you could fix the Math BBCode. Just open the PHP file, and replace $_POST[] s with $_GET[] s. Change the form to use the get method, and bingo, it works!
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: BBCode Wishlist

Post by mightor »

I tried the GET vs POST thing. The problem is that the arguments are base64 encoded. It will take some time and effort for me to change this to a non-encoded variant. If you can figure it out, let me know and I'll be happy to test it out. PHP is not my favourite language and this seems like a lot of effort for something that will only be used by a very small handful.

- Xander

Code: Select all

if($source) $dynurl = $_SERVER['SCRIPT_URI']."/".str_replace("=","-",base64_encode($source))."/$density/".(($transparent && ($type=="png" || $type=="gif") || $preview && $type=="eps") ? 1 : 0)."/result.$type";

if($source && ($type=="eps" || $inline=="")) { header("Location: $dynurl"); exit(); }

list($encsource,$encdens,$enctrans,$enctype) = explode('/', substr($_SERVER['PATH_INFO'],1));
if ($encsource) $source = base64_decode(str_replace("=","-",$encsource));
if ($encdens) $density = $encdens;
if ($enctrans==1) { $transparent = "yes"; $preview = "yes"; }
if ($enctype) $type = substr($enctype, 7);
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: BBCode Wishlist

Post by muntoo »

OK, this should be easier... and might be more used. Especially by me.

FONTS

And after that, could you make it so that:

In order to kill someone, you need to do this:

Code: Select all

#define LIFE 42
#define DEATH NULL

class Person
{
public:
    string name;
    int age;
    int state;
    Person(string n, int a, int s);
};

Person::Person(string n, int a, int s)
{
    name = n;
    age = a;
    state = s;
}
And now, [`]Person toKill("Xander Sooldat", 42, ALIVE);[/`], and next, [`]toKill.state = DEAD;[/`], and finally, [`]toKill.name = "Barrack Obama";[/`]. That gets past BOTH the CIA and FBI![/i]

Where [ `] and [ /`] make whatever's inside them the font Courier New.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: BBCode Wishlist

Post by muntoo »

Yet another wish(es). :)
  • tags
    [*] The ability to use < img > HTML tags. This way, we can change the image size inside our signatures to make sure they're not over 90 height.

* Testing [`]int main()[/`]
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtreme
Posts: 246
Joined: 29 Sep 2010, 03:53
Location: 192.168.1.2

Re: BBCode Wishlist

Post by nxtreme »

It'd also be nice to have support for sub&superscript (for things like the "2" in I2C. See, doesn't support it yet...). phpBB should support it. I found a few pages that might be of interest: 1, 2. If it's not possible or just too complicated thats fine, just a suggestion.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: BBCode Wishlist

Post by mightor »

Test 1 2 3

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests