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)

ukbill69 10-01-2005 02:27 PM

Also easier if you make the <adsense code here> into a phrase like $vbphrase[postadvert]

and then it would be easy to update and not search through code everytime to change.

thenetbox 10-02-2005 03:07 AM

I put this in postbit_legacy and when I use firefox to post a quick reply it goes to a Blank page. Now that I have removed it from postbit_legacy it has started working fine again.
It happens with KirbyDEs code as well.

Is there another way to get this working? or do we know why this is happening?

This was working okay before I updated.

thanks :)

Aceman 10-03-2005 12:26 PM

After getting this running.. I've noticed that my QUICK EDIT no longer works?

I used the following code:

Code:

<!-- Google Ads for NON members -->

<if condition="!is_member_of($bbuserinfo, 2,5,6,7,8,11,18) AND !$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 CODE HERE**
</if>
    </td>
</tr>
</table>

</div>
$spacer_close

</if> 


<!-- END Google Ads for NON Members -->

Anyone know why this would be happening?

Aceman 10-03-2005 12:30 PM

Question: Why does the </if> go before the </td> rather then placing it after the </div> tag?? would this fix this?

(I'll test and see)

Aceman 10-03-2005 12:37 PM

PUT THE </if> after $spacer_close and everything is working fine now.

PS: postbit_legacy template.

dastar 10-03-2005 01:27 PM

Never mind.

Xplorer4x4 10-03-2005 01:58 PM

Quote:

Originally Posted by Aceman
PUT THE </if> after $spacer_close and everything is working fine now.

PS: postbit_legacy template.

THANK YOU! I didn;t know what hack was causing the problem. Thank you!

This still has not fixed the issue when you save though.

Mijae 10-04-2005 12:49 AM

One thing that I noticed is that if you use the quick reply, you'll get a second instante of the Sponsored Links table, but without the google adsense code. It goes away when you refresh.

Not a big deal, but something I discovered. Probably just my forums :P

dieselpowered 10-04-2005 01:11 AM

Use this code:

Code:

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

<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->

<if condition="$post[postcount] == 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">
                BANNER CODE HERE
        </td>
</tr>
</table>

</div>
$spacer_close

</if>

You can see an example HERE

talkhost 10-05-2005 06:10 PM

Quote:

Originally Posted by amykhar
What's more fun and challenging - because of ajax issues, is adsense in the last post. ;) That really gets the ad right where the reader's eyes are.

http://www.eaforums.com/forums/364919-post1.html

Find:
Code:

<!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

Add above:
Code:

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


<span id="google" style="float:left;margin:2px;" width="340" height="290" align="center" valign="top">
put banner code here
</span></if>



Do you know how to put the ads in the first and last post of each page of the thread, instead of just the first post of the first page..

I'm also having a problem with using the quick reply. The ads don't show in the last post unless the page is refreshed..


All times are GMT. The time now is 05:25 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.01444 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
  • (4)bbcode_code_printable
  • (2)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