2014-05-15, 10:06 PM
Hello,
I've successfully added a variable under "postbit_classic" template with a plugin that I'm creating.
My problem is, I'm failing to make the variable print out data in the postbit area... So could you tell me what I'm doing wrong?
I am using this hook:
and here is the function:
what am I doing wrong? If i "return $addit_groups;" I get a bunch of errors which relate to eval();
I tried using eval method, but it just prints the postbit area twice.. ;/
Thank you.
I've successfully added a variable under "postbit_classic" template with a plugin that I'm creating.
My problem is, I'm failing to make the variable print out data in the postbit area... So could you tell me what I'm doing wrong?
I am using this hook:
$plugins->add_hook("postbit", "additionalGroupsPostbit_work");
and here is the function:
function additionalGroupsPostbit_work() {
global $db, $mybb, $cache, $addit_groups;
$addit_groups = "so is this gonna work";
}
what am I doing wrong? If i "return $addit_groups;" I get a bunch of errors which relate to eval();
I tried using eval method, but it just prints the postbit area twice.. ;/
Thank you.