Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-2007, 10:23 AM
New Pligger
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 10-15-2007, 01:04 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
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
Thanks: 0
Thanked 0 Times in 0 Posts
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
Thanks: 0
Thanked 0 Times in 0 Posts
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 is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
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
Thanks: 0
Thanked 0 Times in 0 Posts
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 is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
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
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding google adsense revenue sharing module andhrawatch General Help 2 03-24-2008 03:06 PM
Adsense Revenue Sharing Mod for 8.2 Dravis Modification Tutorials 38 03-13-2008 09:57 AM
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


Search Engine Friendly URLs by vBSEO 3.2.0