MyBB Community Forums

Full Version: Add links to nav bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you add links like these;
[Image: jICrN.png]
but more of them, and have a url to it and you can make it?
ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>
(2012-12-22, 03:22 AM)Kondux Wrote: [ -> ]ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>

do i have to add the
{$mybb->settings['bburl']}
and what is that for?
(2012-12-22, 03:28 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:22 AM)Kondux Wrote: [ -> ]ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>

do i have to add the
{$mybb->settings['bburl']}
and what is that for?
No, you do not NEED to have it. that's just your forum url. However, it does save you time than typing your forum url in everyone.
(2012-12-22, 03:33 AM)Kondux Wrote: [ -> ]
(2012-12-22, 03:28 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:22 AM)Kondux Wrote: [ -> ]ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>

do i have to add the
{$mybb->settings['bburl']}
and what is that for?
No, you do not NEED to have it. that's just your forum url. However, it does save you time than typing your forum url in everyone.

How so?
(2012-12-22, 03:43 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:33 AM)Kondux Wrote: [ -> ]
(2012-12-22, 03:28 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:22 AM)Kondux Wrote: [ -> ]ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>

do i have to add the
{$mybb->settings['bburl']}
and what is that for?
No, you do not NEED to have it. that's just your forum url. However, it does save you time than typing your forum url in everyone.

How so?

It's also much easier should you wish to change to a different domain rather than having to manually edit every single template that you may have used your forum URL rather than {$mybb->settings['bburl']}. That way you only need to change your Board URL in General Configuration. Smile
(2012-12-22, 09:51 AM)Vernier Wrote: [ -> ]
(2012-12-22, 03:43 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:33 AM)Kondux Wrote: [ -> ]
(2012-12-22, 03:28 AM)MYBB GHOST Wrote: [ -> ]
(2012-12-22, 03:22 AM)Kondux Wrote: [ -> ]ACP > Templates & Styles > Templates > {your theme} > Header Templates > header > Add it underneath all the other coding in the menu bar.

Follow this template:
<li><a href="{url}"><img src="{img}" alt="" title="" />{Name}</a></li>

do i have to add the
{$mybb->settings['bburl']}
and what is that for?
No, you do not NEED to have it. that's just your forum url. However, it does save you time than typing your forum url in everyone.

How so?

It's also much easier should you wish to change to a different domain rather than having to manually edit every single template that you may have used your forum URL rather than {$mybb->settings['bburl']}. That way you only need to change your Board URL in General Configuration. Smile

Oh, ok.