2010-12-10, 07:35 PM
Hello All,
I'm doing a plugin and I've to add a var in the header template.
So I wrote this function
But when i write {$logos} in my header template the var is empty..
What should I do?
Thanks
I'm doing a plugin and I've to add a var in the header template.
So I wrote this function
function logos()
{
global $mybb;
$banners = explode("\r\n",$mybb->settings['banners_url']);
if(is_array($banners))
{
$rand = array_rand($banners);
$logos = $banners[$rand];
}
}
This function is with the hook global_end.But when i write {$logos} in my header template the var is empty..
What should I do?
Thanks