One more thing...
how to do a OR condition. <vb:if condition="$xxx" OR condition="$yyy" > With OR and || is not working... |
Quote:
Code:
<vb:if condition="($x == $y) OR ($x == $z)"> |
|
I want to restrict some custom BBcodes to only certain usergroups (moderators and higher).
I tried to wrap BBcode inside this statment, but it doesn't work: Code:
<vb:if condition="$post['usergroupid'] == 6"> |
Conditionals like these (Template Conditionals) only work in templates, they don't work in BB Codes.
There is a mod, "Advanced BB Code Manager" that is for an older version of vBulletin but still works on the latest 4.x it has been reported. Only way of doing this without writing your own mod. |
Thank you. It would be good if someone makes new mod for managing BBcode. Hopefully someone would...
|
Is there a condition for all pages/content with a certain section of the cms?
|
Some more conditions you can add to your list:
Show only if vBulletin notices are not shown Code:
<vb:if condition="!$show['notices']"> Code:
<vb:if condition="$GLOBALS[forumid] == X"> But I have one question. Is there a condition to show something only in the second post of each thread and page? Something like "isfirstshown" just for the second post? |
There's no condition specifically for 2nd posts but if you set your forum to a set number of posts per page you could make a condition like:
Code:
<vb:if condition="$post[postcount] == 2 OR $post[postcount] == 12 OR$post[postcount] == 22 OR $post[postcount] == 32 OR $post[postcount] == 42 OR $post[postcount] == 52 OR $post[postcount] == 62"> Otherwise I'd imagine a plugin could be written to keep count and be true only for 2nd posts. |
how is conditional syntax for the thread that has been closed?
example: <vb:if condition="closed thread???"> show message cause thread that has been closed </vb:if> |
All times are GMT. The time now is 06:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|