MyBB Community Forums

Full Version: Header Linking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to make it so that when people are in the portal (index.php), my logo which is in the header links to the index.php. I want it so when people are on the forum the logo links to the forum (forum.php). How can I do this. I thought about making a new template for the header that links the logo to a different link but then when I add new plugins the new plugins code from the other header template wouldn't be added.

This is probably really confusing so I will go over it again really quick. When I am on the portal (index.php) I want the header logo to link to index.php and I want it so when people are on the forum (forum.php) the header logo links to forum.php when clicked.

Any way I can do this? Thanks!
I am not 100% sure because I don't have a copy of MyBB with me, but in the header template, there should be something saying index.php in the logo code. Change that to forums.php.
Header template find

<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

and replace with

<div class="logo"><a href="{$mybb->settings['bburl']}/forum.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
That just links the logo to forum.php everytime.
You'll need the PHP in templates plugin, or another plugin, you can't have it going to different links depending on what page you're on by default.