PDA

View Full Version : ads after first post


tony456
03-12-2009, 12:05 PM
Hi,

I am new and need some help. I would like to display two banner adds after the first post of every page like this http://forums.digitalpoint.com/showthread.php?t=1124794

I am new to VB, so if any one knows I appreciate your help.

Thanks

GTAce
03-12-2009, 12:11 PM
Log into your AdminCP and go to Styles & Templates -> Style Manager -> Your Skin -> Edit Templates -> Ad Location Templates

There are multiple templates there where you can easily add ads to your forums, including in the first post. I don't know off-hand which one this would be, but I think it's ad_showthread_firstpost

tony456
03-12-2009, 12:29 PM
Thanks alot. GTAce

I know need to know how to centre them and add a small gap inbetween the banners?

GTAce
03-12-2009, 12:41 PM
You can center them by putting <center> before the ads and </center> after them

For spacing: If the ads are side-by-side, put &nbsp; in between them. If the ads are on top of each other, put <br /> between them. You can put however many of those &nbsp; or <br /> in between the ads. More = more spacing :)

tony456
03-12-2009, 12:57 PM
You can center them by putting <center> before the ads and </center> after them

For spacing: If the ads are side-by-side, put &nbsp; in between them. If the ads are on top of each other, put <br /> between them. You can put however many of those &nbsp; or <br /> in between the ads. More = more spacing :)

Thanks again for the help. still a bit unsure exactly where i input the text? Is this correct:

<center>
<script type="text/javascript"><!--
google_ad_client = "pub-";
/* 728x90, created 3/12/09 */
google_ad_slot = "2678264998";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<br />

<center>
<script type="text/javascript"><!--
google_ad_client = "pub-";
/* 728x90, created 3/12/09 */
google_ad_slot = "2678264998";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

GTAce
03-12-2009, 01:10 PM
This will probably achieve what you're looking for:


<center>
<script type="text/javascript"><!--
google_ad_client = "pub-";
/* 728x90, created 3/12/09 */
google_ad_slot = "2678264998";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<br />
<br />

<script type="text/javascript"><!--
google_ad_client = "pub-";
/* 728x90, created 3/12/09 */
google_ad_slot = "2678264998";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>

tony456
03-12-2009, 01:30 PM
Hi,

Just tried it out now and it works perfectly.

Thanks for taking the time to help me out with my forum:D

tony