sergey22
Mon 9th Jun '08, 8:20pm
Hi, I'm trying to add my own PHP script that returns an array, so I can use the array variables in the Navbar template, but for some reason I can't get it to work.
1) Short version of the Script looks like this
file is under ./includes/quotes.php
$result = getvariables();
function getvariables () {
$a=1;
$b=2;
return array($a,$b);
}
2) I went to the plugin manager and created a new plugin that looks like this
http://www.vbulletin.com/forum/attachment.php?attachmentid=26612&stc=1&d=1213053369
Question, is there a way to get access to the $result[0] or $result[1] in the Navbar template, and if it is not then what would be an alternative?
I've tried echo results and using $includedphp in the Navbar but it doesn't display anything.
I also have Vbadvanced installed, if that makes any difference, but I don't think it would since navbar does not change.
Thank you very much.
1) Short version of the Script looks like this
file is under ./includes/quotes.php
$result = getvariables();
function getvariables () {
$a=1;
$b=2;
return array($a,$b);
}
2) I went to the plugin manager and created a new plugin that looks like this
http://www.vbulletin.com/forum/attachment.php?attachmentid=26612&stc=1&d=1213053369
Question, is there a way to get access to the $result[0] or $result[1] in the Navbar template, and if it is not then what would be an alternative?
I've tried echo results and using $includedphp in the Navbar but it doesn't display anything.
I also have Vbadvanced installed, if that makes any difference, but I don't think it would since navbar does not change.
Thank you very much.