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

Reply
 
Thread Tools
Ain - Advanced Google AdSense Details »»
Ain - Advanced Google AdSense
Version: 7.0, by al3bed al3bed is offline
Developer Last Online: Jul 2021 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.x Rating:
Released: 02-16-2009 Last Update: 10-15-2009 Installs: 488
DB Changes Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

peace on you

work on vBulletin 3.8, 3.7 and 3.6 latest Versions
remember to click Mark as Installed if you use this modification.

please do not nominate this mod in any case
and in case become in MTOM please do not vote for it
and in case won the MTOM do not worry they will kick it out because of the two lines above




About this hack:
Advanced Ads for famous Google adsense program (for the program, click here) are now very high-class show in all pages of your forum, many options to offer more than a way of advertising in all pages. this product contains group of main features:
  • Google adsense Manager: system to add, edit and display adsense in your vbulletin forum
  • adsense revenue share: share with admins, friends or users
  • rotate ads: rotate adsense with other ads


why this is better than "Google AdSense Integration" feature:
Google AdSense Integration have only specific packages. And these packages have no options.



but let's take a look on Advanced Google AdSense features



Main features:
  • you can add adsense ads info into your database then call them by variables.
  • You can exclude or add forums, users, usergroups or ips from display ads to them.
  • practicability to show ads in specific locations with tables and borders or css divs.
  • practicability to choose best alignment to show your ads.
  • practicability to add extra ads under side left/right adsense ads.
  • with adsense share you can specifying how many post should user reach, percentage of share and either you want to share users or admins.
  • practicability to show adsense for search in popup forum search menu in navbar.
  • practicability to use old style of adsense code and use it with your fourm.
  • practicability to rotate adsense ads with other program ads for example like bidvertiser.
  • practicability to add specific ads for specific forum.
  • very high classifying options to show your adsene in different locations.


Screenshots:
First: admincp options

Second: google adsense manager
Third: display options pages

Install/upgrade the product:
- upload file cpnav_ain_adsens.xml inside includes\xml (replace it if you are upgrading from 6.0)
- Import product-ain_adsens.xml file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product] (Allow overwrite if you are upgardeing)


How to use it:
  1. after installation/upgrade go to your forum admin control panel (main page) and check out if your publisherid is empty or not. if it is, ads will not work until you update it. please visit ads setup options page to update it.
  2. in ads setup options, click on the link in the second option. you will be redirected to ads units system to ad your ads. from there you can delete, update or preview your adsense codes. if you planning to use adsense share it's better to add custom adsense unit.
  3. any ads already in your list, you can use it in any template. if your ad unit id is 5 and you want to display it in header template. you can go to header then add this code:
    PHP Code:
    $ain_adsense[5
    this in case you want to do it by yourself.
  4. in case you want to display your ads by the avilable option, go to Display options then click on the link you want to edit options in it. for example, you want to mange your adsense ads in forum home page. after you enterd the page, you have to choose locations where you want to show your ads. then on each location you choosed there are place to put ad id you preferd to that location. finally save and enjoy
  5. if you want to exclude users, usergroups, forums or ips you can do it from main options. you will need to take a look on options there.
  6. adsense share is completely optional, if you want to enable sharing take a look on Adsense Share options and if you still have questions I will be here to help if possible.


Versions:
  • v1.0 - not released beta.
  • v2.0 - first release for 3.7
  • v3.0 -
    • coordinating options in admincp.
    • options to display ads as links unit.
    • option to use css tables with ads.
    • add new option to display ads under first post only.
    • add new option to display ads beside the first post.
    • options to display ads in search result page.
  • v4.0 -
    • enhance tables show position when tables option checked.
    • add option to display ads left hand side in forumhome.
    • add option to display ads left hand side in forumdisplay.
    • new options to show link units ads.
    • new option display ads between post after x post.
    • add member profile page to 'show ads in different pages' option.
    • enhance codes & templates to work perfect with board.
  • v5.0 -
    • add option to show ads on side for showthread page.
    • new options to show ads on albums.
    • new options to show ads on social groups.
    • new option to exclude users id from showing ads.
    • option added: change phrase that shows beside ads
    • option added: to auto reload ads every x sec.
    • option added: to choose best direction to show vertical ads
    • enhance and fixed some codes in templates & plugin.
  • v5.1 -
    • fixed bug in code of reload ads every x sec
    • fixed problem with display ads between posts
  • v5.2 -
    • option added: exclude or add forums
    • option added: exclude or add groups
    • bug fixed: ads not showing to gusts
    • bug fixed: exclude forums problems
    • all permission are enables on archive
  • v6.0 -
    • divide options in ACP, create cpnav file
    • options added for adsense revenue share
    • option added for alignment ads in pages
    • options added to create old adsense unit
    • options added for rotate ads
    • option added to include ads in each forum
    • option added for google adsense search box
    • options added to choose different ads to show for each ads group
    • options added to choose type of cincturing for each ads group
    • codes enhanced, variable for ads available to use in any template
  • v7.0 -
    • divide adsense share in new group options, edit cpnav file
    • option removed auto refresh option
    • option added to exclude ip addresses
    • adsense share: option added to share revenue with admins, friends or users
    • adsense share: auto build new field for users
    • new system to add ads info into database table
    • extra ads to display under side left/right ads
    • another field to add code for rotate stuff
    • new pages for display options
    • options removed links ads and search page
    • extra options to dispaly ads in archive


Please post your comments or suggestions for this hack.
Thank you for supporting this modification, donate to make this mod even better
don't forget to Click to Mark as Installed



..

Download Now

File Type: zip Advanced Google AdSense [7.0].zip (34.2 KB, 1784 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #92  
Old 04-06-2009, 12:13 AM
o0_avid_0o o0_avid_0o is offline
 
Join Date: Mar 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there.. my partner Paul Schlegel and I are working on a forum at workathometruth.com and we were wondering..

the rev sharing.. can this be used to share between ONLY the admins? like really all we want it for at this point is to split the revenue between the 2 of us for now.. perhaps later on down the road we will use it to share with the users.

I've been poking around in the settings and trying to figure out if this is possible but if it is i don't understand how to get that working.

another thing that boggles me is the field part:

enter the name of the field that contains user adsense publisher id
attention: should build new field, example: field6

i was thinking this might be the way to get it to do what we need. i'm just really not sure what to do with this at all. perhaps a step by step for a simpleton like me would be helpful.



can anyone help us out at all?

thanks guys.. ps i just wanna say to all you coders who have been kind enough to share your work with the rest of us.. Thank you! we might not all always say it, but we appreciate all the hard work you guys do.

thanks in advances, gents.

Rick aka avid/workathometruth.com
Reply With Quote
  #93  
Old 04-11-2009, 03:46 AM
crazlunatic crazlunatic is offline
 
Join Date: Mar 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi. Right now you can only choose between leaderboard, banner, and custom ad.
Can I create two custom ads because for custom ad, I already used it to display image only leaderboards.

I want to make square ads in between posts.
Reply With Quote
  #94  
Old 04-11-2009, 10:28 AM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great. Thanks a lot just installed it and it's working fine on 3.8. Wanna see the cash flow
Reply With Quote
  #95  
Old 04-17-2009, 06:58 AM
snerd snerd is offline
 
Join Date: Apr 2007
Location: Oklahoma
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 5.2

Using W3C Markup Validation I get one error:

Validation Output: 1 Error

1. Error Line 76, Column 72: ID "ain_Reload" already defined

… id="vbseo_vhtml_0"></div> <div id="ain_Reload" align="center"><script type="

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

2. Info Line 50, Column 39: ID "ain_Reload" first defined here

</td> </tr> </table> <br /> <div id="ain_Reload" align="center"><script type="

How can I fix this please?

Thank you,
snerd
Reply With Quote
  #96  
Old 04-19-2009, 05:39 PM
Scamorz Scamorz is offline
 
Join Date: Oct 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How works google adsense revenue sharing?
Can you post more details?
thanks
Reply With Quote
  #97  
Old 04-22-2009, 12:28 AM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first I want to thanks all people support this mod.

PossumX I will find the better way to modify this mod. thanks for sharing me your experience in this mod.

Quote:
Originally Posted by Queball_Beast View Post
Is there anyway we could ad a search bar in the header or on some part of forum home?
well, in this version I guess no. maybe with farther once..

Quote:
Originally Posted by Chirag patel View Post
How do you show ads inside the first post?
there is an option for adding ads inside the first post .. see snapshots..

Quote:
Originally Posted by ryans View Post
I added it and it worked great. I installed a new style, deleted the old style, changed the colors in ain and the old colors stick. is there some cache somewhere to fix my colors?
I guess it's about cookies + some colors not supported by google adsense

Quote:
Originally Posted by trickfly View Post
Before I install can instead of adsense can I use adbrite code instead ?
no, if you want to use it as primary ads
yes, if you want to rotate adsense with adbrite ads.

Quote:
Originally Posted by luxmail View Post
hi any idea how in share revenue adsense, the user shall not see his own ads ? any ideea ?
if he can't see his own ads the he will not trust if there are showing or not. but there is a way for this, you need to update some codes. I will try to make sharing options more specific with next version.
Reply With Quote
  #98  
Old 04-22-2009, 12:49 AM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to use the adsense revenue sharing by displaying the google ads under the pics in the users gallery.

Is this possible?
Reply With Quote
  #99  
Old 04-22-2009, 12:51 AM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nNJ thanks for suggestions but it's hard to do it like what you explain it. I will try to do it in another way.

Quote:
can this be used to share between ONLY the admins
yes .. when you build the user field set Private Field to yes, then choose form usergroups admin groups to apply field to them

o0_avid_0o sharing settings have no advance options yet. let's wait the next version

Quote:
Hi. Right now you can only choose between leaderboard, banner, and custom ad.
Can I create two custom ads because for custom ad, I already used it to display image only leaderboards.

I want to make square ads in between posts.
with v6.0 you can't add square ads in between posts.. next version will include more flexible options and optimized codes.


Quote:
Using W3C Markup Validation I get one error:
Validation Output: 1 Error
that because I use one id for many attributes to reloading ads. you can fixed it by editing 'ain_adsense_sideH' template find and delete:

PHP Code:
id="ain_reload" 
after this you will be unable to use reloading option.

I will fix this in the newer version.

Quote:
How works google adsense revenue sharing?
Can you post more details?
if you want to enable adsense revenue share, you should build user field and write the field name in options of adsense revenue share. you can build field as following:
- AdminCP -> User Profile Fields -> Add New User Profile Field
- choose Profile Field Type: single-line text box then continue
- add information like what in this file then save the field.
- copy the name of field and bring it to main options in AGA.

it's simple.. which part you didn't understand?
Reply With Quote
  #100  
Old 04-22-2009, 10:24 PM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wonderful... THanks
Reply With Quote
  #101  
Old 04-28-2009, 03:34 PM
Ogmuk Ogmuk is offline
 
Join Date: Jun 2003
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

First of all, great add-on.

Bugs I noticed in 6.0:
1) Main options > main options > choose alignment for ads: at this option left and right are switched.
2) Display Options > display ads in different pages > display ads in archive: yes and no give the same result. Ads are always displayed in the archive.
3) On the page album.php?albumid=* the top ad is displayed after the <br /> and thus isn't displayed correctly (two line breaks before the ad and none after). On the pages album.php and album.php?albumid=*&pictureid=* the ad is showing fine.
4) The option "display after x post" is behaving odd. For instance when using "2" there, on each page of the thread it would show an ad after the first post -and- then 2 posts later, so in-between the 3th and 4th, it would show another, and 2 posts later, etc. So it behaves as if it does "display after first post all page" + the additional x posts later. In addition to this, if this is fixed, could it maybe be possible to have an option "display after x post" and "display after x post all pages"? For instance if you'd like to show the ad after each 2nd post (but not repeat it after every 2 posts like it does now).
5) When viewing pictures in Social Groups, no ads are shown even though ads are turned on for both Social Groups and Albums.
6) If a forum has "Allow Post Icons" set to "No" then the colspan will be wrong and the ad links will be displayed in the wrong area.
7) The link ads show when searching for "Find all posts by user", which uses a different style so they probably shouldn't show then.

Feedback:
1) Could it be possible to add an option to turn off the use of google_ad_slot for archive ads? That way the archive ads would have the default color and would look better with the default colors than with the color scheme I use on the normal (non-archive) version (since that's dark/black instead of white/light).
2) In addition to the feedback above, maybe allow us to put the banner that's showing below the archive at the left side? So 2 side banners and one on top? I've stumbled upon this mod and it gives some more freedom with the archive ads: EZ Archive Ad System. Here an example of a site using it: website.
3) 2 options are missing at the moment. It's impossible to turn off the sidebar in the search results (afaik) and it's also impossible to set the type of banner. I'd like a banner instead of leaderboard and no skyscraper at the side but I can't get this done at the moment:
Display options > display ads in different pages
4) The custom adsense search is showing fine on the forum. Could it be possible to add compatibility with vbadvanced so it will show on the portal page as well?
5) Maybe add the possibility to show ads on forum category pages (i.e. when clicked on category instead of subforum)?



I hope some of that is of use to you and thanks again for the great mod!
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 02:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15027 seconds
  • Memory Usage 2,369KB
  • Queries Executed 27 (?)
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_php
  • (9)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
  • (1)pagenav_pagelinkrel
  • (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
  • (1)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