You're rigth man this code work very well
PHP Code:
$template_hook['headinclude_javascript'] .= 'test';
but if put my code (longer) with some conditionals added doesn't work maybe is the conditionals?
--------------- Added [DATE]1316007000[/DATE] at [TIME]1316007000[/TIME] ---------------
Yes confirm that the conditionals doesn't work
here there is my code
PHP Code:
if ($vbulletin->options['guest_warn_active'])
{
if ($show['guest'])
{
if ($vbulletin->options['guest_warn_cloasable_active']){if ($vbulletin->options['guest_warn_cookie_off']){
$template_hook['headinclude_javascript'] .= 'test3';
}
else {$template_hook['headinclude_javascript'] .= 'test2';
}
}
else
{
$template_hook['headinclude_javascript'] .= 'test4';
}}
}
All that is in the conditionals doesn't work in global_bootstrap_init_complete instad of global_start (the same code work perfectly), all is out of the conditionals work both. I will delete some code until i found the bad condition