The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Adsense Revenue Sharing Hack 1.1 (0 queries version) Details »» | |||||||||||||||||||||||||||
Adsense Revenue Sharing Hack 1.1 (0 queries version)
Developer Last Online: Jul 2021
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
|
Comments |
#32
|
|||
|
|||
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/ |
#33
|
||||
|
||||
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% |
#34
|
||||
|
||||
hmm this makes adsense show on PMs too... does google allow that?
|
#35
|
||||
|
||||
Quote:
|
#36
|
||||
|
||||
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... |
#37
|
||||
|
||||
So noone else has had this happen?
|
#38
|
||||
|
||||
Quote:
I uploaded version 1.1 of this hack where ads are explicitely shown only in showthread instances. Upgrade instruction is included: Quote:
|
#39
|
||||
|
||||
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... |
#40
|
||||
|
||||
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 |
#41
|
|||
|
|||
Quote:
Code:
https://vborg.vbsupport.ru/showpost.php?p=648365&postcount=15 Code:
Originally Posted by AlexanderT When you change the postbit templates, Find this: <if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID']) AND (!$show['member'] OR $bbuserinfo[usergroupid] == 2)"> Replace with this: <if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID'])"> when applying the code changes in 7. of the instruction. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|