Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #52  
Old 03-19-2010, 06:06 PM
Sgroove Sgroove is offline
 
Join Date: Apr 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, nice mod.
I was wondering if this mod will work if I want to insert a Search Engine between the first and second post.
Reply With Quote
  #53  
Old 03-21-2010, 03:10 AM
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Posts: 684
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #54  
Old 03-21-2010, 01:40 PM
ZuFett ZuFett is offline
 
Join Date: Jun 2007
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, thats great!

But one Question:
How i show it only my Guests?
Reply With Quote
  #55  
Old 03-25-2010, 07:36 AM
fayax fayax is offline
 
Join Date: Dec 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by meonet View Post
standard vbulletin 4.0.2 already have this function so i can think that this modification it's not more needed.

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> Ad Location Templates -> ad_showthread_firstpost


Thanks. Worked like a charm in 4.01 also.
Reply With Quote
  #56  
Old 04-01-2010, 07:02 PM
thinkfast thinkfast is offline
 
Join Date: Mar 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator
Reply With Quote
  #57  
Old 04-01-2010, 07:29 PM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happens when you use a replacement variable to place the advertisement and a user uses quick reply (AJAX) to make the post that forces this ad unit? I have had problems with this in the past.
Reply With Quote
  #58  
Old 04-02-2010, 08:05 PM
bugzy bugzy is offline
 
Join Date: Jul 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thinkfast View Post
hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator
I'm surprised no mod has come out similar to the one for 3.8 that allows full control of ads
Reply With Quote
  #59  
Old 04-12-2010, 11:09 PM
thinkfast thinkfast is offline
 
Join Date: Mar 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thinkfast View Post
hello sir i just want to ask one question

how to make the ads not show to super moderator like at advertisement option

Display this ad if...
User does not belong to usergroup Super Moderator
found some my self

just add this before and after the code

Code:
<vb:if condition="!is_member_of($bbuserinfo, 5)">

code

<vb:if condition="$adsshown[] = 9"></vb:if></vb:if>
cheers
Reply With Quote
  #60  
Old 04-12-2010, 11:25 PM
thinkfast thinkfast is offline
 
Join Date: Mar 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZuFett View Post
Thanks, thats great!

But one Question:
How i show it only my Guests?
if you has create ads through advertisement at admin cp then you should see the code

example. if you has create ads with show only for guest at below navbar then you will find <vb:if code at

Style Manager --->>> edit template --->>> Ad Location Templates --->>> ad_global_below_navbar

and take the code and attach before and after the code that you attach at ad_showthread_firstpost
Code:
<vb:if condition="!is_member_of($bbuserinfo, 5)">  

your ads code


<vb:if condition="$adsshown[] = 9"></vb:if></vb:if>
it's work for me

i hope this is helpful, sorry for my bad English
Reply With Quote
  #61  
Old 04-21-2010, 04:38 AM
marshal_ramdev marshal_ramdev is offline
 
Join Date: Mar 2009
Location: Ludhiana
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you .......
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 03:15 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.04697 seconds
  • Memory Usage 2,330KB
  • 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
  • (4)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