MyBB Community Forums

Full Version: (Solved) Enable Portal Plugins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

There's some way to enable the plugins for Portal? - For example I have HTML in Post, or Hide Until Post, and that stuff but when you enter in portal.php any of this plugins are enable.-

Its Mybb 1.8.3 - Theme for 1.8.-

Well I make work the HTML in portal with: "allow_html" => 1,
But, what about the other plugins ?

Thanks!
plugins use hooks to show required information on the specific pages.

portal related hooks are portal_start , portal_announcement , portal_end

in general, portal_start hook is used in the plugins

see also this guidance => plugins & hooks explained
Hi .m.,


Thanks for your reply, well I read about, a bit and make some test but not good results, Im not programmer in my case, but in basic I understand you need to add in the plugin:

$plugins->add_hook('portal_start', 'Name_Function');


And then in the plugin you need to create the function, and thats the imposible part for me.

Oh well, I find another way to do it, I just add this line to the plugin, I start to read the code and find the variable THIS_SCRIPT, so I add THIS_SCRIPT == "portal.php" and works great!
Thanks!
^ well, existing function which displays required information can be tried for the portal_start hook