MyBB Community Forums

Full Version: Plugins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I have PHP and Javascript scripts, how to I get them on my forum? I tried uploading some to my /inc/plugins/ directory, but it turns them on automatically. (It either screws up the board or doesn't do what it was meant to do.)

I need to display this code on my forum right under the logo, at all times.

<!-- BEGIN CBOX - http://www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder="0" width="500" height="225" src="http://www.cbox.ws/box/?boxid=733227&amp;boxtag=8504&amp;sec=main" marginheight="0" marginwidth="0" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border: 0px solid;" id="cboxmain"></iframe><br>
<iframe frameborder="0" width="500" height="75" src="http://www.cbox.ws/box/?boxid=733227&amp;boxtag=8504&amp;sec=form" marginheight="0" marginwidth="0" scrolling="no" allowtransparency="yes" name="cboxform" style="border: 0px solid;border-top:0px" id="cboxform"></iframe></div>
<!-- END CBOX -->
[Wiki: Admin_CP_Templates] (Broken link, head over to docs.mybb.com instead)
I don't understand though, why does my PHP script load automatically without me having to (Or having the option to) turn it on/off?
Because... you did it wrong?
Did the script wrong? O_o All it does is display "Hello World". Are you supposed to code the on/off function with it, or something?
the on/off function should be in the plugin script as all times, and should be written to conform to our plugin standards set here: [Wiki: Authoring_Plugins] (Broken link, head over to docs.mybb.com instead)
Well your code is supposed to be in a function, so it doesn't automatically get executed when MyBB finds out what plugins are available Smile