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)

Kihon Kata 10-26-2005 01:31 PM

Quote:

Originally Posted by Xplorer4x4
Does that version support postbit legacy style?

Tony you can use this code if you would like to display the ads between the second to last and last posts on a page.
PHP Code:

<if condition="$post[postcount] % $vboptions[maxposts] == $vboptions[maxposts] - 1"



Sorry DanLai I cfan;t help, but I wouldn't really worry about it.

I don't wanna display the ad between the second to the last post. I wanted to know how and what fixed the quick reply issue.

But thanks for tryin'

Xplorer4x4 10-26-2005 09:05 PM

Quote:

Originally Posted by TonysDesigns
I wanted to know how and what fixed the quick reply issue.

But thanks for tryin'

https://vborg.vbsupport.ru/showpost....9&postcount=78
I fixed it by changing the IF conidtion. If you read the thread everyone tried many diffrent variables for the IF condition but it was always the IF condition causing it to hang.

Here is the proper code:
PHP Code:

<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="thead" align="left">Sponsored Links</td
</
tr
<
tr
    <
td class="alt1" align="center"
        <
adsense code here
</if> 
    </
td
</
tr
</
table

</
div
$spacer_close 

</if> 


RGSMDNR 10-30-2005 11:11 PM

i add this and get nothing on my forums, is it jsut right after the last line in the postbit template?

Xplorer4x4 10-31-2005 01:30 AM

Looks like you got it working fine to me. ;)

eXtremeTim 10-31-2005 01:34 AM

Quote:

Originally Posted by Xplorer4x4
https://vborg.vbsupport.ru/showpost....9&postcount=78
I fixed it by changing the IF conidtion. If you read the thread everyone tried many diffrent variables for the IF condition but it was always the IF condition causing it to hang.

Here is the proper code:
PHP Code:

<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="thead" align="left">Sponsored Links</td
</
tr
<
tr
    <
td class="alt1" align="center"
        <
adsense code here
</if> 
    </
td
</
tr
</
table

</
div
$spacer_close 

</if> 


No when I looked at the code I was seeing two </if> close tags added while only one was opened. I removed that on tonys site and that fixed the quick reply problem on there.

Xplorer4x4 10-31-2005 01:40 AM

Hmm well it works just fine on my site with the extra </if> but i will proabbly remove that just to be safe.

WiBu 10-31-2005 03:42 PM

With that code it hangs when the post is about to create a new page. Otherwise it's fine.

Xplorer4x4 11-02-2005 09:38 AM

Turns out I did delete the extra <if> lol Ok well I personally put it between the secodn to last and last post. I tried to put it after the first unread post but the code i tried will not work in the postbit_legacy template.

smsmasters 11-04-2005 03:54 PM

How do you stop the code from displaying under PM's?

smsmasters 11-04-2005 08:50 PM

Why is it sometimes all I get is blank?


All times are GMT. The time now is 08:32 AM.

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.01688 seconds
  • Memory Usage 1,765KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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