REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you add new TopLinks?
#1
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.

?
[Image: mybbsig.php]
Reply
#2
Because you probably haven't got a language variable in any language file for 'games'. Just replace {$lang->toplinks_games} with 'Games'.
Reply
#3
Oh, ok, I will try it out now.

*EDIT*
Oh thanks, it works great! Is there any way I can centre the links though?
[Image: mybbsig.php]
Reply
#4
Use <center>toplinks here </center>
Reply
#5
fantastic
Thanx
Reply
#6
(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.
Reply
#7
can you use this for external game links.. one that is a sub to the forum for instance ...
http://www.myforum.com/games

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>
Reply
#8
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
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  how to add latest thread to my sidebar jhaycy17 1 1,252 Jul 16, 2014, 04:05 AM
Last Post: Imad
  Please add your Forum URL labrocca 49 28,334 Aug 28, 2010, 01:46 PM
Last Post: Nеxus Boss

Forum Jump:


Users browsing this thread: 1 Guest(s)