![]() |
Advanced BBCode (Use conditionals in BBCodes)
It kind of bothered me that you couldn't use vBulletin conditionals in the BBCodes. For example you couldn't use <if condition="$bbuserinfo[usergroupid] == {option}">{param}</if>.
With this small hack you can customize your BBCodes by using vBulletin's own conditionals. Installing Download the plugin XML. Go into to your ACP --> Plugins & Products --> Download / Upload Plugins. Scroll to the bottom of the page. Browse to vbulletin-plugins_adv_bbcodes.xml and click "Import". View the screenshot for an example BBCode you can use. |
I hope you like this hack.
|
Thanks :)
|
sweet
|
Thanks you two.
|
Superb! This opens much more possibilities - thanks. :up:
|
Great idea.
Anyway to set it to use an array for multiple groups? |
Can you make it such, that it doesn't ignore the "<else />" statement?
Sometimes the "<else />" works one time and then not. This would be very helpful if you could fix that. |
What replacement code are you using?
|
Quote:
|
All times are GMT. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|