Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #12  
Old 05-06-2006, 02:43 PM
forumrating forumrating is offline
 
Join Date: Sep 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im gona try this
Reply With Quote
  #13  
Old 05-06-2006, 04:21 PM
vbreal vbreal is offline
 
Join Date: Dec 2005
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #15  
Old 05-08-2006, 02:42 PM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 05-08-2006, 03:25 PM
ryans ryans is offline
 
Join Date: Feb 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the readme you add this code:
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?
Reply With Quote
  #17  
Old 05-08-2006, 09:02 PM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 05-12-2006, 05:21 PM
Kurisu Kurisu is offline
 
Join Date: Aug 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the same hack as http://www.keyconcept.org/vbulletin-...aring-hack-mod ?
Reply With Quote
  #19  
Old 05-12-2006, 05:37 PM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not the same, but it's almost identical. oh...... and it's free
Reply With Quote
  #20  
Old 05-15-2006, 06:35 AM
webmastershome webmastershome is offline
 
Join Date: Apr 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks rob30UK,

i will add this in new version..
Reply With Quote
  #21  
Old 05-15-2006, 06:55 AM
rob30UK rob30UK is offline
 
Join Date: Oct 2005
Location: UK
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

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 06:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04607 seconds
  • Memory Usage 2,293KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (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
  • (3)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_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