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 Revenue Sharing Hack 1.1 (0 queries version) Details »»
Adsense Revenue Sharing Hack 1.1 (0 queries version)
Version: 1.00, by AlexanderT AlexanderT is offline
Developer Last Online: Jul 2021 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-27-2005 Last Update: Never Installs: 48
 
No support by the author.

Upgrade 1.1 notice:
The upgrade from 1.0 to 1.1 is optional; it makes sure ads don't display in private messages. Thanks to venomx for the tip.

Hack Description:
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. Revenue is split between board administrator and thread starters. The percentage of probability is customizable by the administrator.

This hack is fundamentally the same like this hack; however, it adds some customization plus does not use any additional queries!

I wrote this hack a couple of months ago and didn't know there was any interest for it (you certainly don't want to spend money on something that doesn't take much time to code).

My time is *very* limited so I am not good at giving support. I hope the instruction included is self-explanatory. It is easy to expand the hack to your needs.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 05-14-2005, 12:33 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CallieJo2
I am trying this but the instructions are not sinking in very good. Like here:
Quote:
This profile field needs to be the only custom profile field under the selected options category. Any other custom profile fields in the same category will be hidden as well.
I have more than one under edit profile.
Quote:
Go to your:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Modify User Option Templates -> modifyoptions

In this template you will find several $customfields variables, one for each category in your options (the same categories as the ones for your profile fields). You need to enclose the appropriate $customfields variable with this conditional:
I go here and I do not understand what category? Is it edit profile? And where or what is it called in here?

Thanks!
I don't know what you were doing but nowhere do I find any such instruction posted for this hack.
Reply With Quote
  #63  
Old 05-16-2005, 11:32 AM
LEAD_WEIGHT LEAD_WEIGHT is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 369
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlexanderT
I don't know what you were doing but nowhere do I find any such instruction posted for this hack.
May be he has the real PAID HACK or got lost & was at this link
Code:
https://vborg.vbsupport.ru/showthread.php?t=80464&highlight=Adsense
Reply With Quote
  #64  
Old 05-17-2005, 09:19 PM
designBox's Avatar
designBox designBox is offline
 
Join Date: Oct 2003
Location: Europa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a dumb question but:

How difficult will it be to modify this Hack to allow sharing between Admin, Thread Starter and Last Poster?

(And by the way, are we allowed to modify this code or will this be any kind of copyright infrigment?)

By the way, many thanks for this awesome hack, i haven't installed it yet, but, i am sure, as soon as i will have my answers, i'll give it a try.

Thumb up.
Reply With Quote
  #65  
Old 05-17-2005, 09:25 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you get it changed to split that way let me know please?
Though I want it so it splits between admin, thread starter, and a random person thats posted in the thread.
Reply With Quote
  #66  
Old 05-18-2005, 08:41 AM
designBox's Avatar
designBox designBox is offline
 
Join Date: Oct 2003
Location: Europa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure i will man :-)

I have another question concerning the actual hack.

Does the thread starter see their own ads?

EDITED: BTW, clicked on INSTALL
Reply With Quote
  #67  
Old 05-18-2005, 12:25 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

designbox as of now, I dont think nobody knows what ads are being displayed (if yours, or another specific member) you go to be careful with that because if you click on your own ads you could get banned from Google's adsense program...
Reply With Quote
  #68  
Old 05-18-2005, 02:11 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure it shows the first posters ad to himself?
Reply With Quote
  #69  
Old 05-18-2005, 05:07 PM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, the first poster or the board owner's ads are shown, depending on the percentage you entered in the control panel. It is rather easy to disable the display of ones own ads with an additional check in showthread.php (at least that's what I think now). If it is highly demanded, I could work on adding this feature.
Reply With Quote
  #70  
Old 05-19-2005, 01:58 AM
CallieJo's Avatar
CallieJo CallieJo is offline
 
Join Date: May 2004
Location: Snowville
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlexanderT
I don't know what you were doing but nowhere do I find any such instruction posted for this hack.
http://www.vbulletin.com/forum/showthread.php?t=101597

Was posted to me in this thread if you read through the posts here....I followed that but chose "options" instead of "edit Profile" in the instructions for the cat.

Basically, I took the advice from a couple peopes who replied to my post in this thread and pieced them together and figured it out. Then I posted to choose "options" instead of "edit profile" according to the tut posted to help direct me with my q.
Reply With Quote
  #71  
Old 05-19-2005, 07:01 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CallieJo2
[url]Basically, I took the advice from a couple peopes who replied to my post in this thread and pieced them together and figured it out. Then I posted to choose "options" instead of "edit profile" according to the tut posted to help direct me with my q.
I see so the question was more related to the modification posted over at vb.com. Were you able to figure out the problem?
Reply With Quote
  #72  
Old 05-19-2005, 07:25 AM
designBox's Avatar
designBox designBox is offline
 
Join Date: Oct 2003
Location: Europa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlexanderT
Yes, the first poster or the board owner's ads are shown, depending on the percentage you entered in the control panel. It is rather easy to disable the display of ones own ads with an additional check in showthread.php (at least that's what I think now). If it is highly demanded, I could work on adding this feature.
I don't know if it will be highly demanded but i guess this would be really better to avoid temptations of peoples clicking on their own ads.

I was also wondering, What will be the easiest to code:
- Revenue shared between Admin, Thread Starter and Last Poster ?
OR
- Revenue shared between Admin and All posters of a Thread?

Would really like to see these modifications or someone who can bring me a little light of how to do this....

Thanks again for this usefull hack
Reply With Quote
  #73  
Old 05-19-2005, 02:32 PM
vze2yqtm vze2yqtm is offline
 
Join Date: Mar 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by beano33
Before I installed this hack I had my ad code in the showthread template where they were displayed after the last post. I modified that code for google_ad_client = "$post[ad_client_id]";
google_ad_channel ="$post[ad_channel]";
but it wasn't inserting any client id so no one way getting paid.

So I removed the ad code from showthread and put it in the postbit template as suggested in the hack instructions. It works fine as far as functionality is concerned, but now the ads appear after the first post and we'd prefer them to show after the last post.

Can anyone tell me how to do one of the following:

1) make the hack work with the ad code in the showthread template, OR
2) get the ad code in the postbit legacy template to display after the last post instead of the first post.
Anyone know how to do this?
Reply With Quote
  #74  
Old 05-25-2005, 03:51 AM
MichaelJM13k MichaelJM13k is offline
 
Join Date: Feb 2005
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack!

For me the google ads show up under the first post on every page (like this: http://www.xbox360boards.com/showthread.php?p=26) how can i get it just to show up under the first post on the FIRST page?
Reply With Quote
  #75  
Old 05-25-2005, 03:10 PM
LEAD_WEIGHT LEAD_WEIGHT is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 369
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CallieJo2
If you would take the time to read through the posts in this thread, you would see it all pertains to THIS thread!

No I'm not lost! Atleast I got it working without a response here...

Next time, don't be so rude!

BTW - it's a she...

BTW - "it's" a she... Describing yourself as female is your problem but I was only trying to help. "L"
Reply With Quote
  #76  
Old 06-02-2005, 02:21 AM
topvar topvar is offline
 
Join Date: May 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alexander,
AMAZING job, I greatly enjoyed installing this and think it will prove to be a great addition to my forum.
Thanks for distributing it freely (I too was approached by the $175 guy, and saw a few commercial versions as well).
Spot on, and "Thanks"
Am I correct in assuming that I should include a note that tells all that participate "NEVER click an ad in a thread that you started" ?
Party on Garth
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 08:27 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.05263 seconds
  • Memory Usage 2,360KB
  • Queries Executed 30 (?)
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_code
  • (9)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
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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
  • 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