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)

hivelord 10-05-2005 09:42 PM

Yes, you have an extra </if> in the code. Just take it out like so:
HTML Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">

$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 HERE
    </td>
</tr>
</table>

</div>
$spacer_close

</if>

Works great. I was having a small Template issue with the old code.

Shoemoney 10-07-2005 01:32 PM

are you guys using quick reply? My forum seems to hang with this code and quick reply..

dsotmoon 10-07-2005 01:39 PM

is there a way to get this to post after the first post on each page, page2,3.4. etc ?

dieselpowered 10-07-2005 02:57 PM

Quote:

Originally Posted by Shoemoney
are you guys using quick reply? My forum seems to hang with this code and quick reply..

The Javascript in the adsense is messing it up.

If you notice, you can probably click on the quick reply in the first post, however, everything after the first post will not work.

If your thread has multiple pages, you will notice that you can click on the quick reply of the first post of every page and it will work. All others do not :(

dsotmoon 10-07-2005 03:20 PM

Quote:

Originally Posted by xtremeoff-road
If you notice, you can probably click on the quick reply in the first post, however, everything after the first post will not work.

QR works on every post on my forums with the code you posted above

dieselpowered 10-07-2005 03:27 PM

Quote:

Originally Posted by dsotmoon
QR works on every post on my forums with the code you posted above

Do you have it set up that the user must click to use quick reply?

Or can they just start typing?

dsotmoon 10-07-2005 09:00 PM

Quote:

Originally Posted by xtremeoff-road
Do you have it set up that the user must click to use quick reply?

Or can they just start typing?

its always at the bottom or they can click QR from any post to go to it

dieselpowered 10-07-2005 09:14 PM

Quote:

Originally Posted by dsotmoon
its always at the bottom or they can click QR from any post to go to it

I understand that....my question was can they just start typing in the Quick Reply or do they need to hit the QR button?

dsotmoon 10-07-2005 09:27 PM

Quote:

Originally Posted by xtremeoff-road
I understand that....my question was can they just start typing in the Quick Reply or do they need to hit the QR button?

oh sorry, they can just start typing in it

dastar 10-07-2005 11:45 PM

Try this code to eliminate the problem with the quick reply button not working.

After submitting a reply via the QR box, FireFox hangs on me unless I use the smaller, "link unit" google ads.



Code:


<if condition="$post[postcount] % 10 == 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">
    Adsene Code here.
    </td>
</tr>
</table>

</div>
$spacer_close

</if>



All times are GMT. The time now is 09:33 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.01210 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (6)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