Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

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
  #162  
Old 01-25-2006, 07:03 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aftermath
How can I show the adsense below the LAST post?
https://vborg.vbsupport.ru/showpost....&postcount=148
Last line of the post might be of help to you.

And for those of you having problems simply remove the first </if> after <adesnce code here>
Reply With Quote
  #163  
Old 01-31-2006, 08:57 AM
vocalise vocalise is offline
 
Join Date: Oct 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... if I try to modify the if statement to have the ad only show up after the LAST post, I have the quick reply problem all over again

Help?!
Reply With Quote
  #164  
Old 01-31-2006, 11:33 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to have that ajax check in there if you are going to put it after the last post.
Reply With Quote
  #165  
Old 02-01-2006, 06:17 AM
sbeehre sbeehre is offline
 
Join Date: Oct 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working for me I put the aforementioned code right before
<!-- / post #$post[postid] --> at the bottom of the posbit template and add my google adsense code and it doesnt show anything in the forums like it should! Im running 3.5.2 and my site it www.win2osx.net
Reply With Quote
  #166  
Old 02-04-2006, 10:25 AM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im getting a white blank page after people post, how do i fix this?
Reply With Quote
  #167  
Old 02-04-2006, 10:40 AM
cd1986 cd1986 is offline
 
Join Date: Sep 2005
Location: UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know what the code is for removing the adsense ID if a user is logged in and has made the 1st post on a page (so that they cannot click on "their own" ads)?
Reply With Quote
  #168  
Old 02-05-2006, 12:27 PM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Griffin80
Im getting a white blank page after people post, how do i fix this?
Anyone?

Could this problem be caused by VBSEO?
Reply With Quote
  #169  
Old 02-05-2006, 09:41 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
I've posted this often already, but i'll post it once again

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">
Kirby, I know this is an old post, but I am having trouble understanding why people want to put Google Adsense on their forums only to right away disable them for certain groups. Isn't this kind of a 'kick in the face' to themselves? I mean the whole reason for putting GA on their site is to make money, then all of a sudden they want to automatically disable it. *shrugs*

Why not give those usergroups the OPTION to disable it instead of automatically cutting out potential earnings.

On my site, I have it as an incentive for supporting memberships. This way I don't lose money on it not being displayed. If someone wants to be a supporting member, then, in their UserCP under Misc Options, I have it set up where they can disable it or leave it on.

An example would be:
Disable Google Ads?
If you would like to disable Google Ads in the forums, put a check in the checkbox below. If at anytime you would like to view them, click again to remove the selection.
[checkbox here] Disable Google Ads?

Then conditionals are set up in the 'modifyoptions' template.

Just my thought process. If I have gone through the trouble of implementing Google Adsense on my site, why would I want to instantly remove it without an option.

Just my .02
Reply With Quote
  #170  
Old 02-06-2006, 11:50 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On Planet-Liebe, we have a Paid Subscription "Ads-Free", which works by setting an additional usergroup
It would be kinda pointless having the users purchase this sub AND have to tick "Don't show ads", so we disable the ads right when they are in this usergroup.

Makes sense?
Reply With Quote
  #171  
Old 02-06-2006, 11:58 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Makes perfect sense if it is offered as an "Ads Free" subscription. I offer it as the ablity to turn it off if you don't want it. This is offered to my Supporting Members. All others are stuck with it.

Being a diving community, there are quite a few adds that come up for travel that have great deals. If one of the users is looking to go on a dive vacation or just traveling, then they are able to turn the ads back on to look at the deals that can come up. When done, they simply tick the box to turn it back off.
Reply With Quote
Reply

Thread Tools

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 06:09 AM.


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.06670 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)bbcode_php
  • (3)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
  • (2)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