View Full Version : Adsense Revenue Sharing 3.5.4
webmastershome
04-26-2006, 10:00 PM
Hack Description:
This hack will allow you to offer Google Adsense revenue sharing to your vBulletin board users. Basic idea generated by AlexanderT, who developed the hack for previous version.
Revenue is split between board administrator and thread starters.
User needs to enter their Adsense Publisher ID and Channel ID (optional) in the edit profile.
The percentage of probability is customizable by the administrator
Number of min. post in order to show the ads is customizable by administrator.
Instruction:
1. upload a php file in admincp/ adsense_admin.php
2. Add 2 new user profile fields, and mark down the field name
3. update the forum template
4. Edit and Upload showthread.php
5. Upload the XML file in include/XML
Read full details in readme.txt file
webmastershome
04-27-2006, 10:11 AM
may be update for new
Snake
04-27-2006, 12:02 PM
Whoa some nice feature to have on my forums. Thanks! :)
trancetopia
04-27-2006, 03:33 PM
This sounds a very good way to encourage members to create new threads. Is there any chance this can be done without the file edits?
sensimilla
04-27-2006, 05:44 PM
was this based on the same hack by cinq www.vbarticles.com ?
tia
username12
04-28-2006, 03:01 AM
I'd like to see a way for people who reply (perhaps a certain number of times or the last reply) get a percentage chance as well.
It's doable without file edits. Exactly how is another question.
webmastershome
04-28-2006, 05:19 AM
hi sensimilla,
no it's not based on vbarticles.com, it's based on last version of 3.0.7
webmastershome
04-28-2006, 05:21 AM
ofcourse, i will try to add some new feature, but i am not too much expert with working VB, i will try to add more here..
Hemanth
04-28-2006, 10:29 AM
Hi dude,
Great work & congrats as it's finally released. :)
Anyway i've done it in my forums last week sucessfully with your help. Thank you..
IS it now work for header template?
webmastershome
04-28-2006, 12:48 PM
Still it's working after first post.
forumrating
05-06-2006, 02:43 PM
im gona try this
vbreal
05-06-2006, 04:21 PM
you have to change the name of the file that the update button refers to. it refers to admin_adsense.php but it the file is named adsese_admin.php
i just renamed the file and the reference to it in the xml file
How does this thing work. how do i know its working for my members. and what exactly are channels?
webmastershome
05-08-2006, 08:17 AM
Thanks for notice the error,
Please read the readme.txt file and do the needfull.
channels are used by the google adsense, if you want to trace the imp. and click, you can track it with channels.
Regards
Jitender
ryans
05-08-2006, 02:42 PM
The readme file refers to a few files that are not in the archive.
7. upload clicksor_share.php to /admincp
8. upload cpnav to /includes/xml
also the form in the ACP refers to admin_adsense.php the actual file is adsense_admin.php just rename the file.
ryans
05-08-2006, 03:25 PM
in the readme you add this code:
<if condition="$post[postcount] == 1">
<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrfirstpostid']) AND (!$show[member] OR $bbuserinfo[usergroupid] == 2)">
<if condition="$show['spacer']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis style="font-weight:normal">
Revenue Sharing Ads (
<a href="./showthread.php?p=POSTID">?</a>):</td>
</tr>
<tr>
<td class="alt1" style="padding:0px">
<div class="smallfont" align="center">
<script type="text/javascript"><!--
google_ad_client = "$post[ad_client_id]";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="$post[ad_channel]";
google_color_border = "F6F6F6";
google_color_bg = "F6F6F6";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
</if></if>
Would this replace one of my existing 728x90 ads? I already had 3 google ads on my pages and 3 is the max per page. Would adding this one be the 4th?
rob30UK
05-08-2006, 09:02 PM
This hack really should be a plugin to negate the need for file edits.
Attached is a plug-in for anyone who does not wish to edit their files.
In the plug-in code I have also added a check to make sure adsense adverts are never served to members with their own publisher-id (to prevent them clicking their own ads and violating google's t&c)
You must also carry out the instructions as indicated in the hack download, but just import this plugin (NOT product) in place of the bit invloving hacking apart showthread.php
Make sure you EDIT the plug-in to change the profile field numbers to the ones you are using.
webmastershome: Please feel free to incorporate this into your hack/zip
Kurisu
05-12-2006, 05:21 PM
Is this the same hack as http://www.keyconcept.org/vbulletin-adsense-revenue-sharing-hack-mod ?
rob30UK
05-12-2006, 05:37 PM
Not the same, but it's almost identical. oh...... and it's free
webmastershome
05-15-2006, 06:35 AM
Thanks rob30UK,
i will add this in new version..
rob30UK
05-15-2006, 06:55 AM
Secondly, you may wish to add the code to showpost....
Search engines can and do index showpost pages (if you allow them to).... this way there is also the incentive to reply to posts as well as start threads.
In addition, it would be great to have them added to the archive 'thread view' pages because a heck of a lot of traffic comes in via the archives.
You may also wish to let the client ID be taken from second post, third post, etc, etc until a clientID is found (not everyone fills it in) and then use that ID along with the boards own ID in a 50/50 formula.
Just a suggestion because right now this mod is very basic, but it could be GREAT!
webmastershome
05-15-2006, 10:55 AM
yes... we can share the revenue with admin/thread own/ last post with given share value, you can add your idea here to do this.
rob30UK
05-16-2006, 07:48 AM
erm.... I cant code this. I dont know PHP.
MajorFm.com
06-04-2006, 04:16 PM
Someone told me there is a licenced version and a non-licenced version... apparently the non-licenced version breaks googles terms... this true? and is this hack ok with google?
MajorFm.com
06-04-2006, 05:54 PM
...well i installed and i get the follow error when updating the Share Settings in ACP
Fatal error: Call to a member function on a non-object in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/admincp/admin_adsense.php on line 49
i also noticed this in the postbit code:
$bbuserinfo[usergroupid] == 2
Does that mean that if a user has a diffrent primary group, this wont work for them? if so how do i add more then one group...
Also how do i make the adverts show for all users and not just guests.
DinarMet
06-05-2006, 04:30 AM
Can you also split revenue for Last Post with this modification?
DM
DinarMet
06-05-2006, 04:59 AM
Also, can you set the program criteria to specific user groups instead of minumum posts.
DM
webmastershome
06-07-2006, 10:25 AM
Dear Sir,
you can change the user group insted of minimum post simply change the code as below
Find
$post['posts'] >= $adsensesettings['minposts']
Change with
$bbuserinfo[usergroupid] == 2
2 is user group id, change as you want .
Regards
Webmastershome
Nuno Oliveira
06-14-2006, 12:01 AM
Hi!
To show the ads to all groups, I just removed
AND (!$show[member] OR $bbuserinfo[usergroupid] == 2)
DinarMet
06-14-2006, 12:21 AM
Does this hack allow you to share revenue with the person who Last Replied to a thread?
DM
webmastershome
06-14-2006, 03:43 AM
No right now this hack not allow this. may be in next version.
Nuno Oliveira
06-14-2006, 10:06 AM
Until now my experience with the script is good :) Thanks!
What part of code do I have to alter to check this?
"check to make sure adsense adverts are never served to members with their own publisher-id"
Thanks again!
I'm having trouble getting it to work. I can't seem to figure out how to properly integrate everything between the plugin, old readme file, and the adsense_admin naming problem.
Sounds like a few people have figured it out, but I'm stumped. Any way to update the files and instructions to make it easier for dummies like me?:confused:
Nuno Oliveira
06-15-2006, 11:03 AM
Hello!
I just had to rename the file, and I installed the old plugin, because with Rob's version, I didn't knew what modifications to make, so that everything works correctly.
But I want that useful modification that Rob made, to avoid serving ads to members, with their own publisher-id.
When will the new version be available
murph5
06-30-2006, 10:16 PM
Can anyone tell me why my ad block would not be showing? Followed instructions, but used the plugin. Set up the adsense sharing, and added the template code to the postbit of my template. But it never shows?
webmastershome
07-01-2006, 04:51 AM
Dear Sir,
May be VB template using the postbit legacy, please update it also.
Regards
webmastershome
murph5
07-03-2006, 09:14 AM
Ok, have it working for guests only - is that normal? I can see ads that should be showing under another user's id...
Also, how would i put an extra banner at the very beginning of the thread?
JeffreyC
07-12-2006, 12:17 AM
I maybe dumb, but where are these ads being displayed? I am getting no errors or anything, just no ads. :?
thenetbox
07-13-2006, 02:25 PM
Hello :)
Great idea. Does this work with 3.6 rc 1?
Would developer of this hack please answer this question would there be a new version and will it worke with 3.6
thenetbox
07-17-2006, 06:29 PM
could this work with the vb geek article system?
could this work with the vb geek article system?
Yes it is working.
DefenceTalk
07-19-2006, 02:43 PM
Could this work with specific group and just a general revenue sharing rather than based on thread starter, etc.?
JeffreyC
07-19-2006, 05:50 PM
Probably, I am guessing you would need it do the basics first...which I cant get it to do. :(
If anyone that has gotten it working can get it to work...lemme know.
RWDF1
07-25-2006, 10:54 PM
in my admin area, when I go to save the adsense settings, I get a 404 error, any ideas what I am missing.
RWDF1
07-31-2006, 12:30 PM
anyone got any suggestions.
iatbm
08-09-2006, 04:23 PM
somebody got this working with 3.6 ?
iatbm
08-10-2006, 01:02 PM
Ok I got it to work with 3.6.0 and that plugin someone attached ... It is working great ! I just want to know if anyone can help me get this to appear after last post too ?
Thanks
oninuva
08-15-2006, 11:03 AM
I think the files are wrong?
oninuva
08-15-2006, 11:04 AM
In the read me it says I need
clicksor_share.php file but there is none in zip...!
Did anyone get this to work..
iatbm
08-15-2006, 11:57 AM
it is not called clicksor .. it is adsense ;) ... just ignore that clicksor
oninuva
08-15-2006, 01:44 PM
oo oK :) Thanks...
Edit: when I edit the settings for this hack it says "Page Cannot Be found" ????
iatbm
08-15-2006, 05:10 PM
in adsesne_admin.php you must change everything from admin_adsense to adsense_admin I think ... check out the file you should see what is wrong .... and remember to use bob's plugin and not change showthread file .... everything else is the same as in readme.txt (except editing showthread !!! )
engedi05
08-24-2006, 07:06 PM
"Add the following following new user profile field in AdminCP:"
How do i add it? i dont understand the sentence.
engedi05
08-24-2006, 08:19 PM
"Add the following following new user profile field in AdminCP:"
How do i add it? i dont understand the sentence.
Please.. anybody can help me for that question?
iatbm
08-25-2006, 07:48 PM
In your admincp you have to go to User Profile Fields --> Add New User Profile Field !
engedi05
08-27-2006, 03:28 PM
In your admincp you have to go to User Profile Fields --> Add New User Profile Field !
Thanks for the tips..
I have done everything now... if i want to put my Adsense Revenue Sharing under the Navbar.. what should i do? Sorry.. i am a newbie..:)
iatbm
08-27-2006, 04:06 PM
You cannot add it under navbar. This is only working in postbit template!
dougeetx
09-21-2006, 05:48 PM
Can someone repost this with correct instructions for 3.6.1 , please?
nimonogi
09-22-2006, 07:51 AM
Follow the instructions and make the changes rob30UK mentioned. This hack work great on 3.6.1
minzhong
10-03-2006, 07:54 AM
what if the thread starter does not have an adsense acct?
imranbaig
10-12-2006, 05:21 PM
This hack really should be a plugin to negate the need for file edits.
Attached is a plug-in for anyone who does not wish to edit their files.
In the plug-in code I have also added a check to make sure adsense adverts are never served to members with their own publisher-id (to prevent them clicking their own ads and violating google's t&c)
You must also carry out the instructions as indicated in the hack download, but just import this plugin (NOT product) in place of the bit invloving hacking apart showthread.php
Make sure you EDIT the plug-in to change the profile field numbers to the ones you are using.
webmastershome: Please feel free to incorporate this into your hack/zip
Hey Man thanks your plugin helped me not to edit any Files.
Yes Guys it worked Like a Charm in VB 3.62.
Just be carefull and follow instructions.
Nuno Oliveira
10-20-2006, 09:46 PM
I had this working since I install it, but I didn't noticed that when I upgraded the forum, the script stopped passing my ID's, so for 1 month I got no $.
Now I installed the plugin version, from rob30UK, and it's working.
sixty6
10-21-2006, 11:27 PM
ok I installed this mod, it is decent, but it has a ton of silly errors. The attachment has the corrected adsense_admin.php file for you.
Furthermore, if you place the code given in the readme file, your advertisement will not be shown to registered members. If you would like it to be shown to your members as well, place this code:
<if condition="$post[postcount] == 1">
<if condition="$show['spacer']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis style="font-weight:normal">
Revenue Sharing Ads (
<a href="./showthread.php?p=POSTID">?</a>):</td>
</tr>
<tr>
<td class="alt1" style="padding:0px">
<div class="smallfont" align="center">
<script type="text/javascript"><!--
google_ad_client = "$post[ad_client_id]";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="$post[ad_channel]";
google_color_border = "F6F6F6";
google_color_bg = "F6F6F6";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
</if>
I have installed this mod and you can see it in effect on my forums:
http://forums.arcadewebmasters.com/
P.S.
I've also uploaded showthread.php which is running on vB 3.6.0
Your welcome :)
sixty6
10-22-2006, 12:51 AM
Ok I don't think this mod works, it ALWAYS shows the default publisher ID...
soletrader
11-22-2006, 07:37 AM
Desperate Help! I installed it fine with the plugin. However, when I go to admincp and enable the hack by pressing update, I receive a page not found. Somehow the admincp is not working correctly. Can anyone help me out? I am running 3.6.
Thank you
webmastershome
11-22-2006, 08:10 AM
Dear Friend,
I have not yet tested with 3.6.
may be update it very soon.
soletrader
11-22-2006, 08:28 AM
Ok it seems to be working with the new adsense_admin.php attachement. I want to ask you a question.
The thread starter is the only one who gets credit for this? Do members who post also have the ability for their ads to show? Thanks
soletrader
11-22-2006, 08:40 AM
Hello,
I would really love to get this hack working on my site. Everything seems to be fine except the fact that the only adsense that appears seems to be the default code (mine). Can anyone advise me on any tweeks on what I should do so the ads rotate?
Thank you
webmastershome
11-23-2006, 06:04 AM
Hi there,
I have not tested this code in 3.6.
You can check this error on 3.6, simply check the user adsense code is getting from database or not
if user (who start the post has not filled the adsense code) then code use the default
regards
jitender
soletrader
11-23-2006, 12:37 PM
Hi webmasterhome,
I tested it out on 3.6 with a thread starter who filled the adsense code. However, his adsense ID will never show and it will always be mine instead. You mentioned in the pm to check the php file? What did you mean by this?
Thank you
mystickcal
11-29-2006, 02:34 AM
I'm also having a problem where it is only showing publishers id. I have used botht he plugin .xml thing someone made and also tried using the files that someone left for the two different areas and still no success. Any help?
RealRnB
11-29-2006, 04:50 AM
anyone got this to work on3.6.4?
vietfancy
12-07-2006, 03:39 AM
anyone got this to work on3.6.4?
I wanna know the same.
imported_infitech
12-10-2006, 01:46 PM
is there a version for 3.6.4?
Qwest
12-14-2006, 02:19 PM
Looking for a 3.6.x version myself please :)
imported_infitech
12-14-2006, 02:27 PM
re-bump^^
Qwest
12-18-2006, 03:44 AM
And again?
AsianKid
12-26-2006, 04:48 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=134784" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=134784</a>
I released a version for 3.6
Good luck with your revenuing sharing!
KingPin6
12-28-2006, 11:55 AM
no offense to asiankid but I dont want a encrypted addon for my VB, for all those that were asking yes this works fine on 3.6.4 with the plugin from here (https://vborg.vbsupport.ru/showpost.php?p=970094&postcount=16) and the adsense_admin.php on this post. (https://vborg.vbsupport.ru/showpost.php?p=1101719&postcount=64), dont use the showthread.php from the original author or the second link I posted, the plugin does the job :)
tsptom
01-31-2007, 02:56 AM
Has anyone tried to combine this hack (rev sharing) with the hacks that add adsense within posts (1st post + x posts, or 1st post on every page)? Two problems I'm finding:
The 1st post on 1st page of thread seems to work fine using thread starter's ID but:
1) The "+ x posts" sets the client ID to null
2) The "1st post on each page (except the 1st post on first page of thread) only shows the primary site owner ID, never the thread starter's.
Any ideas? Thanks!
jamsiejay
02-10-2007, 01:05 PM
Can this mode be made to work in forumhome template
nimonogi
09-30-2007, 09:20 AM
How can i share revenue with last poster as well? Ex:
A new thread starter, there is a 40% chance your Adense Code will be displayed for each page view. The last replier in a particular thread will have a 10% chance that their Adense Code will be displayed for each page view and the administrators have the final 50% chance.
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.