What Is Karma And How Does It Work

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 06-05-2008, 11:48 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by DoesWhat View Post
I'm not sure I fully understand the way in which the Pligg Karma system works. Why does it have to be updated in a batch process, why not dynamically? When a user submits they get 'x' karma points, when they comment they get 'x' karma points... etc. Would that not be simpler?
Because it's not static. If users X Submits Y and users Q,Z, and W down vote it, the score needs to be updated.. Welcome to web 2.0
Reply With Quote
  #12 (permalink)  
Old 06-06-2008, 02:23 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
The reason that it was taken off the default process is to reduce the number of queries that pligg takes for each action - and to enable users to make use only if needed via cron.
Reply With Quote
  #13 (permalink)  
Old 06-06-2008, 07:42 AM
Bargainhunter's Avatar
Casual Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: May 2008
Posts: 36
Can someone detail how to set karma up as a cron job? Ie, step by step instructions please?
Reply With Quote
  #14 (permalink)  
Old 06-06-2008, 10:46 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by Bargainhunter View Post
Can someone detail how to set karma up as a cron job? Ie, step by step instructions please?

Some hosts are different but here is an example that would run it every 4 hours 15 minutes.

*/15 */4 * * * /home/www/MYSITE.com/karma.php
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development