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)
Added securty token check for all thanks added. This will prevent a user from giving out a link or somehow making an image that will get him a lot of thanks.
Should have fixed some 'foreach()' errors.
Fixed Delete All of a Users Thanks bug
vBulletin 3.7.x compatible only
Version 7.6 (06/02/08):
FIX: Fixed Security Check for vb 3.7.1
Updated files: functions_post_thanks.php
Version 7.7 (07/28/08):
FIX: Fixed problem with giving thanks using Blazer (palmOS browser).
$thanks = $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX. "post_thanks AS ps INNER JOIN " .TABLE_PREFIX. "user AS u ON (u.userid = ps.userid) WHERE ps.postid IN (" . $post_ids . ") ORDER BY ps.username ASC");
For query.
For get musername use this method:
PHP Code:
//$cache[$thank['postid']][$thank['userid']]['username'] = $thank['username'];
// Get vBulletin User Group ID
$UserGroupID = ( $thank['displaygroupid'] == 0 ) ? 'usergroupid' : 'displaygroupid';
$cache[$thank['postid']][$thank['userid']]['username'] = fetch_musername($thank, $UserGroupID);
Without this have 21 queries and after my edit give same 21 queries.
Please check your performance..
Thanks
Done. Will be added in the next version.
One question though. Why did you do the fieldname check? The function does it for you.
Anyone who has GARS (and getting the PHP error) and can let me view their ACP, please PM me. I can't seem to get the error and I dont want to play around with that hack too much.
One question though. Why did you do the fieldname check? The function does it for you.
When you use Secondary group, vbulletin get option to choice group to view.
Test this: go into user admin, and use one primary group and secondary group and save.
Now go to user admin and after primary group you found the vb menu where you choice how group you want to view.
This is great! I highly prefer this idea to the stars rating and this looks like it's darn close to what I've been looking for.
Is there an easy way (I'm still pretty new to this) for just the number of thanks to go up but not show: the amount of thanks given or the member names of those who have said thank you? Also does the amount of "thanks" for a thread show up in the forum titles like the rating stars do? If it's not possible at this time perhaps in the future?
One last question.. will this slow the board down at all? We have quite a few poky dial up user (myself included) who get really frustrated if something makes the site hang or load slow.
Anyone who has GARS (and getting the PHP error) and can let me view their ACP, please PM me. I can't seem to get the error and I dont want to play around with that hack too much.
if you want I give you GARS for testing the problem (I'm interest to solution this problem).
For query read only "musername, usergroupid, displaygroupid" for use less memory!