PDA

View Full Version : How tow modify the STANDARD bbcode?


memobug
02-24-2005, 06:45 AM
I've created my own custom codes before, but I want now to modify the standard BBCODE for the URL tag:

I want to change it from <a href="url">target</a> to
<a href="myphpframeset.php?link=url">target</a> so I can put the offsite links into my own frameset

Thanks,

Matt

Xenon
02-24-2005, 05:08 PM
you have to take a look at functions_bbcodeparse.php :)

memobug
02-24-2005, 09:18 PM
Thanks very much Stefan for letting me know where to look.

I am a little surprised the vb folks did that. It would be nice to have some phrase level control of the links and html attributes defined by standard bbcode. I can see where people might want to open in the current or existing window or add CSS attributes to some of them. "Hardwiring" them in php does not seem like the best approach.

Regards,

Matt

Xenon
02-25-2005, 04:18 PM
you're welcome :)

yeah harcoding anything in htlm is a bad way, maybe with the next bigger release those little snipets will be in the phrasesystem as well :)