Template / hook help?
#5
You need to hook to postbit and then in the function you have to mention $post and use $post['whatever'] in the template!

// PostBit hook
$plugins->add_hook("postbit", "hello_world");

// _postbit
function hello_world(&$post)
{
    global $templates;



eval("\$post['whatever'] = \"".$templates->get("your_template")."\";")
       
    }
Reply


Messages In This Thread
Template / hook help? - by Soyabean - 2015-06-14, 09:16 PM
RE: Template / hook help? - by Omar G. - 2015-06-14, 10:06 PM
RE: Template / hook help? - by Soyabean - 2015-06-14, 10:23 PM
RE: Template / hook help? - by Omar G. - 2015-06-15, 06:33 AM
RE: Template / hook help? - by marcus123 - 2015-06-15, 11:52 AM
RE: Template / hook help? - by Soyabean - 2015-06-15, 12:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)