About this hack:
One of the biggest problems on forums as you may know is 'posts boosting'. There are users who LOVE to say 'thanks' when ever they can. How can it hurt? Their post count goes up, they have nothing to loose.
There are also users who really like to express their thanks to post but don't like posting a post that looks like they're post boosting.
Then comes the moderators who have to delete people's thanks yous so a thread can look readable with out the thanks yous thrown around.
Finally comes the posters of these useful posts. They have no idea how many people really likes their posts if only some people say 'thanks'.
What this hack does is fix ALL these problems - except those users who like post boosting. This places a button called 'thanks.' When a user clicks on it, it places his username in a box right under the post saying that so-and-so says 'thanks' for the post. Every-one who clicks is placed in one box.
By giving your users the extra feature, you forum will look allot nice and organized. It is a guaranteed liking by ALL the members of your forum.
New option: Remove User's Thanks Count When Deleting Post
New phrase: post_thanks_search_user_gave
FIX User reputation level now updates. (Thanks to liwo for this one.)
NEW Added option to view all posts a user has thanked.
FIX Fixed Special Action - Delete All of a Users Thanks
FIX Should have fixed some 'foreach()' errors.
Version 7.3 (03/15/08):
Updated file: functions_post_thanks.php
Updated template: post_thanks_memberinfo_block
Deleted template: post_thanks_memberinfo_css
New option: Choice to use Markup Usernames or not. (Thanks to Namaless)
New option: Ban User from Getting Thanks
New option: Max Thanks a User can Give Per Day
FIX Fixed repeating bug on vb 3.6.7 forums.
CHANGE Changed where the post thanks info shows on the Profile Page. Moved to same box as statistics. (This will require a template edit if you are running vb3.7 beta 2-4)
Version 7.4 (03/21/08):
FIX: Fixed Profile Stats for vb3.7.0 RC1 users.
Please post your comments or suggestions for this hack. I read ALL posts.
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released.
Pictures:
Showing the 'thanks' button and stats in Postbit
Showing post after 'thanks' (user view)
Showing post after 'thanks' with legacy posts (admin view)
I was wondering if there's a way to make the thankyou box only appear after say 2 or 3 separate people have thanked the post? I'm wanting to use the hack to highlight the outstanding posts on my forum, and a couple of people seem the be very thankful for all sorts of things. I'd like it so that if the thank you box doesn't show until multiple people have said thanks for it.
Would anyone have any idea on this? I've been looking over the .php and .xml files, but as I am not sure what to look for exactly, I am getting a bit stumped. Basically I don't want the thank you box to even show unless 3 or more people say thanks.
Would anyone have any idea on this? I've been looking over the .php and .xml files, but as I am not sure what to look for exactly, I am getting a bit stumped. Basically I don't want the thank you box to even show unless 3 or more people say thanks.
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.
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??
Very nice. I currently run version 6.3, and I was wondering what extras were added to the modification and whether an upgrade is worth it or not. Thanks.