Joined: Aug '07
Location: Malta
Age: 42 (M)
Posts: 8340
Currently we support the following (in quite a simple method though, but it works...):
B - bold I - italic U - underline
IMG - for images to be embedded in the post (right aligned as thumbnail)
YOUTUBE - embedding youtube videos, must be the "ID" from the youtube URL (the "4jkgfs4nj3"-part)
QUOTE - well, for quotes...
All the tags must be in uppercase (as written) and start within [X] brackes and end with [/X] brackes (replace X with the tag from the list above).
We might add more later on like color etc., but as of now we will stay with the current ones and have them integrated better into the textarea where people write their post, so it's possible to access the tags with a mouse click. And also make it more fool proof so nothing happens if people forget the end QUOTE tag for example, which currently makes the rest of a thread look weird.
Joined: Aug '07
Location: Malta
Age: 42 (M)
Posts: 8340
Okay, center it is then
Size can be added too, but it's a bit more complicated, the center was just 2 lines of code. With size I need to research a bit on what would be the easiest (and most used) way to do this, if it's like [SIZE= 2] and if yes, what is 2? Is that like 12px etc etc.
size 1 size 2 size 3 size 4 size 5 size 6
Edited by Administrator (01 February 2008 @ 14:49 GMT)
Joined: Aug '07
Location: Malta
Age: 42 (M)
Posts: 8340
We don't use PHP on the site so your example won't work "out of the box"
But for now, I made a simple version of it - and it looks like you already figured out how it works. It goes from 1 to 6 [SIZE=x] ... but remember to end it again with [ /SIZE] otherwise rest of the post will have the same size.
Joined: Jan '08
Location: Germany
Age: 49 (M)
Posts: 144
Posted by Im2good4u: LOL, you already messed up the forums again hahahahaha forgot to end the quote? Someone already did this earlier.
No not forgot, the Script i postet has some Quote Tags i think this was the problem. If this is a programming Forum we need a BBCode to Post Script Code but so on i post only the Link its better.
But you can messe up the Forum with writing simple underline: look - i will remove it in 2 Minutes
________________________
Admin do you know that ? Writing longer underlines will messed up the Forum
Joined: Aug '07
Location: Malta
Age: 42 (M)
Posts: 8340
Yeah thats true mesp, alot of _____________ will of course mess it up. But in 8000 posts I haven't seen it happen in here yet, so no need to do something about it It can always just be edited again if necessary.
------------ Thanks for the BB Code example - I'll have a look at that next week and see if it's something we can use, it might be.
Joined: Oct '07
Location: Philippines
Age: 42 (M)
Posts: 1443
This is very interesting, will read this up when I get back home from work. Might add some good things to the forums. Just don't forget to end quotes or it'll mess up the thread.
Joined: Aug '07
Location: Malta
Age: 42 (M)
Posts: 8340
Hopefully next week we'll have time to make it a bit more fool proof, so that if a start quote is present in a post, an end quote must be there as well. Or perhaps just auto-add an end quote to the end of the post so that it doesn't mess up anything, though the entire post will look like a quote then.
Joined: Oct '07
Location: Philippines
Age: 42 (M)
Posts: 1443
It'll be hard but one thing that can help is to place the possible BB codes on the top or bottom of the message box (when creating a reply.) so all we need to do is copy to code [*] [*] then just type the message inside, this way it will not be forgotten.
Joined: Jan '08
Location: Germany
Age: 49 (M)
Posts: 144
Posted by Im2good4u: It'll be hard but one thing that can help is to place the possible BB codes on the top or bottom of the message box (when creating a reply.) so all we need to do is copy to code [*] [*] then just type the message inside, this way it will not be forgotten.
I Think that can made be clickable by the Admin. A Little Javascript or so
Posted by Administrator: That was some post, mesp Now I feel sorry that I haven't had time yet to make the tags "click to insert"-like, instead of having to type them yourself
No problem. I can write this by mxself if i will use this Features An i use it.
Joined: Jan '08
Location: Canada
Age: 38 (M)
Posts: 1354
lol haha mesp, i cant wait to see your posts after you finish gettin the hang of how brm uses they code.. you built up the anticipations with you "visually appealing" posts lol nice fancy colors and all..