MyBB Source

everyBB - The forum owners community

4,000 Members! | Small Policy Change

Latest Releases: Valid Referrals - Bonus - Mark Thread Read

 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add new buttons to your message bar w/o Plug.ins
Author Message
mephistox
Junior Member


Posts: 21
Joined: Jun 2010
Reputation: 0
MyBux: 4
Post: #1
Add new buttons to your message bar w/o Plug.ins
Hi Again:

Well, this time i'll explain how to customize the forum menu. (the menu that puts Calendar, Memberlist...etc).

Step #1:

Go to AdminCP => Templates & Styles => Templates => YourTemplate => Header Templates => Header (Usually in green).

Step #2

Search for:

Code:
<div class="menu">
<ul>

As you can see, there are several lines like:

Code:
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

And well, it's obvius, if you want to add new items to the menu, just copy one of this lines and modify it:

Code:
<li><a href="{$mybb->settings['bburl']}/urltogo"><img src="{$mybb->settings['bburl']}/images/image.ext" alt="" title="title on mouseover" />Name of the Item</a></li>




And reeplace:

- urltogo: forum url to go. (like /awards.php?), if you want to go to an outside url, just delete {$mybb->settings['bburl']}, and add the http:....

- image.ext = the Image file that you want to show, with it extension. (Gif, png...whatever).

- title on mouseover = Well, that.

- Name of the item = The name that will appear next to the image.

The place that you add the new line, will determinate where the item will appear.

Code:
            <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>

Your new line here, for example it will show your item at the end of the bar.
                </ul>
            </div>

------------------

Well, save and test.


Well, that's all, any question, I'll help

enjoy!
(This post was last modified: 07-18-2010 02:03 PM by mephistox.)
07-18-2010 02:02 PM


Miraj
Junior Member


Posts: 22
Joined: Jul 2010
Reputation: 0
MyBux: 2
Post: #2
RE: Add new buttons to your message bar w/o Plug.ins
Wow this helps thanks!,
But I need help I installed a Rules Page and I just don't know how to add it to the menu I'm a great at coding.

<a
href="{$mybb->Rules['bburl']}/misc.php?action=rules"><img
src="{$mybb->Rules['bburl']}/{$theme['imgdir']}/toplinks/rules.gif (IDK WHAT THIS IS SUPPOSED TO BE I ADDED A TINY PIC OF THE IMAGE ITS SUPPOSED TO BE!!!)"
alt="" title="" />{$lang->toplinks_? (IDK!! I TRIED RULES IT DOESNT SHOW UP ON THE MENU WHEN I SAVED IT!!!}</a>

Can you help me with it.
07-20-2010 04:08 PM
Miraj
Junior Member


Posts: 22
Joined: Jul 2010
Reputation: 0
MyBux: 2
Post: #3
RE: Add new buttons to your message bar w/o Plug.ins
Can anyone just set mine up for me so all i have to do is add it to the header.
Yesterday 02:44 PM
 





Web Design | Web Design Jobs