I was incorrect here are the Karma rules:
Quote:
From Overgrow.com
-Members can approve or disapprove of a post by clicking on the Karma icon
-You can give 10 Karma awards every 24 hours
-You can only give one Karma award per post
-Users with more karma and a longer time registered will give more karma points with each click than a new member with no karma. An old well respected user might give 7 points per click while a new user will only give 1.
|
Here is a rundown on those rules specifically:
Quote:
-You can give 10 Karma awards every 24 hours
|
I suppose it makes a table that contains a history of your last 10 Karma awards and the date you gave it out in Unix time, you just need to minus 86400 from the current Unix time and then determine if the time they gave the award is >= to that... so
AwardTime >= (CurrentTime - 86400)
Then you have to decay the history by one and add the current entry, maybe every time a vote is made the first mySQL command done is to delete any history entries that match the above statement. Then do a check for the number of history entries the user has, &c.
Quote:
-You can only give one Karma award per post
|
That requires another table entry, or another column within the karma table. Probably the more efficient route is to add a new table, lets call it
karmavote [just like pollvote] that contains the post#, and the userid.
And I think you said earlier that you have the last feature. I think you have the above but I'm not totally sure because I haven't seen the code yet and I haven't been able to test it throughly enough.