Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense after first post Details »»
Adsense after first post
Version: 1.00, by artonex artonex is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-13-2005 Last Update: Never Installs: 236
Template Edits
 
No support by the author.

Hey guys i think many of you will find this very usefull

With the template edit you can display adsense or banner after every 1st post. i have chosen to use my amazon affilite code.

Add this to the bottom of your postbit template.

Demo

PHP 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 code here>
</if>
    </
td>
</
tr>
</
table>

</
div>
$spacer_close

</if> 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 10-12-2005, 04:41 PM
dsotmoon dsotmoon is offline
 
Join Date: Jun 2003
Location: VA - USA
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that code still hangs up on QR for me in firefox :ermm:
Reply With Quote
  #73  
Old 10-12-2005, 06:58 PM
oezer oezer is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jribz
trilljester, not to answer for Amy, but I don't think that's an issue related to the hack, if there aren't enough ads to display or google adsense bot has not picked the page up yet, which is rare, it will display the alternate color or alternate ad you have in place. So just specify an alternate ad in your adsense code for those times when it doesn't show up.
i did another alternate type of adsense, but it displays me nothing.. have you any ideas?

regards
Reply With Quote
  #74  
Old 10-20-2005, 08:22 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good news and bad news. I have a fix, but it does not stop at the first post! If you use this be advised it will place Ads between EVERY post!

REPLACE
PHP Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"
with
PHP Code:
<if condition="$post['postcount']=1"><if> 
So maybe with this some one can get a fix to make this stop AFTER the first post?

EDIT:On second notice, it places full ads under the first 3 posts. Then it apears to form a empty sponsored link table under the rest of the post. This happen in FireFox.

IN IE..it apers after the first post, and using the quick reply forms an empty table under the last post.
Reply With Quote
  #75  
Old 10-22-2005, 01:43 PM
Arto Arto is offline
 
Join Date: Sep 2005
Location: By the beach
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xplorer4x4
Good news and bad news. I have a fix, but it does not stop at the first post! If you use this be advised it will place Ads between EVERY post!

EDIT:On second notice, it places full ads under the first 3 posts. Then it apears to form a empty sponsored link table under the rest of the post. This happen in FireFox.
No surprise there, as the AdSense Terms of Service explicitly limits you to 3 AdSense blocks per page ...I suspect trying to display more than 3 ads is in fact a good way to get your account flagged for inspection :ermm:
Reply With Quote
  #76  
Old 10-22-2005, 10:42 PM
oezer oezer is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arto
I suspect trying to display more than 3 ads is in fact a good way to get your account flagged for inspection :ermm:
on my forum i have 2 different views of adsense but they display only one ad.. have you any ideas?

regards
Reply With Quote
  #77  
Old 10-23-2005, 11:22 AM
Arto Arto is offline
 
Join Date: Sep 2005
Location: By the beach
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oezer
on my forum i have 2 different views of adsense but they display only one ad.. have you any ideas?
That can happen when Google doesn't have enough targeted ads to fill your page view inventory. You can either try to improve the AdSense targeting on the forum, show less ad blocks per page (to ensure there's enough ads for the one you do show), or configure an Alternate URL in AdSense to show ads or banners from another ad network in cases when Google won't serve you.

Improving your AdSense targeting and revenue is really a science unto itself; I recommend you read up on the topic on forums such as Digital Point or Site Point.
Reply With Quote
  #78  
Old 10-24-2005, 11:45 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arto
No surprise there, as the AdSense Terms of Service explicitly limits you to 3 AdSense blocks per page ...I suspect trying to display more than 3 ads is in fact a good way to get your account flagged for inspection :ermm:
True but atleast its a start for getting this firefox bug fixxed.
Reply With Quote
  #79  
Old 10-25-2005, 03:06 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I finally have found the fix. This is tested and working in firefox, and does not create any more of those anoying empty tables when you edit.

REPLACE
PHP Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"
WITH
PHP Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1"
If you need to exclude a user group form seeing them,
PHP Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND $vbulletin->userinfo[usergroupid] != 'x' "
Reply With Quote
  #80  
Old 10-25-2005, 01:18 PM
banshee banshee is offline
 
Join Date: Feb 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**Installed**

Works great thanks, has anyone notices an increas in revenue from this add-in? I average only $5 a day right now not sure if that is good or bad but I will be curious if I get more revenue because of this or not. I know I get ads on some threads that have nothing to do with my site because of some off-topic threads.
Reply With Quote
  #81  
Old 10-25-2005, 02:45 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've been going through this thread but can't seem to find code that works. :/ i see a bunch of different versions posted up.

i'm just looking to place 1 ad after the first post.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06431 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete