Topic: Adding a center BBCode?

I'm trying to add a BBCode to center/right align text, but I keep having troubles. What would I add to parser.php (I know where to add it) to allow right/center aligned text with BBCode?

Using this kind of format:

[c]CENTER[/c]
[r]RIGHT[/r]

Re: Adding a center BBCode?

Modern BBCode adds right and center aligned text tags.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Adding a center BBCode?

I tried using the center/right codes from that (with the CSS) and it didn't work. =\

Re: Adding a center BBCode?

Did you use [center] and [right]?

Looking for a certain modification for your forum? Please take a look here before posting.

5 (edited by The Game 2006-08-18 21:52)

Re: Adding a center BBCode?

Yeah, but I used [c] and [r]. Should I put them back to the default?

EDIT: lmao. I fixed it. I forgot the [/c] in the source, and that was the only one I tested.

Thanks for suggesting the Modern BBCode, btw. smile

Re: Adding a center BBCode?

Wait, so did you modify the mod's code or something? Go ahead and try the mod in its original form, and see if it works. There's no need to make things more complicated, at least not until you know whether or not the mod works in its stock form.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Adding a center BBCode?

Yeah, I fixed it. Forgot the closing tag. Thanks, though. big_smile