Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Can't repeat the same karma action in 0 hours..

Aloittaja Tristan Perry, helmikuu 27, 2005, 11:55:36 AP

« edellinen - seuraava »

Tristan Perry

Hello,
A few of my members have reported to me that they keep getting the error message 'cant repeat the same action within 0 hours'. I have karma wait time set to 0, I don't mind if the same member gets applauded/smited if they have been before and I don't mind if a mod applauds more than once an hour- how can I stop this message from coming up?
Thanks,
Tau Online

Dem0n

Set it to one, and have them wait an hr. Theres no reason you need to applaud/smite the same person more than once in a hr.

Tristan Perry

Lainaus käyttäjältä: Dem0n - helmikuu 27, 2005, 01:49:33 IP
Set it to one, and have them wait an hr. Theres no reason you need to applaud/smite the same person more than once in a hr.
On my forums there is sometimes reason to. Also I don't think that this is the problem- it seems that if member x applauded member y anytime, member x can smite member y, although no longer applaud member y. Could this be happening because I have a karma log? It's fairly big (It has 150 records)

Dem0n

So your saying..

Member X can only applaud a person once and hr, but he/she can smite somebody anytime?

Tristan Perry

#4
Lainaus käyttäjältä: Dem0n - helmikuu 27, 2005, 03:28:52 IP
So your saying..

Member X can only applaud a person once and hr, but he/she can smite somebody anytime?
No. I'm saying that member x cannot repeat the same action twice. Or at least I think that's what's happening here; however the error message is a bit confusing.

[Unknown]

Have you removed the deletion of entries from the karma log?  I don't know how many times I have to say that it is NOT MEANT to be a perpetual log... and this is the exact problem it would cause if you stopped it from emptying out the table.

! Try to properly handle the case where karmaWaitTime is set to 0. (Karma.php)

-[Unknown]

Tristan Perry

Lainaus käyttäjältä: [Unknown] - helmikuu 27, 2005, 08:38:05 IP
Have you removed the deletion of entries from the karma log?  I don't know how many times I have to say that it is NOT MEANT to be a perpetual log... and this is the exact problem it would cause if you stopped it from emptying out the table.

! Try to properly handle the case where karmaWaitTime is set to 0. (Karma.php)

-[Unknown]
Yep, that's what I did. I had a karma log running off of the log_karma table, and so stopped records from being deleted from it. I've now created a new table and allowed records to be deleted from log_karma.

What exactly does log_karma do? I'm curious as to how it can only handle one record. Also what has the bug fix fixed? I've never really understood the karmaWaitTime. (Sorry for all the questions!)

[Unknown]

The karma wait time makes it so you can't do the same thing twice within a certain period.  For example, with it set to one hour, after smiting a person you could do the following:

1. Smite or applaud any other member.
2. Applaud that member, reversing your previous smite and applauding them (from -1 to +1.)
3. Wait an hour and smite them again.

This is to prevent abuse.  With the limit turned off, I could sit and hit smite thirty times on someone, resulting in a -30 change to their karma.  I guess some might say, "well if they are going to sit there and do that, the other person must deserve it" but personally I see it simply as abuse.

The log keeps track of RECENT actions, such as to keep the above in line.  The data is not meant to be kept for any sort of longer period, and the deletion considerably increases the efficiency of the tracking.

-[Unknown]

Advertisement: