MyBB Community Forums

Full Version: how do i add a top link menu please?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to add a new top link menu, currently on the template there is a link for member lists, help, user CP etc, i want to add a donation page, , i opened the header template ans the code was there for the other top links, so i have just used that, and added my donation page details and an image but only the image shows is there another page that i have to add the actual word "Donate" on? the code i added to the header template was
<li><a href="{$mybb->settings['bburl']}/donate.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/quid.png" alt="{$lang->toplinks_donate}" title="{$lang->toplinks_donate}" />&nbsp;{$lang->toplinks_donate}</a></li>

however what i have noticed is that the text in the header template is different to the actual text that is displayed on the main page, for example the member list code in the header template is as follows
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.png" alt="{$lang->toplinks_memberlist}" title="{$lang->toplinks_memberlist}" />&nbsp;{$lang->toplinks_memberlist}</a></li> but on the main forum the word "member list" is shown as two seperate words and also with capitals but yet in the code the word memberlist is always one word, i have searched the other templates but just cannot find anywhere else to add anything

sorry if thats confusing
{$lang->toplinks_donate} is looking in the language array for a toplinks_donate entry.You will have to add it.
Open you /inc/languages/(Your Language)/global.lang.php and add a donate entry:
$l['toplinks_donate'] = "Donate";
You will have to do this for any language used by your board.
It's easier to just type the text you want to show really, otherwise you'll need to keep editing that file if it's ever changed in an upgrade.