The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Oh dear I must have been half asleep when I wrote this the first time, try this:
Code:
<if condition="in_array($bbuserinfo[userid], array(132))"> CODE 1 <else /> <if condition="in_array($bbuserinfo[userid], array(213))"> CODE 2 <else /> <if condition="rand(0, 3)"> CODE 1 <else /> CODE 2 </if> </if> </if> |
#12
|
|||
|
|||
Still get the following Vbulletin error message:
: <if condition="rand(0, 3)"> rand rand(0, 3) in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of() --------------- Added [DATE]1209653757[/DATE] at [TIME]1209653757[/TIME] --------------- I now pasted this code directly into the template and got this error message: vBulletin Message The following template conditional expression contains function calls: <if condition="rand(0, 3)"> Function Name Usage in Expression rand rand(0, 3) With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression. The following functions are allowed in template conditional expressions: in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of() |
#13
|
|||
|
|||
AdminCP > Plugins & Products > Add New Plugin. Set the following:
Product: vBulletin Hook Location: template_safe_functions Plugin PHP Code: PHP Code:
|
#14
|
|||
|
|||
Works great! Thank You!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|