Version: 1.00, by artonex
Developer Last Online: Jan 2007
Version: 3.0.7
Rating:
Released: 04-23-2005
Last Update: Never
Installs: 3
No support by the author.
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:
PHP 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".
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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...
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.
Quote:
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.
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....
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".
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: