MyBB Central

Full Version: How do you add new TopLinks?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been trying to add new toplinks lately, I can add the link and all, but the actual words doesn't show up.

I tried doing a games section link, and I used this:

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

But it didn't show up, it shows the little picture, and if you click it takes you there, but there is no text.

Because you probably haven't got a language variable in any language file for 'games'. Just replace {$lang->toplinks_games} with 'Games'.
Oh, ok, I will try it out now.

Oh thanks, it works great! Is there any way I can centre the links though?
Use <center>toplinks here </center>
(Dec 31, 2008, 01:58 PM)paul-am Wrote: [ -> ]Use <center>toplinks here </center>

The center tag is not xhtml.

Use the css. Alter the toplinks to be text-align:center where it says text-align:right.

That's it.
can you use this for external game links.. one that is a sub to the forum for instance ...

But when I do that there is a problem with display of the image that I uploaded to toplinks. I don't understand why but just the link games appears. I even have it in png as the other images are and in the same folder...

<li><a href="{$mybb->settings['bburl']}/games"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/gamefolder.png" alt="games" title="" /></a> </li>
As I said to your thread on the comm forums, you're putting gamefolder.png in the URL but the image is called gamesfolder.png