Quote:
Originally Posted by Antivirus
Abe, nice work here  . I'm looking to mod this so each post can only be thanked once. Is there already a conditional setup in your mod which checks for this or do I need to set one up? I imagine i would place this conditional within the function add_thanks() to exit if a post has already been thanked. Is there something placed within the $postinfo array already which I can use the conditional upon already or would I need to add that myself?
|
I would add it to a hook 'post_thanks_function_can_thank_this_post_start' in 'can_thank_this_post'.
Add:
PHP Code:
if ($postinfo['post_thanks_amount'] > 0)
{
return false;
}