![]() |
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))"> |
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() |
AdminCP > Plugins & Products > Add New Plugin. Set the following:
Product: vBulletin Hook Location: template_safe_functions Plugin PHP Code: PHP Code:
|
Works great! Thank You!
|
All times are GMT. The time now is 05:01 AM. |
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:
|