MyBB Community Forums
postbit_author_user hook? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: postbit_author_user hook? (/thread-176059.html)



postbit_author_user hook? - marcus123 - 2015-08-25

I ma using hook to postbit and use function test (&$post) and add $post['test'] to postbit_author_user but nothing shows what's wrong?


$plugins->add_hook("postbit", "test");



RE: postbit_author_user hook? - Sazze - 2015-08-25

The hook seems fine. What's the full code of the function?


RE: postbit_author_user hook? - marcus123 - 2015-08-26

Thanks buddy the fix is very simple Smile


$post['user_details'] = "{$post['user_details']} <br/>{$post['test']}";