MyBB Community Forums

Full Version: Ads & New Buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
At the very top left of the forum is obviously the logo with a large white space to the right - Is there a way for me to insert an iframe of code like the rest of my web site uses for ads? I use a specific size and would like to use that space.

Next, I have the portal turned on so it appears, when logged in, next to Search, Member List, Help - is there a way to add yet another button or link to say a chat function in that menu area? And if yes, how?

Unlike most of you whiz kids, I'm an old hardware guy so not at all up to speed on the various codings. Any help is very much appreciated.
you need to edit, ACP >> Templates >> Header Templates >> header


Find this part in the template....

<div id="logo">
<div class="wrapper">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
<ul class="menu top_links">
{$menu_portal}
{$menu_search}
{$menu_memberlist}
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
</ul>
</div>
</div>


and change it to something like this........

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

//YOUR iframe code here with style="float: right;" like this//
<iframe style="float: right;">AD CODE</iframe>


<ul class="menu top_links">

//ADD THE CHAT LINK HERE LIKE THIS
<li><a href="enter_chat_page_link.php" class="chat">Chat</a></li>

{$menu_portal}
{$menu_search}
{$menu_memberlist}
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a>
</li>
</ul>
</div>
</div>
Thank you for the response and will make the changes shortly.
This is a good idea to put a ads in the right white space.I get it.