MyBB Community Forums

Full Version: How to make the "board logo" a clickable link?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can we make it so the logo above out forums is a clickable link?
It should already be to your index.php page.

Anyways, in your header template (ACP > Templates & Style > Templates (In the sidebar) > Your Theme > Header Templates > header)
Find something like:
<img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />
and change it to
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>

If you need any more help or this does not work, let me know.
Thanks GamerVoid, but when I try to do that, I get this error:

The following errors were encountered:
•A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
Above code is fine, you need to make sure you do not have any extra characters like &nbsp; after pasting that code.
Make sure there aren't any $config variables in there. Ex: $config['admin_dir'], or any typos on something like $mybb->something. There was a user in another thread that must've made a typo and had $-> in theirs.

If you don't find any of those, then could you post up the whole contents of your header template (in code or php blocks here)?

Thanks!
Thanks for the reply, here's what is in my header template:

Quote:div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></p></div> <div class="menu"> <ul> <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li> <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li> <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li> </ul> </div> <hr class="hidden" /> <div id="panel"> {$welcomeblock} </div> </div> <hr class="hidden" /> <br class="clear" /> <div id="content"> {$pm_notice} {$bannedwarning} {$bbclosedwarning} {$unreadreports} {$pending_joinrequests} <navigation> <br />
Is there a < character before the very first div?
I'll check.

Thanks for your help GamerVoid.
Yes, there is a < right before the first "div id="container..."
Hey guys, I still can't get this to work. All that happens when I click on my forum header is it brings me back to the front page of my forums (http://theripetomato.ca/forums), but I want it to link to my home page (www.theripetomato.ca). Any thoughts?

Quote:<div id="container"> <a name="top" id="top"></a> <div id="header"> <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div> <div class="menu"> <ul> <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li> <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li> <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li> </ul> </div> <hr class="hidden" /> <div id="panel"> {$welcomeblock} </div> </div> <hr class="hidden" /> <br class="clear" /> <div id="content"> {$pm_notice} {$bannedwarning} {$bbclosedwarning} {$unreadreports} {$pending_joinrequests} <navigation> <br />
Use this code then:
<div id="container">	 <a name="top" id="top"></a>	 <div id="header">	 <div class="logo"><a href="http://theripetomato.ca/"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>	 <div class="menu">	 <ul>	 <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>	 <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>	 <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>	 <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>	 </ul>	 </div>	 <hr class="hidden" />	 <div id="panel">	 {$welcomeblock}	 </div>	 </div>	 <hr class="hidden" />	 <br class="clear" />	 <div id="content">	 {$pm_notice}	 {$bannedwarning}	 {$bbclosedwarning}	 {$unreadreports} {$pending_joinrequests}	 <navigation>	 <br />
It should work and go right to where you want when you click on the image :]
Pages: 1 2