![]() |
Adsense Revenue Sharing Hack 1.1 (0 queries version)
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. |
This sounds like a really great idea, im just a little hesitant that thread starters may get a bit 'click happy' on the ads, google doesnt like that kind of thing.
|
Chris, you can enter a "Minimum Posts" count before ads are contributed to users. This way you can make sure only long-time board visitors participate in the system.
|
Wow, I missed this post before... looks like a great hack... howerver I'm still waiting to see an official answer from google in wheter this hack not breaking the TOS
|
Polo, did you miss my answer in the other thread? I asked Google and here is their response in full:
Quote:
|
oh I think i missed it, thank you for that post ;) glad that google accepts this... thank you very much for the hack...
|
Can you tell me how does it work. I see what it does but I would like to know how does it work....
Thanks. |
|
It does not display at my forum even with the edits i made, so whats up with that
http://www.theundergroundsource.com/forums/index.php? User Name : Password : I uninstalled it for now until I can figure it out! |
If you actually read what I said in my first post you would know that I don't have much time; that doesn't mean I am not willing to help when I can. Of course the hack does not display at your forumhome, http://www.theundergroundsource.com/forums/index.php?, because it is not supposed to. It displays ads in the thread view, e.g.
http://www.mobileread.com/forums/sho...?threadid=3968 Anyways.... if there is nothing but complaint, I have no trouble removing it again. |
Quote:
I found what was wrong it was cause I am in user group 6 Admin. How do u make everyone show up to see the ads. Thanks for the info Quote:
|
When you change the postbit templates, instead of:
<if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID']) AND (!$show['member'] OR $bbuserinfo[usergroupid] == 2)"> add this: <if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID'])"> when applying the code changes in 7. of the instruction. |
you can always use conditionals ;)
|
Quote:
Quote:
when applying the code changes in step 7. of the instruction.. Code:
<if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID']) AND (!$show['member'] OR $bbuserinfo[usergroupid] == 2)"> |
I was looking at the code & I notice that u can place your own type of ads and make them scroll or rotate. I going to test this out to see if I can do that and change some wording in Admin c/panel display in vb. :ermm:
|
Ahh thank you.... This in fact then is not a a revenue sharing hack what so ever then....
That is what I wanted to know. Thanks. Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
the second post I said "I typed a twice. Thanks... its ok" I assumed you saw what I was talking about. If you still have problems you can contact me via PM. I dont want this thread to go off topic. |
I installed this and modified it so that the revenue sharing only was available for mods/admins. Works great so far!
|
Quote:
|
Quote:
|
so sorry to be dull guys but if i install this
it will display ads through out threads etc and then every time a member clicks a ad i get some cash for it???? cheers |
Quote:
I figure it was by sharing by forums who have this hack. I thought it could of been like u get some of the other persons revenue if they post it in your forum, but I know that could not be that easy to get money from other ppl's ad. I knew u could only earn what is your own ads . That is what I was trying to figure out what they were saying. So what is the big diff. between yours & the more $$$ one. I know that it has other features but what else. I want to know just incase someone decides to add something else to it. reverse engineering :pirate: Quote:
|
Not to start drama but this isnt revenu sharing it rotates adsense #'s
To be revenu sharing it would mean you USE my # and we split the costs... almost like a adsense affliate. That would be hot. That is what I thought it was. |
Wow is it just me or is everyone missing the boat on this one?
Anyways Nice one AlexanderT. Been looking at coding this myself for some time but you did a much better job than I would have. |
Quote:
Quote:
|
Quote:
http://www.theundergroundsource.com/...splay.php?f=24 Odd #66.XXX.66.XXX :laugh: |
Quote:
See #2 in this thread |
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. Thanks! P.S. I changed it back to putting the ads after the last post so you can see where we'd like it. Here is the forum: http://hfboards.com/ |
Yeah what beano33 asked and is there a way to also have it pick a random member that has posted a reply?
Like: Admin 50% Thread starter: 25% Random member who has replied: 25% Or even: Admin 50% Thread starter: 25% Last member to reply: 25% |
hmm this makes adsense show on PMs too... does google allow that?
|
Quote:
|
Thats the only onnes I modified... I put the postbit part right in the bottom of the edit window, could that be it?
I edited the showthread.php as you said then opened postbit leg.. and dropped it right into the very bottom of it. Then when I got a PM it was right under the PM... I fixed it by adding a THIS_SCRIPT='SHOWTHREAD' to the postbit and it stopped showing... |
So noone else has had this happen?
|
Quote:
I uploaded version 1.1 of this hack where ads are explicitely shown only in showthread instances. Upgrade instruction is included: Quote:
|
So any suggestions on making it post below the posts in the showthread.php?
Though the placement after the first post is growing on me,,, lol Anyone edit this to share with ALL posters in a thread and not just the starter? One last question.. :) Can we make it also post right under the last post in the thread? Was just thinking I could put a conditional around the one after the first ost to show to only non membes and have the other show after the last post on the page to all with a conditional that would only add it if there was 3 posts after the first post... |
More thinking.. This would rock :)
Unregistered visitor Post #1 Ad Post #2 Post #3 Post #4 Post #5 Ad Registered with 5 posts Post #1 Post #2 Post #3 Post #4 Post #5 Ad Unregistered and Registered with say 3 posts Post #1 Ad Post #2 Post #3 |
Quote:
Code:
https://vborg.vbsupport.ru/showpost.php?p=648365&postcount=15 Code:
Originally Posted by AlexanderT |
All times are GMT. The time now is 11:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|