Topic: New BBCode

Does anyone know how to add your own BBCode? i.e. [font color="red"]This is red![/font] Anyone?

[img]http://forums.punbb.org/img/smilies/cool.png[/img]This is me.[img]http://forums.punbb.org/img/smilies/cool.png[/img]

Re: New BBCode

yeh you would have to edit the parser, and coloured text it part of punbb anyway look in the help This is Green!

3

Re: New BBCode

Connorhd wrote:

This is Green!

No it isn't.  tongue

4

Re: New BBCode

roo wrote:
Connorhd wrote:

This is Green!

No it isn't.  tongue

You've never heard of "Leeds Green"?. It's like Lincoln Green only redder.

5

Re: New BBCode

I'd like to add the ability for one or two heading tags - <h2></h2> and <h3></h3>.  Is it fairly straightforward?  I haven't looked at the code in parser.php yet but am assuming it won't be too difficult.

Re: New BBCode

it wouldn't be too difficult just add an extra thing next to a simple on like [b] but h2 might cause you problems as that is used alot in punbb

7

Re: New BBCode

Thanks.  I wouldn't use it here - it's for a custom CMS I'm working on.

Re: New BBCode

Where is it in parser.php? I'll put in the code, but which line?

[img]http://forums.punbb.org/img/smilies/cool.png[/img]This is me.[img]http://forums.punbb.org/img/smilies/cool.png[/img]

Re: New BBCode

hmm what do you want to add?

Re: New BBCode

Things like: font type (i.e. Courier New), view all the colors (unless processed ex: adds whatever entered into tage without thinking 'bout it), headers, strikeout, more or less along those lines.

[img]http://forums.punbb.org/img/smilies/cool.png[/img]This is me.[img]http://forums.punbb.org/img/smilies/cool.png[/img]