![]() |
Hook to display my HTML before threads list in a forum - 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: Hook to display my HTML before threads list in a forum (/thread-169975.html) |
Hook to display my HTML before threads list in a forum - gelembjuk - 2015-04-23 HI All, I want to display some custom HTML in a forum before a list of threads on a forum display page. How can i do this with a plugin and hooks? I know how to do a plugin. I can not find how to do this with hooks RE: Hook to display my HTML before threads list in a forum - Destroy666 - 2015-04-24 First read this: http://docs.mybb.com/1.8/development/plugins/templates/#modifying-templates-to-add-a-variable - do that during installation/activation. Then initialize the variable added to a template in a hook connected with the page you want to edit - the list of them is here: http://docs.mybb.com/1.8/development/plugins/hooks/ You can see that for instance forumdisplay_start can be used. |