MyBB Community Forums

Full Version: Ad Placement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to put a Banner Ad just above the forum, in that gap.

Here is the coding i wanna use, what page do i edit, or is there a plug in that will allow this sort of coding for ads.

<!-- Begin: adBrite, Generated: 2011-03-25 1:08:50 -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1896815&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1896815&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: adBrite -->
I'm not 100% sure where you want to put this, but I would suggest adding this code to the header template. Add it after {$pending_joinrequests} and before <navigation>.
(2011-03-25, 05:30 AM)Joshua Mayer Wrote: [ -> ]I'm not 100% sure where you want to put this, but I would suggest adding this code to the header template. Add it after {$pending_joinrequests} and before <navigation>.

Here we go, a picture :-) sorry should try and make ppl guess.

I would also like smaller banners to pop up between posts every now and then, is this possible?
That's the header IIRC, either that or the headerinclude template file.
sounds hard..lol
Not at all, you just drop that code in it.
Can anyone help me with getting decent ads into this forum
You need to put some effort in for yourself, I explained what you need but you continue to ignore my advice. I'm not going to try and help you anymore, you never seem to listen to anything that anyone actually says. Good luck getting your ads on.
that's easy.... (follow the steps below)

A.login to your mybb admin yoursite.com/admin
B. go to templates & styles
c. under templates & styles in the left sidebar, click templates
D. under managed template set , click your templates, if the name of your templates is THECURE you have to click that..
E. click header templates
f. then click header
g. at the end of the header file.add the adbrite code...

try this code...


<br />
<div id="adbrite_ad" clear="block" align="center">
INSERT YOUR ADBRITE CODE HERE
</div>
h. Click save and return to listing......(end)