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

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

Category: Show Thread Enhancements - Version: 3.6.8 Rating:
Released: 07-29-2007 Last Update: 07-30-2007 Installs: 402
Uses Plugins Template Edits
 
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 : 11
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

If does not work;

Open template "postbit or postbit_legacy"

Find
PHP Code:
<!-- post $post[postidpopup menu --> 
After Add
PHP Code:
$template_hook[postbit_end

Show Your Support

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

Comments
  #112  
Old 03-24-2008, 10:51 PM
gibigbig gibigbig is offline
 
Join Date: Jul 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great add, usergroup function makes it better. now i can have such that people who donate wont see ads
Reply With Quote
  #113  
Old 04-12-2008, 02:41 AM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there away to execlude some forums from shoing ads?
Reply With Quote
  #114  
Old 04-13-2008, 09:23 PM
kpascal kpascal is offline
 
Join Date: Mar 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My contributing members get added to a secondary usergroup (11). Can I NOT show the ad to them by de-selecting the usergroup in the config.. or will it show them the ads because they are primary members of the Registered Users group?
Reply With Quote
  #115  
Old 04-13-2008, 09:36 PM
kpascal kpascal is offline
 
Join Date: Mar 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I tested my question above and found that the ads were being displayed to my contributors. I needed a fix so I edited the product template 'postbit_display_complete'.

I found:
Code:
$usergorx = is_member_of($vbulletin->userinfo,split(',', $vbulletin->options['gapiuser']));
}
and changed it to:
Code:
$usergorx = !is_member_of($vbulletin->userinfo,split(',', $vbulletin->options['gapiuser']));
}
And then went to vBulletin Options > Google Adsense Postbit Integration > Usergroups ID can use Google Adsense and put the usergroup ID I did NOT want to see the ads.

To complete this hack a person could also edit the phrases to state that the listed usergroups would not see the ads.

hth someone.
Reply With Quote
  #116  
Old 04-14-2008, 01:25 PM
Evoix_mr2006 Evoix_mr2006 is offline
 
Join Date: Feb 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only want this to occur after the first post, however for some reason it occurs after every 10th post. Any word on fixing this issue?
Reply With Quote
  #117  
Old 04-27-2008, 12:00 PM
jfrenaye jfrenaye is offline
 
Join Date: Nov 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ADsense will only allow three displays per page, so the blank beginning on the 4th post is to be expected.

I just installed last night and when I showed display after the X post as 1, it worked fine for me. Maybe change the number to 2, save it. Look at it. Go back and re-change it back to 1.

I woudl like to have a few more options as to where to place the ads. Maybe anfter the following posts (allow an array) or a few pre-sets after first and last, after first only, after last only, only on first page, etc.

But I love it!

Great mod
Thankws
Reply With Quote
  #118  
Old 05-01-2008, 12:23 AM
Businesss Businesss is offline
 
Join Date: Feb 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent plugin...thanks. I have marked installed as well.

Any chance of allowing this to show ads after 1st post, 3rd post etc.. ??
Reply With Quote
  #119  
Old 05-14-2008, 08:09 AM
Blue-Inc Blue-Inc is offline
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This still works with 3.7.0! Clicks install*...
Reply With Quote
  #120  
Old 07-18-2008, 05:02 PM
reloadit reloadit is offline
 
Join Date: Jul 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not seen in opera ;(
Reply With Quote
  #121  
Old 07-22-2008, 11:19 AM
blogcrash blogcrash is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yogesh Sarkar View Post
Thanks for the hack, I was wondering if it would be possible to display the ad after 1st and last post. Last post could be 5th or 10th post in a topic and in case if its the first post only one ad would be displayed.
I would also like this solution...

After 1st and last post

Any idea please????
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 04:45 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.04644 seconds
  • Memory Usage 2,310KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (3)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