vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense after first post ONLY if there are more than X posts in the thread (https://vborg.vbsupport.ru/showthread.php?t=106596)

Snake 02-04-2006 11:14 AM

Be sure you've placed the ads code correctly.

Sean James 02-04-2006 07:26 PM

Quote:

Originally Posted by Aftermath
Be sure you've placed the ads code correctly.

yes i am sure ;)

CB88 02-18-2006 04:43 PM

I've tried everything but can't get this to work, here is what I have been using:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) AND !$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= X">
$spacer_open

<div class="page" style="width:100%; text-align:left">
<div style="padding:0px 0px 6px 0px">

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="alt1">

<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-0348024283260953";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="";
//</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> -->
</div>

</td>
</tr>
</table>

</div>
</div>

$spacer_close
</if>

Please let me know if anything is incorrect

Moparx 02-18-2006 05:16 PM

Very sorry for the late responce..

Quote:

Originally Posted by Griffin80
I get a white blank page after i post, how do i fix this?

You are using your quick reply right?
Try changing:
PHP Code:

!$GLOBALS['FIRSTPOSTID'

To this:
PHP Code:

$post[postcount] % $vboptions[maxposts] == 


Quote:

Originally Posted by CB88
I've tried everything but can't get this to work, here is what I have been using:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) AND !$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= X">

Change X to a numerical value of your choice (like 3 or 4)

CB88 02-19-2006 12:37 AM

Tried that and it still does not work, used the number 3 instead of "x"...any suggestions?

Moparx 02-19-2006 02:33 AM

it should be working fine for you then... it is definately added in the postbit template right?

Gallio 02-19-2006 08:14 AM

Do you have a preview? :D

CB88 02-20-2006 09:06 PM

Yep...dunno what te problem is

shadowdancer36 03-15-2006 03:07 AM

I can't get this to show up for some reason. Is it compat with the newest ver of VB?

Mr Chad 05-27-2006 07:30 AM

Quote:

Originally Posted by CB88
I've tried everything but can't get this to work, here is what I have been using:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) AND !$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= X">
$spacer_open

<div class="page" style="width:100%; text-align:left">
<div style="padding:0px 0px 6px 0px">

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="alt1">

<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-0348024283260953";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="";
//</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> -->
</div>

</td>
</tr>
</table>

</div>
</div>

$spacer_close
</if>

Please let me know if anything is incorrect

lol... thats dumb...

replace your
Code:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) AND !$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= X">
With
Code:

<if condition="!$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= 3">
You dont need to list every user group if you want it to show to everyone...


All times are GMT. The time now is 02:35 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.01157 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete