How add new bbcode rule? How add new bbcode rule?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How add new bbcode rule?

Started by LFox, June 23, 2008, 01:33:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LFox

How add new bbcode rule?
I need [align=left ] [/align] bbcode rule on my gallery... how can I do this?

Thanx)

Nibbler

Edit the bb_decode() function in include/functions.inc.php.

LFox

well... I edited it and now align tags don't show in the text. But they are still don't work(((

LFox

is this code right or not?

--------------
        // [align=left] and [/align] for align text.
        $text = str_replace("[align=left]", '<align=left>', $text);
        $text = str_replace("[/align]", '</align>', $text);
--------------

Nibbler

No. You have to use HTML that actually exists, not something you made up yourself.

Joachim Müller

There's no HTML tag <align>. Use <div align="left"> or <div style="text-align:left">. As Nibbler suggested: you can't make up HTML tags.