Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 2 Months, 2 Weeks ago [How To?] How to get ad in header??
#1
Solved: 4 Years, 2 Months, 2 Weeks ago
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
[Image: 468_60b.jpg]
Webmaster-Lounge.com - A friendly webmaster forum
Reply
#2
Solved: 4 Years, 2 Months, 2 Weeks ago
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>
Regards, Ad Bakker (NL)
Reply
#3
Solved: 4 Years, 2 Months, 2 Weeks ago
(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!
[Image: 468_60b.jpg]
Webmaster-Lounge.com - A friendly webmaster forum
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)