Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



Google Adsense Revenue Sharing Module

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-2007, 10:23 AM
New Pligger
 
Join Date: Sep 2007
Posts: 13
Google Adsense Revenue Sharing Module

Just a quick question - is there any place that details how this works exactly? I want to be able to have user's ads on my site for anything they submit rather than my ads. Or, alternatively, I'd love to be able to say "display my ads 25% of the time, user ads 75% of the time."

Any help greatly appreciated.

/d/
Reply With Quote
Sponsor
  #2 (permalink)  
Old 10-15-2007, 01:04 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,157
if you site has few users, Open admin panel, user management - edit the user info to set his ansense percent to 75.

If you have large user base - open database and write an update query to update the google adsense percent for all users to 75 on the Pligg_users table.
Reply With Quote
  #3 (permalink)  
Old 10-15-2007, 01:14 PM
New Pligger
 
Join Date: Sep 2007
Posts: 13
I take it the way it works is that ads are randomly rotated some % of the time? And is there anyway to set the default so that it does 75% by default rather than having to write an update script?

Loving pligg!
Reply With Quote
  #4 (permalink)  
Old 10-16-2007, 05:50 PM
New Pligger
 
Join Date: Apr 2007
Posts: 1
Getting Error with Google adsense Module

Fatal error: TPL: [in ../modules/share_revenue/templates/show_ads.tpl line 3]: syntax error: adsense function does not exist (class.compiler.php, line 485) in c:vhosts\domainname.com\httpdocs\class.template.ph p on line 923

How to i fix this. I suspect it could be because i am on a windows machine
Reply With Quote
  #5 (permalink)  
Old 10-16-2007, 10:21 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,157
Did you copy the /modules/share_revenue/plugins/function.adsense.php to /plugins - I think that is being missed hence the problems.
Reply With Quote
  #6 (permalink)  
Old 10-17-2007, 09:17 PM
New Pligger
 
Join Date: Sep 2007
Posts: 13
Whenever I turn on this mod, all my sidebars disappear - is this expected behavior? Anyone else having this problem (I'm using the yget template)?
Reply With Quote
  #7 (permalink)  
Old 10-17-2007, 09:55 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,157
it is because there is some error in your template files for share_revenue or the function.adsense.php is not present in /plugins folder.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adsense Revenue Sharing Mod for 8.2 Dravis Modification Tutorials 39 03-02-2009 01:16 PM
regarding google adsense revenue sharing module andhrawatch General Help 2 03-24-2008 03:06 PM
Google adsense revenue sharing, question dadaas Modification Tutorials 0 10-03-2007 01:13 PM
Google Adsense Revenue Sharing v0.1 error for 9.6 xbizsky Modification Tutorials 7 09-15-2007 06:35 AM
Google Adsense Revenue Sharing module won`t work brgdvds General Help 1 01-03-2007 10:44 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development