vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Ain - Advanced Google AdSense (https://vborg.vbsupport.ru/showthread.php?t=192899)

al3bed 10-05-2008 10:00 PM

Ain - Advanced Google AdSense
 
peace on you


work on vBulletin 3.8, 3.7 and 3.6 latest Versions
Please remember to click Mark as Installed if you use this modification.
Also, if you like it nominate it for MOTM, donate to make it better



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.

https://vborg.vbsupport.ru/external/2012/03/35.png

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
https://vborg.vbsupport.ru/external/2009/02/52.jpg
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 and Click to Mark as Installed



..

FreshFroot 10-06-2008 10:05 PM

Quote:

Live Demo:
I don't have one but I offer 3 website links for users who click Mark as Installed
No offense, but how can someone click install on a product, that they can't view a demo for ahead of time?

4x4 Mecca 10-06-2008 10:43 PM

installed and testing, but you have thread misspelled everywhere, as theard

al3bed 10-06-2008 10:46 PM

Quote:

Originally Posted by FreshFroot (Post 1638931)
No offense, but how can someone click install on a product, that they can't view a demo for ahead of time?

sorry about misunderstanding here. I mean those who download, try and install the product i offer to put there links as Live demo. but if no one install it will stay like this without live demo. maybe I will try to add some screenshots if no one like it.. :erm:

thanks for your comment

GigaSb 10-06-2008 10:50 PM

checked. works fine, but some border with title should be added to "look better"

al3bed 10-06-2008 10:52 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1638952)
installed and testing, but you have thread misspelled everywhere, as theard

oh, I am sorry for this misspelled. I will corect it in next version.

any other suggestions, bugs and misspelled please tell me. :)

al3bed 10-06-2008 10:57 PM

Quote:

Originally Posted by GigaSb (Post 1638958)
checked. works fine, but some border with title should be added to "look better"

you can add border to you ads it's simple html.
I will try to add option for borders in next version

4x4 Mecca 10-06-2008 11:04 PM

You can demo mine! The more adsense the better. I have it in the posts mainly.
http://www.4x4mecca.com/forum/truck-...6-big-red.html

gwerzal 10-06-2008 11:20 PM

If you want install clicks really think you need some screenshots/demo's

badheeu 10-06-2008 11:59 PM

live demo: http://www.kma.mv/forum/showthread.p...6744#post16744

Rat1972 10-07-2008 12:06 PM

it would be nice, if it would display under every first post each page. Now it only displays in the first post.

Wayne Luke 10-07-2008 03:26 PM

Quote:

Originally Posted by FreshFroot (Post 1638931)
No offense, but how can someone click install on a product, that they can't view a demo for ahead of time?

My thought exactly. At least do some mockup screenshots and attach them to the post. ;)

Macartist6 10-07-2008 04:47 PM

anyone know how to center the ads on a page (sorry newbie here)

Macartist6 10-07-2008 05:33 PM

Anyone help me out here??

forum.softballnut.com

need to center the banners and I can't figure it out

thanks for any help!

Brandon Sheley 10-07-2008 06:15 PM

Code:

<div align="center"></div>
this should center your ads, btw I'm not really convinced this is needed since 3.7 has so many ad locations built in already ?

lindab2 10-07-2008 06:26 PM

Quote:

Originally Posted by badheeu (Post 1638995)

You want him to use your warez forum as demo?? Seems like you will loose your vb license now...

Macartist6 10-07-2008 06:36 PM

Where do I put that script???

here's what I have so far...
<script type="text/javascript"><!--
google_ad_client = "pub-5756459433230177";
/* SBN_top banner */
google_ad_slot = "3156960549";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Rat1972 10-07-2008 07:34 PM

Quote:

Originally Posted by Macartist6 (Post 1639631)
Where do I put that script???

here's what I have so far...
<script type="text/javascript"><!--google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
google_ad_client = "pub-5756459433230177";
/* SBN_top banner */
google_ad_slot = "3156960549";

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Admincp ----> vbulletin options ----> AIN - Google adsense -------> And you see three big boxes, where it say's but code under tis line, there you put the code.

cheers!

Macartist6 10-08-2008 01:52 AM

Quote:

Originally Posted by Rat1972 (Post 1639692)
Admincp ----> vbulletin options ----> AIN - Google adsense -------> And you see three big boxes, where it say's but code under tis line, there you put the code.

cheers!

sorry I meant, where in the script do I put "<div align="center"></div>"

v12kid 10-08-2008 02:30 AM

screen shots plz before I install :)

al3bed 10-11-2008 04:05 AM

This hack is updated.

Quote:

Originally Posted by 4x4 Mecca (Post 1638968)
You can demo mine! The more adsense the better. I have it in the posts mainly.
http://www.4x4mecca.com/forum/truck-...6-big-red.html

thank you.. I will demo it

Quote:

Originally Posted by gwerzal (Post 1638977)
If you want install clicks really think you need some screenshots/demo's

I don't want 'install clicks'. what I will benift from install clicks? :confused:
I am sorry about my english but I mean in 'demo live' those who download the hack and install it.. which I can to use their forums as demos. becuase I can't use any simple ads added to templete as demo of this hack.

thanks for your comment.. :)

Quote:

Originally Posted by badheeu (Post 1638995)

sorry there are no google ads in your forum.
thanks any way .. :)

Quote:

Originally Posted by Rat1972 (Post 1639329)
it would be nice, if it would display under every first post each page. Now it only displays in the first post.

no, the option what you talk about it is display ads under first post in each page.. if you have 2.0 try to use other style or forum maybe there are something wrong in the style because I use auto-template. in version 3.0 I add option to display it under first post only. Thanks for your comment :)

al3bed 10-11-2008 04:25 AM

Quote:

Originally Posted by Wayne Luke (Post 1639463)
My thought exactly. At least do some mockup screenshots and attach them to the post. ;)

I do mr.Wayne
you are welcome here .. any advice tell me please?

Quote:

Originally Posted by Macartist6 (Post 1639581)
Anyone help me out here??
forum.softballnut.com
need to center the banners and I can't figure it out
thanks for any help!

you can center it by any html code div is better one.
if you not related with html try use new version with tables use.

Quote:

Originally Posted by Loco.M (Post 1639614)
Code:

<div align="center"></div>
this should center your ads, btw I'm not really convinced this is needed since 3.7 has so many ad locations built in already ?

thanks for help Loco.M :)

you are right, there is many ad locations built in (in 3.7). but is better to you add your ads in one place or to add it in all styles every template? this hack work for many places in your forum that not have any ad locations .. vb default ad locations is few until now if you are related with template you know what I mean. Thanks for you comment. :)


Quote:

Originally Posted by Macartist6 (Post 1639878)
sorry I meant, where in the script do I put "<div align="center"></div>"

you can add it in big boxes in options: AdminCP > vBulletin Options > Ain - Advanced Google AdSense .. add it like this:

PHP Code:

<div align="center">put you google code here</div

Quote:

Originally Posted by v12kid (Post 1639905)
screen shots plz before I install :)

screens added.. :rolleyes:




best wishes.

Fynnon 10-12-2008 08:13 PM

this is nice but i have a request...

now we only have the ability to show it:

1. after the first post - this is not enough
2. after all posts ina topic - this is too much

so i want
3. after posts 1, 3 and 5 and so on....or after post 2, 6, 10

10x

al3bed 10-13-2008 12:04 PM

Quote:

Originally Posted by Fynnon (Post 1643584)
this is nice but i have a request...

now we only have the ability to show it:

1. after the first post - this is not enough
2. after all posts ina topic - this is too much

so i want
3. after posts 1, 3 and 5 and so on....or after post 2, 6, 10

10x

no problem mr.Fynnon

I will try my best to release this update as soon as possible. :)
thanks for suggestion.




..

Rat1972 10-18-2008 11:59 AM

Quote:

Originally Posted by al3bed (Post 1644038)
no problem mr.Fynnon

I will try my best to release this update as soon as possible. :)
thanks for suggestion.




..

It would be wonderfull for me too if that option will be enabled :)

thanks for the good work!

JGNYC 10-18-2008 06:45 PM

Would it be possible to place ads on the left hand side of the page?

Preech 10-20-2008 07:52 AM

How do we get this to show on vbadvanced

al3bed 10-20-2008 01:32 PM

Quote:

Originally Posted by Rat1972 (Post 1647624)
It would be wonderfull for me too if that option will be enabled :)

thanks for the good work!

:)

Quote:

Originally Posted by JGNYC (Post 1647854)
Would it be possible to place ads on the left hand side of the page?

its possible and your suggestion will perform as an option in next version that will be tonight ;)

thanks and you are welcome any time

Quote:

Originally Posted by Preech (Post 1648768)
How do we get this to show on vbadvanced

mmm.. its maybe when I use a model of vbadvanced but with this hack I don't think it will be good .. even the vbadvanced is show header, navbar, and footer I think I can do somthing but not in this hack I will made a model.. :)

thanks for suggestion & support

version 4.0 will be here tonight :)

soner 10-21-2008 09:18 AM

thank you working

al3bed 10-22-2008 09:36 PM

updated.. Please if you have a comments or suggestions for this hack post it

Quote:

thank you working
welcome sir .. :)

alshreef1 10-22-2008 11:28 PM

good

Rat1972 10-23-2008 02:29 PM

first: Thanks for the upgrade!
Second: I have a problem, it doesn't matter wich option i choose, i only see the ads in the first post, but on other pages there is nothing to see. I tried everyting, after x posts.... each first post each page. Etc etc, but still nothing... Could it be a problem that it a costum template? If so, wich template should i revert?

I hope you can help me

cheers!

al3bed 10-23-2008 04:26 PM

Quote:

Originally Posted by alshreef1 (Post 1650791)
good

thanks :)

Quote:

Originally Posted by Rat1972 (Post 1651152)
first: Thanks for the upgrade!
Second: I have a problem, it doesn't matter wich option i choose, i only see the ads in the first post, but on other pages there is nothing to see. I tried everyting, after x posts.... each first post each page. Etc etc, but still nothing... Could it be a problem that it a costum template? If so, wich template should i revert?

I hope you can help me

cheers!

Deer Rat1972

this hack work with 3.7 using Auto-Template. if you are running this on 3.6+ maybe you will not see many of ads show because I use some time hooks & ads locations that located only in 3.7+

If you running 3.7+ it's should be work good except if you are using very costum template. for options between posts add this at the end to postbit or postbit_lagecy template:

PHP Code:

$template_hook[postbit_end

for options inside first post try add:

PHP Code:

$template_hook[postbit_signature_start

PHP Code:

$template_hook[postbit_signature_end

just before & after signature part

don't do these adjustments if you don't running 3.7 +

good luck :)

dijital-mekan 10-23-2008 04:27 PM

thank you very much :)

saotome 10-26-2008 03:47 PM

Quote:

Originally Posted by al3bed (Post 1651222)
thanks :)



Deer Rat1972

this hack work with 3.7 using Auto-Template. if you are running this on 3.6+ maybe you will not see many of ads show because I use some time hooks & ads locations that located only in 3.7+

If you running 3.7+ it's should be work good except if you are using very costum template. for options between posts add this at the end to postbit or postbit_lagecy template:

PHP Code:

$template_hook[postbit_end

for options inside first post try add:

PHP Code:

$template_hook[postbit_signature_start

PHP Code:

$template_hook[postbit_signature_end

just before & after signature part

don't do these adjustments if you don't running 3.7 +

good luck :)


hi,
can you made it like this plugin? ----> https://vborg.vbsupport.ru/showthread.php?t=131150

its can sharing adsense revenue, auto refresh, etc. since redtyger holiday very longtime there is a lot of so many bug there or its can't use for vbulletin 3.7x. thanks in advance

Rat1972 10-26-2008 07:38 PM

Thanks mate for your answer. I think i found the problem. The forum that didnt work like suposed to, is using vbulletin 3.8.x, but my other forum that using 3.7.x there its working like charm. Sorry for the inconvience. It was my mistake ;)

Keep up the good work!

al3bed 10-27-2008 11:35 AM

Quote:

Originally Posted by dijital-mekan (Post 1651223)
thank you very much :)

you are welcome
Thanks for comment :)

Quote:

Originally Posted by saotome (Post 1653162)
hi,
can you made it like this plugin? ----> https://vborg.vbsupport.ru/showthread.php?t=131150

its can sharing adsense revenue, auto refresh, etc. since redtyger holiday very longtime there is a lot of so many bug there or its can't use for vbulletin 3.7x. thanks in advance

I will see what can I do for this before I release a new version..
thanks much for your suggestion :)

Quote:

Originally Posted by Rat1972 (Post 1653329)
Thanks mate for your answer. I think i found the problem. The forum that didnt work like suposed to, is using vbulletin 3.8.x, but my other forum that using 3.7.x there its working like charm. Sorry for the inconvience. It was my mistake ;)

Keep up the good work!

ok I hope you like it and any suggestion or problem with 3.7 tell me please.
I will made one for 3.8 when reach gold stage :)

Artes_Marciales 10-27-2008 03:30 PM

GREAT MOD
Installed & Nominated!!!

Thanks! : )

demoniavbh 12-03-2008 01:08 PM

Great one, THANKS!

Do you know does google act in order to display the correct ads?
I mean, does this have something to do with google spiders? If I force guests to register, will google adsense be able to find the correct ads to display according to my forum?

Yosef Sh 12-31-2008 07:34 AM

great work dears
yeslmo


All times are GMT. The time now is 10:25 AM.

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.01806 seconds
  • Memory Usage 1,891KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_php_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete