Vaupell
02-10-2010, 09:35 PM
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.. :eek:
--------------- Added 1265845400 at 1265845400 ---------------
okay if i remove the vB:: infront then i dont get any errors :D
lol...
--------------- Added 1265846228 at 1265846228 ---------------
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
$output = "hello <br /><hr />";
$output .= "ewen more hello - " . $vbulletin->options['ew_highcol'] ;
return $output;
--------------- Added 1265847712 at 1265847712 ---------------
Solved
Need to add
global $vbulletin, $vbphrase;
infront of it all..
$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.. :eek:
--------------- Added 1265845400 at 1265845400 ---------------
okay if i remove the vB:: infront then i dont get any errors :D
lol...
--------------- Added 1265846228 at 1265846228 ---------------
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
$output = "hello <br /><hr />";
$output .= "ewen more hello - " . $vbulletin->options['ew_highcol'] ;
return $output;
--------------- Added 1265847712 at 1265847712 ---------------
Solved
Need to add
global $vbulletin, $vbphrase;
infront of it all..