Want to use this option in forum blocks
$highcol = vB::$vbulletin->options['ew_highcol'];
Getting this error
Fatal error: Class 'vB' not found in C:\xampp\xampp\htdocs\emod\includes\block\html.php (89) : eval()'d code on line 2
so i am worried that i cannot retrive vb options in blocks? cant find any
code bits using that in blocks..
--------------- Added [DATE]1265845400[/DATE] at [TIME]1265845400[/TIME] ---------------
okay if i remove the vB:: infront then i dont get any errors
lol...
--------------- Added [DATE]1265846228[/DATE] at [TIME]1265846228[/TIME] ---------------
Well errors might be gone..
but i simply cant get a response from options as if no data is there..
but if i print the option in a template to test, it returns 1
PHP Code:
$output = "hello <br /><hr />";
$output .= "ewen more hello - " . $vbulletin->options['ew_highcol'] ;
return $output;
--------------- Added [DATE]1265847712[/DATE] at [TIME]1265847712[/TIME] ---------------
Solved
Need to add
global $vbulletin, $vbphrase;
infront of it all..