vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Google Ad Problems: Need some help (https://vborg.vbsupport.ru/showthread.php?t=160695)

ade5675 10-21-2007 03:25 AM

Google Ad Problems: Need some help
 
I need some help. I had two google banners on each thread after the first post. Everything has been fine untl I upgraded to vB 3.6.8 After I upgraded, I now have multiple google banners - after the first, the second, the third etc. I just want the first set of banners (the ones after the first post) and don't want the rest. Please help and tell me what I need to do to correct this. Thanks in advance


View some samples here:

http://www.naijadiscussion.com/naija...ead.php4?t=566
http://www.naijadiscussion.com/naija...ead.php4?t=566

ade5675 10-23-2007 12:05 AM

Any help appreciated please

ade5675 10-26-2007 03:26 AM

Still looking for some help. I am trying to retrct the google ds to after the first post in each thread. I tried to use and IF command but it takes out all the goole ads.

I went into the Postbit template to dd a code that will retrict the ad showing after the first code but the code is not working well.

I added this code (<if condition="$post['postid=1']">)to the beginning of the google code located at the end of the template

Quote:

<if condition="$post['postid=1']">


<div style="padding: $stylevar[cellpadding]px 0px 0px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left"></td>
</tr>

<tr>
<td class="alt1" align="center">



google adsense code here



</td>
</tr>

</table>

</div>

</if>

Can someone help with the code?

noppid 10-26-2007 06:50 PM

Try...

Code:

<if condition="$post['postid'] == 1">

ade5675 10-26-2007 09:23 PM

Quote:

Originally Posted by noppid (Post 1369272)
Try...

Code:

<if condition="$post['postid'] == 1">




noppid, tks a lot for the code above. I was able to rewrite to work for how I wanted it so I figured it out.



FYI... I used the following code
Code:

<if condition="$post['postcount'] < 2">


All times are GMT. The time now is 03:49 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.00979 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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