MyBB Community Forums

Full Version: How to get ad in header??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've done hours of searching and even found similar threads on here explaining how, but the coding is much different (old threads, old mybb versions)

Here is what I'm looking for...

[Image: Ad_space_hearder.png]

Here is my Header Template code:


<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<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>
				</div>
			</div>
			<div id="panel">
				<div class="upper">
					<div class="wrapper">
						{$quicksearch}
						{$welcomeblock}
					<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
				<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
			</div>
		</div>
		<div id="content">
			<div class="wrapper">
				{$pm_notice}
				{$bannedwarning}
				{$bbclosedwarning}
				{$unreadreports}
				{$pending_joinrequests}
				{$awaitingusers}
				<navigation>
				<br />{myadvertisements[zone_1]}

I've tried everything.  Different locations, different codes...etc I'm officially stuck.


If someone could give me some help, that would be outstanding!


Thanks,
Chris
Try this:

<div id="logo">
    <div class="wrapper">
        <div style="float: right;">
            <!-- Advertisement here -->
        </div>
        <a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
    </div>
</div>
(07-03-2015, 08:10 PM)Ad Bakker Wrote: [ -> ]Try this:

<div id="logo">
    <div class="wrapper">
        <div style="float: right;">
            <!-- Advertisement here -->
        </div>
        <a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
    </div>
</div>

Thank you so much! I cannot believe it was something as simple as that. I'm actually fairly embarrassed. I do appreciate your help!

+ Rep for you!