vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ads after first post (https://vborg.vbsupport.ru/showthread.php?t=208105)

tony456 03-12-2009 12:05 PM

ads after first post
 
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

Quote:

Originally Posted by GTAce (Post 1766420)
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:

Code:

<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


All times are GMT. The time now is 10:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01001 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete