[Tutorial]How to edit / add new top links in MyBB[Tutorial] - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: [Tutorial]How to edit / add new top links in MyBB[Tutorial] (/thread-127085.html) |
[Tutorial]How to edit / add new top links in MyBB[Tutorial] - A N K E S H - 2012-10-03 What's a top link? You may be asking, well it's the links that are at the top of your forum, usually to the right hand side. There's two ways to do this, an easy and a less easy way. I'm going to show you both. The less easy, but proper way. 1. Editing the language file. Browse to and open:
The section you're looking for should be at the top, and look similar, if not the same as: 2. In here, just add the top links that you wish to add then save the file, like so: 3. Upload the images you wish to use to your theme's toplink image folder.
4. Editing the header template of your theme On your forum, go to.
These are your top links: Quote:<li ><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a ></li > If you want to do an external link, it's like so: Quote:<li ><a href="http://twitter.com/mcomputeforums" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/twitter.gif" alt="" title="Twitter" />{$lang->toplinks_twitter}</a ></li > Just add your links in as desired, remember to add the right image name etc. The easier way On your top links, eg: Quote:<li ><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />{$lang->toplinks_home}</a ></li > Quote:<li ><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/home.gif" alt="" title="Home" />Home {$lang->toplinks_home}</a ></li > Credit:-Mark RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - try8yes - 2012-10-03 thanks for special tuto RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - koz - 2012-10-04 This is a great tutorial, but I don't see a point in adding these to the language file. RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - Dv0id - 2013-01-09 I don't want the image, so what would I change? EDIT: nvm got it but nice tutorial RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - Jovan J. - 2013-01-09 For example if you have something like this:
You just have to delete image part:
RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - ebineesey - 2013-04-11 Thanks for the tutorial. Question though - Can you elaborate on how to remove the toplink images... where do I edit that code? Do I need to edit it in multiple files? I know just deleting the toplink image folder will get rid of them, but I want to delete the code associated with them too. Thanks for the help- RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - .m. - 2013-04-11 (2012-10-03, 04:10 PM)A N K E S H Wrote: 4. Editing the header template of your theme @ebineesey, you have to edit code in above referred header template. RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - ebineesey - 2013-04-11 (2013-04-11, 06:38 AM).m. Wrote:(2012-10-03, 04:10 PM)A N K E S H Wrote: 4. Editing the header template of your theme Thank you! Great help; guess I missed that small detail! RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - Reserector - 2013-04-30 I prefer the "easier" method of adding the text to the template rather than modifying the global_lang.php. The rason I say that is because when it comes time to do an upgrade, you don't lose your work when the global_lang file is replaced during the upgrade. You changes are saved when you export your themes and include the templates. RE: [Tutorial]How to edit / add new top links in MyBB[Tutorial] - yoshimitsu1234 - 2013-08-27 But how are links added to these new header text and images? |