MyBB Community Forums

Full Version: $drop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way of having $drop (For a dropdown menu) that allows a template file to connect into the header template file?

like how it has $welcome etc.
Yes, you can add menu code in global.php file (near to global_start hook) and evaluate the template (using $drop variable) in header template.
That does not help me one bit as I have no idea what you are trying to say. I haven't used MyBB in a long time so have forgotten some stuff. O.o

I am wanting to implement http://www.dynamicdrive.com/dynamicindex.../index.htm but have one file specifically for the code so the header template does not get all jumbled up.
You already have that file?

If you want to embed that file in the header template and don't want to create a separate plugin for that, you could download PHP in Templates and put this in your template in the place where the menubar should be:
<?php include(MYBB_ROOT."menubar.php") ?>
Where "menubar.php" is a file holding the menubar in the root folder of mybb.
Perfect. Cheers Smile