PDA

View Full Version : Use VB:IF in BBCODE, possible?


galerio
06-10-2011, 08:51 AM
I would like to use some conditional in BBCODE, for example to create a tag to show some text only to unregistered users (so vb:if condition="$show['guest']").

Is it possible? If not, do you have any workaround?

cellarius
06-10-2011, 09:47 AM
No, its not possible to use conditionals in bbcode, and it would not work if it was possible, because post content is cached.

kpmedia
12-18-2011, 07:10 AM
I've been looking into this today. (I know, bumping an old post.)

There are ways to edit the PHP files, to alter the behavior of standard bbcode, and it works well. But for custom-added bbcode, I've not yet figured out how this can be done. I think you'd have to add the custom bbcode into the vBulletin php files, and from there you could control this.

If you're not REALLY familiar with vBulletin, you're probably up a creek.