vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   adsense after first post...not really working for me.. (https://vborg.vbsupport.ru/showthread.php?t=127752)

midnightsoaper 09-28-2006 05:22 AM

adsense after first post...not really working for me..
 
I used this code.....

<if condition="!$GLOBALS['FIRSTPOSTID'] AND in_array($GLOBALS[forumid], array(1,2,3))">

google adsense

</if>

I was just using it in 3.5.4 and upgraded today to 3.6.1, and I have the same problem in both.

When I use the quick reply, it posts my message, but it gets hung up on a blank screen instead of forwarding me back to that thread. Using the normal reply screen it works just fine.

Any ideas? Is there other code I can use?

Ntfu2 09-28-2006 05:38 AM

where have you placed the code?

and i've never seen it using the $GLOBALS not saying thats incorrect but every other method i've seen hasnt used that

midnightsoaper 09-28-2006 06:00 AM

Oh...I just found that code in some thread about doing this...

I put that right at the end of the postbit template....forgot to mention that part :)

WritersBeat 11-02-2006 07:35 PM

I have the same problem... did you fixi it?

vern17 11-02-2006 09:28 PM

I use version 3.6.2. Try this.

Find this line near the bottom of your postbit:

Code:

<!-- / post $post[postid] popup menu -->
After it, put in this code:

Code:

<if condition="$post[postcount] == 1">
<div style="padding:6px 0px 0px 0px">
<table class="tborder" cellspacing="1" border="0" width="100%" align="center">
<tr>
        <td style="padding:0px" align="center">
              Google Adsense Code here
        </td>
</tr>
</table>
</div>
</if>

Make sure you have another </if> after the above code to end your postbit (so there should be two total). This will put your Google Adsense after the first post of each thread. Works for me. Hope it does for you.


All times are GMT. The time now is 07:30 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.00991 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete