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 (https://vborg.vbsupport.ru/showthread.php?t=96249)

mcyates 08-12-2007 09:12 AM

Are there any fixes for this problem.

offline 09-18-2007 09:28 PM

I have set this up so that it does not show up on private messages and that it shows after the 1st, 5th and 10th post, so that I get 3 ads on each full page of posts. Here is my code...


Code:

<!-- Start Sponsors -->
<if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))">

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

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%">
Sponsors<br /><br />
</td>
</tr>
<tr>
        <td class="alt1" align="center">

<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-17: Chattanoogans-POSTBIT
google_ad_channel = "xxxxxxxxx";
google_color_border = "F0F1FF";
google_color_bg = "F0F1FF";
google_color_link = "0000FF";
google_color_text = "5B5B5B";
google_color_url = "5B5B5B";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

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

</div>
$spacer_close
</if>
<!-- End Sponsers -->

You can view it in action at http://www.chattanoogans.com/forums/...tanoogans.html .

The PROBLEM I am having is in the postbit_legacy, for whatever reason this breaks mutiquoting and quick reply buttons. If anyone has a clue how to fix those I would appreciate any help.

offline 09-18-2007 10:08 PM

I figured it our finally, I took the spacer_open and close out of the equation and it works. Here is my final code...

Code:

<!-- / post $post[postid] popup menu -->

<!-- Start Sponsors -->
<if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))">


<div style="padding:6px 0px 0px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%">
Sponsors<br /><br />
</td>
</tr>
<tr>
        <td class="alt1" align="center">

<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxxxxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-17: Chattanoogans-POSTBIT
google_ad_channel = "xxxxxxxxxxxxxxxxx";
google_color_border = "F0F1FF";
google_color_bg = "F0F1FF";
google_color_link = "0000FF";
google_color_text = "5B5B5B";
google_color_url = "5B5B5B";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
</tr>
</table>
</div>
</if>
<!-- End Sponsers -->

I am running 3.6.8 with the postbit legacy template, works like a champ now.

hollyboy 08-16-2008 10:40 AM

Code:

<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">

this helps all the ones with the FF problem of the blank page after the quick reply ;)

Riccardo83 02-02-2009 10:23 AM

Guys, do u have any idea how about the problem when u place the Large Rectange or any ad in the last or first post, and you have quotes in there?

It messes up the design...?

Michael.A 05-09-2009 09:59 PM

Code:

<!-- Start Sponsors -->
<if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))">


<div style="padding:6px 0px 0px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%">
Sponsored Ads</td></tr>
<tr>
        <td class="alt1" align="center">

<google adds goes here>

</td>
</tr>
</table>
</div>
</if>
<!-- End Sponsers -->

use this

rtyagis 10-30-2009 01:16 PM

Code:

<!-- Start Sponsors -->
<if condition="!in_array($forum[forumid], array(1,2,3))">
<if condition="$post[postcount] % $vboptions[maxposts] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-846432XXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-17: Chattanoogans-POSTBIT
google_ad_channel = "xxxxxxxxx";
google_color_border = "F0F1FF";
google_color_bg = "F0F1FF";
google_color_link = "0000FF";
google_color_text = "5B5B5B";
google_color_url = "5B5B5B";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

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

</div>
$spacer_close
</if>
</if>
<!-- End Sponsers -->

With out heading - Sponsors


All times are GMT. The time now is 04:53 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.01390 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete