MyBB Community Forums

Full Version: Need help adding links to mybb header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i need some help adding links/pictures to the header (where search, memberlist, and calender are) in the apart leaf theme. I've tried doing the default mybb theme way of adding the links but that does not work. The website i am using this theme on is www.auggaming.x10.bz if i could get instructions on how to do this that would be great! Thank you
AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".
(2011-12-06, 02:22 AM)Richard Wrote: [ -> ]AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".

I knew that was where i had to put the code but when i tried putting the code i got from other help places it did not work for this theme! can you give me the code /where to put it (make sure code works with apart leaf theme). thank you
What was the code?
Can you paste it here?
(2011-12-06, 02:47 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:22 AM)Richard Wrote: [ -> ]AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".

I knew that was where i had to put the code but when i tried putting the code i got from other help places it did not work for this theme! can you give me the code /where to put it (make sure code works with apart leaf theme). thank you

(2011-12-06, 02:53 AM)Richard Wrote: [ -> ]What was the code?
Can you paste it here?
(2011-12-06, 02:47 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:22 AM)Richard Wrote: [ -> ]AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".

I knew that was where i had to put the code but when i tried putting the code i got from other help places it did not work for this theme! can you give me the code /where to put it (make sure code works with apart leaf theme). thank you

<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
There that should be it.
(2011-12-06, 04:21 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:53 AM)Richard Wrote: [ -> ]What was the code?
Can you paste it here?
(2011-12-06, 02:47 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:22 AM)Richard Wrote: [ -> ]AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".

I knew that was where i had to put the code but when i tried putting the code i got from other help places it did not work for this theme! can you give me the code /where to put it (make sure code works with apart leaf theme). thank you

<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
There that should be it.

You need to do the following.
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/yourimage.gif" alt="" title="" />http://linktowhatever.com</a>
let me know if it works
(2011-12-06, 04:44 AM)Shannon Wrote: [ -> ]
(2011-12-06, 04:21 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:53 AM)Richard Wrote: [ -> ]What was the code?
Can you paste it here?
(2011-12-06, 02:47 AM)silentknight Wrote: [ -> ]
(2011-12-06, 02:22 AM)Richard Wrote: [ -> ]AdminCP -> Templates & Styles -> Templates (on left hand sidebar) -> "Header Templates" -> "header".

I knew that was where i had to put the code but when i tried putting the code i got from other help places it did not work for this theme! can you give me the code /where to put it (make sure code works with apart leaf theme). thank you

<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
There that should be it.

You need to do the following.
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/yourimage.gif" alt="" title="" />http://linktowhatever.com</a>

it kind of worked but for some reason the link wasnt a clickable link but a picture followed by a url

here is the code i used

<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.gif" alt="Home" title="Home" />http://www.auggaming.x10.bz</a>

i attached a picture of what it looked like before adding the code. then another after adding the code. What i want is a link that can be any url that will be like search, memberlist, and calendar in those pictures (as in i dont want it to say the url but whatever text i tell it to then when you click that text it will take you to the link). also do you have any ideas what would cause the second picture to pop up after the link
So first you edit your template for header.

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

i just copied that, and changed the memberlist.php to portal.php. memberlist.gif to home.gif (something i uploaded.) and i changed toplinks_memberlist to toplinks_home (something i added in global.lang.php)

So images/toplinks thats where you have to upload your icon.
inc/languages/(what one you are using)/global.lang.php thats where you have to add your language.

Then edit the header in templates Big Grin
Use the following code.
<a href="http://www.auggaming.x10.bz"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.gif" alt="Home" title="Home" />Home</a>
Pages: 1 2