Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google Adsense after first post (or other advertisements) Details »»
Google Adsense after first post (or other advertisements)
Version: 1.00, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.0 Rating:
Released: 12-31-2009 Last Update: Never Installs: 148
Template Edits
 
No support by the author.

With this mod, you can add an advertisement as Google Adsence or other advertisements.
  • In the "postbit" or "postbit_legacy", add to the end:
Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="attachments">
        <div style="width: 100%; text-align: center">
       Your text here
      </div>
</div>
</vb:if>
  • 2nd method, in the "ad_showthread_firstpost" template, add:
Code:
  <div class="attachments">
        <div style="width: 100%; text-align: center"> 
Your text here       
        </div>
  </div>
PS: I use class "attachments", it's just for the fun ^^

Screenshots

File Type: jpg pub1.jpg (80.6 KB, 0 views)
File Type: jpg pub2.jpg (72.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sodasusu

Comments
  #72  
Old 03-24-2011, 11:01 PM
x YNWA x x YNWA x is offline
 
Join Date: Jun 2007
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I get something like this so it is after the LAST post and not the first? The thing is, I already have an advert just below the footer, so you can see that advert and the one below the first post if the first post is not too long. So I would prefer it to be just above the quick reply bar but cannot seem to be able to do it.
Reply With Quote
  #73  
Old 09-18-2011, 09:22 AM
JHUMON JHUMON is offline
 
Join Date: Aug 2008
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dosent work on vb 4.1.6
Reply With Quote
  #74  
Old 10-01-2011, 01:42 AM
Furcal15 Furcal15 is offline
 
Join Date: Apr 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.1.6 users, all you need to do is enter this code at the end of postbit/postbit legacy. It's only one code, not two.

Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="attachments">
        <div style="width: 100%; text-align: center">
       Your text here
      </div>
</div>
</vb:if>
Reply With Quote
  #75  
Old 10-01-2011, 08:11 PM
matt94gt matt94gt is offline
 
Join Date: Jul 2011
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Furcal15 View Post
4.1.6 users, all you need to do is enter this code at the end of postbit/postbit legacy. It's only one code, not two.

Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="attachments">
        <div style="width: 100%; text-align: center">
       Your text here
      </div>
</div>
</vb:if>

That is all I have to do to have this mod work on 4.1.6? I have to do it per each theme? Where do I put the adsense code?

Thanks
Reply With Quote
  #76  
Old 12-11-2011, 03:28 AM
matt94gt matt94gt is offline
 
Join Date: Jul 2011
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one?
Reply With Quote
  #77  
Old 12-11-2011, 10:44 AM
Scyther's Avatar
Scyther Scyther is offline
 
Join Date: Jul 2009
Location: Planet Earth
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one...marked installed...
Reply With Quote
  #78  
Old 01-25-2012, 08:04 AM
drdoc drdoc is offline
 
Join Date: Nov 2011
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to place space for ad after 1st post so tried following code
In the "postbit" or "postbit_legacy", add to the end:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<div class="attachments">
<div style="width: 100%; text-align: center">
Your text here
</div>
</div>
</vb:if>

When i try to save am getting the below error..why?

You may not use the function parsePhrase()!!!
With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
and() or() xor() in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of() construct_phrase() iif()
Reply With Quote
  #79  
Old 01-25-2012, 08:06 AM
drdoc drdoc is offline
 
Join Date: Nov 2011
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and when am trying with 2nd method as said by developer am not able to see any changes

nd method, in the "ad_showthread_firstpost" template, add:

Code:

<div class="attachments">
<div style="width: 100%; text-align: center">
Your text here
</div>
</div>

My verison is 4.1.7 but am trying this for testing over VB DEMO 4.1.8
Reply With Quote
  #80  
Old 02-02-2012, 02:31 AM
PALAZAN PALAZAN is offline
 
Join Date: Apr 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok this mite be a silly qestion but any way to not show this to a special group on my forums , say i want everyone to see the ads but admins is there a way to do this?
Reply With Quote
  #81  
Old 04-06-2012, 01:14 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Diablotic View Post
How to add adsense after last post in the thread?

Figured it out: http://www.vbulletin.com/forum/showthread.php?t=157022
I have the same question, its possible configured for appears like a post, or if its not possible, its possible configured with space after banner? I add a code < br > but not works.

Thanks and regards!
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 06:21 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.14149 seconds
  • Memory Usage 2,333KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete