Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 9 Months, 4 Weeks ago [How To?] (Solved) Enable Portal Plugins
#1
Solved: 4 Years, 9 Months, 4 Weeks ago
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!
Reply
#2
Solved: 4 Years, 9 Months, 4 Weeks ago
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
Reply
#3
Solved: 4 Years, 9 Months, 4 Weeks ago
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!
Reply
#4
Solved: 4 Years, 9 Months, 4 Weeks ago
^ well, existing function which displays required information can be tried for the portal_start hook
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)