Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Revenue Sharing 3.5.4 Details »»
Adsense Revenue Sharing 3.5.4
Version: 1.00, by webmastershome webmastershome is offline
Developer Last Online: Apr 2017 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-26-2006 Last Update: Never Installs: 28
 
No support by the author.

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

Show Your Support

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

Comments
  #62  
Old 10-03-2006, 07:54 AM
minzhong minzhong is offline
 
Join Date: Jul 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what if the thread starter does not have an adsense acct?
Reply With Quote
  #63  
Old 10-12-2006, 05:21 PM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rob30UK
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.
Reply With Quote
  #64  
Old 10-20-2006, 09:46 PM
Nuno Oliveira Nuno Oliveira is offline
 
Join Date: Jun 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #65  
Old 10-21-2006, 11:27 PM
sixty6's Avatar
sixty6 sixty6 is offline
 
Join Date: Aug 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Quote:
<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
Reply With Quote
  #66  
Old 10-22-2006, 12:51 AM
sixty6's Avatar
sixty6 sixty6 is offline
 
Join Date: Aug 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I don't think this mod works, it ALWAYS shows the default publisher ID...
Reply With Quote
  #67  
Old 11-22-2006, 07:37 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #68  
Old 11-22-2006, 08:10 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear Friend,

I have not yet tested with 3.6.

may be update it very soon.
Reply With Quote
  #69  
Old 11-22-2006, 08:28 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #70  
Old 11-22-2006, 08:40 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #71  
Old 11-23-2006, 06:04 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 07:00 PM.


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.06912 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
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
  • (2)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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