This seems to work not well with global arrays;
config.php
phpinclude_start
And the vBulletin Conditionals where I want to recognize if the Thread's forumid is in $fmarket2;
Error:
But works fine as:
Could anyone tell me if I'm doing something wrong or is it something in vBulletin that's wrong?
config.php
PHP Code:
$fmarket = '10,13,14,16,28,29,30,31,32,33,36,37,38,39,41,43,48';
$fcommun = '3,4,5,6,7,8,17,18,19,22,23,24,44,45,46,47,49,50,51';
PHP Code:
$fmarket2 = explode(",",$fmarket);
$fcommun2 = explode(",",$fcommun);
Code:
<if condition="in_array($thread['forumid'],$fmarket2"><span class="smallfont">[market]</span></if>
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected ';' in /home/aros/public_html/dev/includes/adminfunctions_template.php(3054) : eval()'d code on line 67
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Parse error: parse error, unexpected ';' in /home/aros/public_html/dev/includes/adminfunctions_template.php(3054) : eval()'d code on line 67
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Code:
<if condition="in_array($thread['forumid'],array(10,13,14,16,28,29,30,31,32,33,36,37,38,39,41,43,48))"><span class="smallfont">[market]</span></if>
Comment