2010-07-18, 04:05 PM
I have 3 add hook
but evals don't give me templates
when I echo $hbb_d or ... I get them!!
$plugins->add_hook("editpost_start", "hbb_do");
$plugins->add_hook("newthread_start", "hbb_do");
$plugins->add_hook("newreplay_start", "hbb_do");
and one function by the name hbb_do()but evals don't give me templates
function hbb_do()
{
global $db, $templates;
eval("\$hbb_up = \"".$templates->get("hbb_up")."\";");
eval("\$hbb_h = \"".$templates->get("hbb_h")."\";");
eval("\$hbb_d = \"".$templates->get("hbb_d")."\";");
}
when I echo $hbb_d or ... I get them!!