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
  #202  
Old 10-28-2009, 01:10 AM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fredang85 View Post
I won't give up on you!
I don't know why you still get errors even when you completely removed the product then installed it again (without any errors during the installation process)?! if you insist, try to modify plugin 'adsense [algdeer.net] options' you may find the missing bracket there. this is the only plugin used includes/adminfunctions_options.php file.

Quote:
Originally Posted by sjr4x4 View Post
This a fantastic add on, and I've got it just how I want it for registered users, but no adsense units show for visitors?
Quote:
Looks like I've worked it out for myself
Quote:
Originally Posted by Animemike View Post
"enable this option if you want to border your ads with css tables.
you can also choose this option from display options"

Just dont work for me i get no Boxes and i cant find the CSS you used
Quote:
Edit am a idiot lol all fixed

good luck all and you are welcome
Reply With Quote
  #203  
Old 10-28-2009, 10:27 AM
fredang85 fredang85 is offline
 
Join Date: Sep 2007
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by al3bed View Post
I don't know why you still get errors even when you completely removed the product then installed it again (without any errors during the installation process)?! if you insist, try to modify plugin 'adsense [algdeer.net] options' you may find the missing bracket there. this is the only plugin used includes/adminfunctions_options.php file.
I scanned through for 10 mins, doesn't seem to have anything wrong with it..
This is inside:

if($vbulletin->options['ain_adsense_enable'] AND $vbulletin->options['ain_adsense_client'] == ''){
print_table_start();
print_table_header("Google Adsense",1);

echo "<tr><td class=\"alt1\">
publisherid is empty. <font color=\"red\"><strong>ads will not work until you update it.</strong></font> please visit <a href=\"options.php?do=options&amp;dogroup=ain_adse nse_ads\">ads setup options page</a> to update it
</td></tr>";

print_table_footer(1, '', '', 0);
}

On top of that, I don't think it has anything to do with why the things won't appear correctly in my ads manager right?
Reply With Quote
  #204  
Old 10-31-2009, 09:38 PM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not that plugin, I mean the plugin named by 'adsense [algdeer.net] options'

I still don't know why it's not working for you good luck
Reply With Quote
  #205  
Old 11-01-2009, 08:14 AM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i rotate ads? I've inserted the code and clicked on rotate ads "yes" but nothing happpens.
Reply With Quote
  #206  
Old 11-01-2009, 10:00 AM
Tize. Tize. is offline
 
Join Date: Oct 2009
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Thanks man.
Installed!!!
Reply With Quote
  #207  
Old 11-01-2009, 11:02 AM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ad rotation feature is not working. I have tried to of my ad networks and nothing comes up, it just keeps on showing the google ads. If I insert a link to an image like

Code:
http://www.myfootballforum.com/images/banner1.jpg
I added the link above to the image and it shows it like that. No image just the link to the image, I know I have to add the <img> tag but when I do nothing shows.

ALSO

This html code doesn't show anything:

Code:
<iframe allowtransparency="true" src="http://ads.betfair.com/ad.aspx?bid=2463&pid=13952" width="728" height="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
Is this a known problem?
Reply With Quote
  #208  
Old 11-01-2009, 01:44 PM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mcyates View Post
How do i rotate ads? I've inserted the code and clicked on rotate ads "yes" but nothing happpens.
you can rotate ads by clicked yes then put any code html/javascript in 2 boxes (texarea) below that option .. the rotate options needed to be more customized I will work for this next week. the problem is that when you click yes randomly will change all ads by 33.3% my code it's look like:

PHP Code:
mt_srand((double)microtime() * 1234567);
    
$banner_picked mt_rand(13);}
else{
$banner_picked 1
seems too stupid for rotate things I'm working to enhance it

Quote:
Originally Posted by Tize. View Post
Excellent Thanks man.
Installed!!!
welcome

Quote:
Originally Posted by mcyates View Post
The ad rotation feature is not working. I have tried to of my ad networks and nothing comes up, it just keeps on showing the google ads. If I insert a link to an image like

Code:
http://www.myfootballforum.com/images/banner1.jpg
I added the link above to the image and it shows it like that. No image just the link to the image, I know I have to add the <img> tag but when I do nothing shows.

ALSO

This html code doesn't show anything:

Code:
<iframe allowtransparency="true" src="http://ads.betfair.com/ad.aspx?bid=2463&pid=13952" width="728" height="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
Is this a known problem?
yes, you need to skip each double quotation " by slash \ like this:
PHP Code:
<iframe allowtransparency=\"true\" src=\"http://ads.betfair.com/ad.aspx?bid=2463&pid=13952\" width=\"728\" height=\"90\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\"></iframe> 
or you can use single quote for the attributes e.g. 'true' rather than \"true\" if you are using xhtml 4.0 and same for the images
Reply With Quote
  #209  
Old 11-04-2009, 02:33 AM
rgvtruck rgvtruck is offline
 
Join Date: Oct 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

al3bed how do i remove the gap of my sites signature? I turned ON the mod for having adsense in the first post but theres a gap between the sig picture. Here's a picture so you can get and idea of what im talking about it even does it when pictures are added to the post.

Pictures Attached
Attached Images
File Type: jpg PictureGap.JPG (76.1 KB, 0 views)
File Type: jpg SigGap.JPG (83.3 KB, 0 views)
Reply With Quote
  #210  
Old 11-04-2009, 07:35 AM
al3bed's Avatar
al3bed al3bed is offline
 
Join Date: Sep 2006
Location: Bahrain
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a gap accully because the ad unit excute with message (post) in one variable. which I mean that (ad unit + post) is one block and sig data is another block. so if your post too short it's will shown like above.

you can solve this by using new version of this mod v7.0
add your ad units info then, in 'postbit' or/and 'postbit_lagecy' template
add where ever you want:
PHP Code:
<if condition="$post[postcount] == 1">$ain_adsense[xx]</if> 
xx you ad unit id

best luck
Reply With Quote
  #211  
Old 11-04-2009, 06:52 PM
rgvtruck rgvtruck is offline
 
Join Date: Oct 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by al3bed View Post
there is a gap accully because the ad unit excute with message (post) in one variable. which I mean that (ad unit + post) is one block and sig data is another block. so if your post too short it's will shown like above.

you can solve this by using new version of this mod v7.0
add your ad units info then, in 'postbit' or/and 'postbit_lagecy' template
add where ever you want:
PHP Code:
<if condition="$post[postcount] == 1">$ain_adsense[xx]</if> 
xx you ad unit id

best luck
Ived tried it and i still cant get it to work, now it floats on top of the post not on the side like i wanted to. Can you tell me which template to modify? What to replace?
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 06:06 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.05026 seconds
  • Memory Usage 2,386KB
  • 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
  • (4)bbcode_code
  • (5)bbcode_php
  • (10)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
  • (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
  • 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