Quote:
Originally Posted by Antivirus
Just create a simple plugin for hook location: post_thanks_function_post_thanks_off_end
Untested, but something like this:
PHP Code:
$sql = $vbulletin->db->query_first("SELECT COUNT(post_thanks_votenum) AS qty FROM " . TABLE_PREFIX . "post AS post WHERE postid = " . $postinfo['postid'] . " AND qty < 3");
if ($sql['qty']) { return true; }
Within the query, change the 3 to minimum quantity of times a post should be thanked before displaying, and I think it'll give you what you need.
|
thanks so much for this!!! it has been so helpful
have any idea how to make a hit counter for the thread so that everytime someone clicks the thanks button the counter increases??