problem with hook
#1
Hi guys I'm making a plugin and I have a problem with hook, this is the code:

$plugins->add_hook("build_forumbits_forum", "ficon_icon");

function ficon_icon() {
    global $forum, $ficon, $templates;

    if($forum['icon_url'] != "") {
        eval('$ficon = "'.$templates->get('ficon_index').'";');
    } else {
        $ficon = "<small>Forum Icon</small>";
    }
}

It don't show me any error and don't show me template or text "Forum Icon", how I can fix it?
My Projects - Support My Projects

Don't forget to rate posts!
Reply


Messages In This Thread
problem with hook - by chack1172 - 2015-09-09, 01:18 PM
RE: problem with hook - by Sazze - 2015-09-09, 01:46 PM
RE: problem with hook - by chack1172 - 2015-09-09, 04:50 PM
RE: problem with hook - by Destroy666 - 2015-09-10, 10:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)