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 am getting a few database error messages when I remove thanks. I doesn't happen every time I remove thanks just sometimes. I'm not sure why that is. Here is the message
Code:
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE vb3_user
SET post_thanks_user_amount = post_thanks_user_amount - 1
WHERE userid IN ();
MySQL Error : You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ')' at line 3
Error Number : 1064
I am getting a few database error messages when I remove thanks. I doesn't happen every time I remove thanks just sometimes. I'm not sure why that is. Here is the message
Code:
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE vb3_user
SET post_thanks_user_amount = post_thanks_user_amount - 1
WHERE userid IN ();
MySQL Error : You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ')' at line 3
Error Number : 1064
Hi Abe - excellent hack! I have a few questions I hope you can help with...
Quote:
Originally Posted by brandnew
This hack is messy. It includes a long string of javascript after each and every post in the thread. Why it has to be that? You can just put javascript in an external .js file, attach postid to the "Thank You" button in each post, and for every click, the postid is passed to the function.
Please clean this up. The vbulletin inline mod offers a good example to follow.
Quote:
Originally Posted by Abe1
Last time I checked, I had to do it this way because AJAX uses a second function that i am unable to send a variable to. I will look into it again since my knowledge for javascript has been increasing the past few weeks.
Did you manage to work this out Abe?
Also, if we don't need to show:
Quote:
Thanks: 0
Thanked 0 Times in 0 Posts
Can we minus the query you mentioned for showthread? Just wondering as this might help people with busy forums?
adding a Thanks column into the Members List page would be awesome! i'm trying to get my head around it right now (got it working actually, but the searching is attached to post count for some reason and i can't separate them), but with the recent vB upgrade and you mentioning a newer version coming out, i'll hold off for a bit in hopes that maybe it'll be included with the next version.