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

Reply
 
Thread Tools
Google Adsense Postbit Integration Details »»
Google Adsense Postbit Integration
Version: 2.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 10-27-2008 Last Update: Never Installs: 355
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

Google Adsense Postbit Integration

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-googleadsensei.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 12
Template : 1
Setting : 5

Google Adsense Postbit Setting

Go to your admin cp, then:
vBulletin Options -> Google Adsense Postbit Integration ->

Versions:
v1.0 - 30 July 2007
-First release

v1.1
- 31 July 2007
- Usergroup Permissions Added

v1.2 - 31 July 2007
- Usergroup Permissions Problem Fixed

v1.3 - 20 December 2007
- "Sponsored Links" Phrase added
- small template change
- vBulletin 3.7 released

v2.0 - 12 Octaber 2008
- vBulletin 3.7 released

If does not work;

Open template "postbit or postbit_legacy"

Find
HTML Code:
<!-- post $post[postid] popup menu -->

After Add

HTML Code:
$template_hook[postbit_end]

Download Now

File Type: xml product-googleadsensei.xml (5.3 KB, 2140 views)

Screenshots

File Type: jpg resimxx8.jpg (28.6 KB, 0 views)
File Type: jpg resimxx9.jpg (62.9 KB, 0 views)

Show Your Support

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

Comments
  #52  
Old 01-24-2010, 03:24 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And I cannot find <!-- post $post[postid] popup menu --> in postbit_legacy ... help please???
Reply With Quote
  #53  
Old 01-27-2010, 02:30 PM
helmica helmica is offline
 
Join Date: Mar 2008
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,
By me it is not working on VB4 do you plan to make it work for Vb4?
I am loving it i hope to be able to use it on Vb4
Thanks in advance for your prompt response
Reply With Quote
  #54  
Old 02-04-2010, 03:26 AM
G-man's Avatar
G-man G-man is offline
 
Join Date: Jun 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I second this. Had it working before I upgraded and would love to have it back with 4.0. I can't stand the limitations of the only 4 places for ads that are built into 4.0
Reply With Quote
  #55  
Old 03-17-2010, 03:24 PM
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Location: UK
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want the ad to appear twice in a thread then you just need to edit the plugin code, Google Adsense Postbit Integration > postbit_display_complete find this bit of code

PHP Code:
if ($post[postcount] % $vbulletin->options[maxposts] == $google_sira and !$GLOBALS['vbulletin']->GPC['ajax'])
{
eval(
'$template_hook[postbit_end] .= "' fetch_template('gaip_code1') . '";');

and add below this code (editing 19 to your choice)...

PHP Code:
if ($post[postcount] % $vbulletin->options[maxposts] == 19 and !$GLOBALS['vbulletin']->GPC['ajax'])
{
eval(
'$template_hook[postbit_end] .= "' fetch_template('gaip_code1') . '";');

That would, in our case, add it after the 19th post as well as the one specified in the options section. Obviously this is a bit of an ugly solution, as you have to hard code in the post number (but it works on all pages, i.e. the 19th post on each page not just the first one) but I hope it helps others.
Reply With Quote
  #56  
Old 03-21-2010, 08:31 PM
BeefyBeefo BeefyBeefo is offline
 
Join Date: Mar 2010
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Thanks!

**Installed**
Reply With Quote
  #57  
Old 04-01-2010, 06:44 PM
matthewhotdude matthewhotdude is offline
 
Join Date: Jul 2009
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed but the adds are showing up twice?
Reply With Quote
  #58  
Old 05-02-2010, 09:53 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works great for us under v3.6 ... :up:

We really need the user group permissions capability of this kind of mod, so is there any chance it will be upgraded for v4, as there doesn't seem to be a v4 adsense mod that does this.

Thanks ...

Regards,
Badger
Reply With Quote
  #59  
Old 05-11-2010, 09:35 AM
muratcan25's Avatar
muratcan25 muratcan25 is offline
 
Join Date: May 2009
Location: Turkey
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks installed !
Reply With Quote
  #60  
Old 06-13-2010, 06:37 AM
basskiller basskiller is offline
 
Join Date: Jan 2003
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to run a rotation of different scripts?
Like adsense , some affiliate banner, amazon.. and have it rotate between the three different blocks of code?
Reply With Quote
  #61  
Old 07-17-2010, 01:59 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone or developer please take attention!!!

Would be great to add option to disable it for some forums or even threads by IDs as some forums can be nonGoogle friendly and they can BAN your account for it (just got email about that)!
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 01:53 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.04771 seconds
  • Memory Usage 2,339KB
  • 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
  • (2)bbcode_html
  • (2)bbcode_php
  • (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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)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
  • 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_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