dear Lynne the if statement is cover a menu of 3 choices for each choice the variable take a value so I don't think that the if statement not evaling to true. like this one:
PHP Code:
if ($vbulletin->options['ain_code_custom'] == 1){
$ain_width = 728; $ain_height = 90;}
elseif ($vbulletin->options['ain_code_custom'] == 2){
$ain_width = 468; $ain_height = 60;}
else { $ain_width = 234; $ain_height = 60;}
when I use $ain_width & $ain_height in a template it's not shown but if I assign if statement I don't get the variable.
hook name is
parse_templates
Quote:
Most likely, $vbulletin is not in scope
|
how can I determine if hook in scope of $vbulletin?
--------------- Added [DATE]1236519897[/DATE] at [TIME]1236519897[/TIME] ---------------
sorry I found the problem .. it's not about if statement ..
I am just a stupid