Deleting points is very tricky as it has to calculate again the size of the message to know exactly how many points to delete. This will be at least 1 query. It also is assuming there is a hook before it 'deletes' a post from a thread, there probably is one available somewhere, but this has to be researched.
There is already a bonus for the thread starter in they get points anytime someone views a thread. If you add it to give points to the thread starter when someone replies to the thread to, that will mean there is 1 more query on every reply as well. If thats an acceptible option, I can add that sure.
I'd like to add some AJAX features in the future, maybe that could be done to edit user points live like the vb lets u edit thread titles by double clicking in the area.
To prevent spam would be harder to accomplish, you'd basically have to store a history of every time the user has posted/replied a thread to be accurate. A simple counter that resets daily with another cron job could suffice, but I know on my forums a single query to set all users in 1 query takes about 5 seconds alone. (I have 200,000+ users on my site.)
Always dont forget, vbPlaza has a lot of hooks, u could take over entirely how the lottery works with using such a hook.
-CMX
|