View Full Version : Adsense Reveune Sharing Hack
artonex
04-23-2005, 10:00 PM
This hack will allow you to offer Google Adsense revenue sharing to your vbulletin board users. Revenue sharing is a great way to reward your board members for their loyalty and adds a feeling of ownership in the board and it's success.
Add a User Profile Field with these settings:
Profile Field Type: Single-Line Text Box
Title: (your choice)
Description: (your choice)
Field Editable By User: Yes
Private Field: Yes
Field Searchable On Memers List: No
Show On Members List: No
(I have only specified settings for the fields you will need to change from their defaults.)
In the php_include_start template, add this code:
srand();
$random_number = rand(0, 1);
$ga_adsenseid = 'ENTER_YOUR_ADSENSE_ID_HERE';
if ($random_number == 1)
{
if (THIS_SCRIPT == 'showthread')
{
if (!empty($_REQUEST['t']))
{
$ga_threadid = $_REQUEST['t'];
}
else
{
$ga_threadid = $_REQUEST['threadid'];
}
$ga_thread = $DB_site->query_first("
SELECT postuserid
FROM ".TABLE_PREFIX."thread
WHERE threadid = $ga_threadid
");
$ga_user = $DB_site->query_first("
SELECT field7 AS adsenseid
FROM userfield
WHERE userid = $ga_thread[postuserid]
");
}
elseif (THIS_SCRIPT == 'showpost')
{
if (!empty($_REQUEST['p']))
{
$ga_postid = $_REQUEST['p'];
}
else
{
$ga_postid = $_REQUEST['postid'];
}
$ga_post = $DB_site->query_first("
SELECT userid
FROM ".TABLE_PREFIX."thread
WHERE postid = $ga_postid
");
$ga_user = $DB_site->query_first("
SELECT field7 AS adsenseid
FROM userfield
WHERE userid = $ga_post[userid]
");
}
if (!empty($ga_user['adsenseid']))
{
$ga_adsensecode = $gauser['adsenseid'];
}
}
Then, where ever you have your AdSense display code, find the spot where you specify your AdSense ID and replace it with $ga_adsenseid . Also make sure in the above code that you enter YOUR AdSense ID in the spot above where it says "ENTER_YOUR_ADSENSE_ID_HERE".
Deaths
04-24-2005, 11:27 AM
Is it correct that this code adds 2 queries to every page?
artonex
04-24-2005, 11:35 AM
Im not sure, i paid someone to code this hack for me. I have seen a few ppl wanted it so i decided to share it with all :)
Deaths
04-24-2005, 11:44 AM
Hmm, ok.
Well, I've looked through it, and it adds 2 queries to showthread.
Lionel
04-24-2005, 12:17 PM
I saw that hack at hotscripts. The guy wanted 150.00 dollars for that???
nexialys
04-24-2005, 12:21 PM
point with such a hack is that 99% of boards users don't even know about AdSense, so i don't see why you'd be asked to pay for such a hack...
and adding the field in the users table would speed up the treatment and cut a query...
Guy G
04-24-2005, 12:33 PM
point with such a hack is that 99% of boards users don't even know about AdSense, so i don't see why you'd be asked to pay for such a hack...
and adding the field in the users table would speed up the treatment and cut a query...
Yes but what if your board related to webhosting and such? like DigitalPoint... That hack would work great in there.
Lionel
04-24-2005, 12:42 PM
That would fall into the remaining 1% :-)
Nexy's hack to insert ad randomly in thread is best.
T3MEDIA
04-24-2005, 12:46 PM
The guy is offerning to share... lets not chop him down.
BUT good looking out on the extra load it produces.
artonex
04-24-2005, 12:49 PM
That would fall into the remaining 1% :-)
Nexy's hack to insert ad randomly in thread is best.
Where can i find that hack ?
Lionel
04-24-2005, 12:59 PM
Where can i find that hack ?
Click on his profile and select random ads in thread per usergroup. That is Nexialys few posts above.
It does not share revenue, but conveniently places it in thread. You can put googles script in it if you wish.
artonex
04-24-2005, 01:26 PM
Using his hack and mine together would be very good :)
Gastongr
04-24-2005, 01:27 PM
Thanks for Sharing TheWebJunkie.
Is there an additional section in the user cp so they can view their ads and manage when they want them displayed?.
ALso is there any kind of control over users who register and never post, like points for posting or something.?
nexialys
04-24-2005, 02:55 PM
Using his hack and mine together would be very good :)
you can build a merge if you like... as you're not a coder, just ask someone to do it... but refuse to pay for such a hack next time... most coders here will do it for free if they see a good advertising power in it!
Geographic2
04-24-2005, 03:37 PM
Using adsense makes your forums look like crap and lines the pockets of Googles shareholders more than it will ever benifit your members. In other words you're being exploited but... Proceed, Carry on, Pretend I never said nuthin... :)
@nexialis... this hack can be a good one for webmaster forums ;)
@geographic2... if you know how to place them adsense can be a great tool to maintain your site... you can always have them display for guests only... and like I said, you go to know how and where to place them... google adsense is the best thing that could happen to many webmasters ;)
@thewebjunkie... thanks for sharing this with the community... is greatly appreciated specially since you had to pay for it... I dont know if I would use it, with google TOS I'm still not really sure if they agree with this type of hacks..... anyways, thank you :)
artonex
04-25-2005, 08:43 PM
@thewebjunkie... thanks for sharing this with the community... is greatly appreciated specially since you had to pay for it... I dont know if I would use it, with google TOS I'm still not really sure if they agree with this type of hacks..... anyways, thank you :)
Google do allow this hack, a few ppl emailed google about it, there email reply can be found on http://forums.digitalpoint.com :)
can you post the link to that specific thread? I tried searching but couldnt find anything...
artonex
04-25-2005, 09:37 PM
hmmm they must have cleaned up some old threads as its not there anymore :(
Acido
04-25-2005, 09:42 PM
Field Editable By User: Yes
Sorry, but How can the user edit his self ID?
Can you provide some screens ?
Thanx !
Skyline_GT
04-25-2005, 09:43 PM
I wonder any screenshots of this?
hmmm they must have cleaned up some old threads as its not there anymore :(
to be honest with you I havent found any single proff that Google allows this... no that I dont believe you is just that I havent been able to prove it myself... thanks anyways...
Webdude?
04-26-2005, 11:36 PM
Several of us have paid over $100 for this hack. SteveF wrote this script. It isnt free.
From what I hear, this isnt the first time you have done something like this.
This hack will allow you to offer Google Adsense revenue sharing to your vbulletin board users. Revenue sharing is a great way to reward your board members for their loyalty and adds a feeling of ownership in the board and it's success.
http://www.keyconcept.org/vbulletin-adsense-revenue-sharing-hack-mod/
Even took his wording too I see.
Erwin
04-27-2005, 03:47 AM
What exactly does this hack do? :)
What exactly does this hack do? :)
well it allows to have in the usercp a field that allows members to enter their Google Adsense Number and then the Adsense Ads that are displayed in the website will randomly select the Adsense number of any member, and of course, when people click on the ad the earnings will go to that specific member...
I think the ads will display the website's owners adsense banner 50% of the time and the other 50% will randomly select any member that has the number in their usercp....
dndog
04-27-2005, 09:45 PM
Displaying revenue earned from Adsense is breaking the Google TOS. I would recommend removing this hack.
-dndog
Displaying revenue earned from Adsense is breaking the Google TOS. I would recommend removing this hack.
-dndog
the hack does not display the earnings.... I been waiting for an official answer from Google in wheter this hack is breaking the TOS or not...
artonex
04-27-2005, 10:31 PM
Several of us have paid over $100 for this hack. SteveF wrote this script. It isnt free.
From what I hear, this isnt the first time you have done something like this.
http://www.keyconcept.org/vbulletin-adsense-revenue-sharing-hack-mod/
Even took his wording too I see.
SteveF did not write the hack i have released here so get your facts right!
Webdude?
04-28-2005, 12:12 AM
SteveF did not write the hack i have released here so get your facts right!
Hmm, but he wrote the words you are using, that much I know. I wont bother looking at the coding I got from him. I know it's easy enough to steal code and change it just enough to not infringe on copyrights. Much like all the forum software out there based off VB. Coding is changed "just enough".
Oh, so by the way, just who DID write your code?
AlexanderT
04-28-2005, 07:27 AM
Well, while you are still discussing whose code we are dealing with, how about having a look at my version of this hack I wrote a couple of months ago:
https://vborg.vbsupport.ru/showthread.php?t=80685
My version doesn't add any queries, btw.
AlexanderT
04-28-2005, 10:42 AM
the hack does not display the earnings.... I been waiting for an official answer from Google in wheter this hack is breaking the TOS or not...
It is not. I inquired Google about it the first day they changed to their latest TOS:
Hello Alexander,
Thanks for your email.
To clarify, please note that you may continue displaying ads from
different publishers on your site. However, we ask that you not place ads
from two different accounts on the same web page. We appreciate your
cooperation.
Please feel free to reply to this email if you have additional questions
or concerns.
Sincerely,
James
The Google AdSense Team
Princeton
04-28-2005, 11:42 AM
thanks for sharing ...
you could reduce the queries to 0 if done right
---------
some people want functionality that is catered to them only .. which is why people hire coders ... also, 99% of vb owners do not 'stick around' vbulletin.org to find hacks ... there is simply no time for that
so, if someone pays for added funtionality and wants to share more power to them ... making the addon public will always make it a better product (in the long run)
cheers :)
AlexanderT
04-28-2005, 12:17 PM
Uhm have you checked my second last post? :)
pelukis
04-28-2005, 08:05 PM
Then, where ever you have your AdSense display code, find the spot where you specify your AdSense ID and replace it with $ga_adsenseid
where do i go to edit the spot????
sorry i am no coder!
bigcurt
05-07-2005, 09:23 PM
HMM, so this shows the money you make on adsense? That is against googles TOS if I am not mistaken.
HMM, so this shows the money you make on adsense? That is against googles TOS if I am not mistaken.
No, this hack does not show the money you make on adsense... and even if it did, sharing how much you make on adsense is not against the Google TOS anymore...
xtreme-mobile
05-08-2005, 02:59 PM
i dont quite get this hack :(
can i set it up so that only i get money from my members clicking banners? so that will help pay my hosting fees then?
sorry if this is thick question :)
LEAD_WEIGHT
05-08-2005, 11:14 PM
i dont quite get this hack :(
can i set it up so that only i get money from my members clicking banners? so that will help pay my hosting fees then?
sorry if this is thick question :)
Look @ this https://vborg.vbsupport.ru/showthread.php?t=80685
forumrating
11-16-2005, 05:03 AM
will this work with vb 3.5 latest version !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.