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 |
#47
|
||||
|
||||
do the members not run the same risk then and would it not be putting my account at risk as well.
|
#48
|
||||
|
||||
Quote:
as I said, you have a good point... and if you think about it... let's say you have 150 members who have joined the system.. the probabilities of clicking on your own adsense become less and less as more members join... |
#49
|
||||
|
||||
thats a shame as this is one of the few mods im interested in.
maybe if there is way to set it so that if the ads are your own they automatically change colour to warn you or if thats against TOS then maybe the persons avatar or name appears near it. hmmm any ideas? |
#50
|
||||
|
||||
sorry for the double post
does this just split the share of advertising between the thread starter and the admin, or does it include people posting in the thread as well? |
#51
|
||||
|
||||
Quote:
Quote:
|
#52
|
||||
|
||||
Quote:
|
#53
|
||||
|
||||
Couldnt we do something like...
If $post[ad_client_id] = users fieldX> DIFFERENT AD HERE (NON-Adsense) else Show the adsense ads </if> I would test but I dont know how to get the fieldX of the user viewing... |
#54
|
||||
|
||||
well basically to sum up what i would like to see added:
adsense rotation being split between admin and thread starter only. that way the thread starter would know that the ad is either his account or admin account. that would instantly remove any problems. yb the way when i tried to install it i followed the instructions to the dot but for some reason after it had been installed, when i tried to view a post i just got a warning saying something like "unexpected string /forums/showthread.php on line 31" which is where it says 'adsensesettings' any idea what i have done wrong? |
#55
|
||||
|
||||
Quote:
Quote:
Code:
Find: 'hidprofilecache' REPLACE IT with: 'hidprofilecache', 'adsensesettings' |
#56
|
||||
|
||||
Quote:
|
#57
|
||||
|
||||
ok i get this error now
"parse error: unexpected T_ELSE" meaning the else in this code Code:
{ $post['ad_client_id'] = $post['field11']; if (!empty($post['field12'])) { $post['ad_channel'] = $post['field12']; } } else { $post['ad_client_id'] = $adsensesettings['clientid']; if (!empty($adsensesettings['channel'])) { $post['ad_channel'] = $adsensesettings['channelid']; |
#58
|
||||
|
||||
biagrin that excerpt isn't really helpful. Did you include the entire snippet as was described in step 6? Also make sure you add it just below $FIRSTPOSTID = $post['postid']; (as was also described in 6).
|
#59
|
||||
|
||||
well for some reason its working now even though i done the same thing as last time.
thanks for the help mate i really appreciate it. im new to all this. one last thing (i hope ) how do i set it so that EVERY user group sees the ads but will NEVER see their own ads. for example: bob makes a thread. his account is picked randomly. he doesnt see the ad but i do. next time bob view the thread, my account is shown and he sees it but i dont. |
#60
|
|||
|
|||
Anyone get this to work in the showthread template so the ad shows after the last post instead of the first as I asked in this post:
https://vborg.vbsupport.ru/showpost....9&postcount=32 |
#61
|
||||
|
||||
Quote:
Quote:
Quote:
Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|