Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Reveune Sharing Hack Details »»
Adsense Reveune Sharing Hack
Version: 1.00, by artonex artonex is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

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(01);
$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.

Comments
  #22  
Old 04-25-2005, 09:43 PM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wonder any screenshots of this?
Reply With Quote
  #23  
Old 04-25-2005, 09:46 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheWebJunkie
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...
Reply With Quote
  #24  
Old 04-26-2005, 11:36 PM
Webdude? Webdude? is offline
 
Join Date: Jan 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
http://www.keyconcept.org/vbulletin-...ring-hack-mod/

Even took his wording too I see.
Reply With Quote
  #25  
Old 04-27-2005, 03:47 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What exactly does this hack do?
Reply With Quote
  #26  
Old 04-27-2005, 04:15 AM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
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....
Reply With Quote
  #27  
Old 04-27-2005, 09:45 PM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Displaying revenue earned from Adsense is breaking the Google TOS. I would recommend removing this hack.

-dndog
Reply With Quote
  #28  
Old 04-27-2005, 09:48 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 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...
Reply With Quote
  #29  
Old 04-27-2005, 10:31 PM
artonex artonex is offline
 
Join Date: Mar 2005
Location: UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Webdude?
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-...ring-hack-mod/

Even took his wording too I see.
SteveF did not write the hack i have released here so get your facts right!
Reply With Quote
  #30  
Old 04-28-2005, 12:12 AM
Webdude? Webdude? is offline
 
Join Date: Jan 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheWebJunkie
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?
Reply With Quote
  #31  
Old 04-28-2005, 07:27 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 09:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04737 seconds
  • Memory Usage 2,327KB
  • 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
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete