MyBB Community Forums

Full Version: Adding new things to the menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey i'm having trouble adding things to the top menu where it's got the Search, member list etc.

ive managed to add a extra one in linking to a page but when i edit the text it doesn't show up and i can't figure out why. Confused

Can someone help please. Smile
What code have you added?? It sounds live you've added a language variable but haven't added any text for that variable to show.
This is part of the code. The one i added is at the bottom.

<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>
                                        <li><a href="{$mybb->settings['bburl']}/radio.html"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/star.png" alt="" title="" />{$lang->toplinks_search}</a></li>
If {$lang->toplinks_search} doesn't work, just type what you want to show....
Eh...

I put search in because that does work but if i take it out and put in what i want it doesn't show up.
It's just standard HTML Confused If you can put it back to what you want, and give a URL to your forums, we can see it... also, the way you've posted, makes it look like the variable for Search wasn't working, hence me saying what I did Wink I needed what didn't work, not what does work...

Edit: Seems to be solved, it was what I said in my first post. There was a new language variable but as nothing had been added to a language file, it wouldn't show anything, which is what I was getting at in my first post. You can't just put in a new language variable without telling the language files what that variable means. When I said 'type what you want to show', I meant literally type the text you want, so 'Radio'.