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)
How does one get the graphic "Thanks" button to match our style, instead of being the standard default vBulletin colors?
Thanks ...
Regards,
Badger
Edit: Tested....
There's some kind of problem with Horizontal and Vertical postbit templates....
This phrase:
Appears under the UserName information etc, in the Horizontal post bit template, even when the mod is turned OFF. Ironically, it doesn't appear at all in the Vertical postbit template, whether the mod is turned OFF or ON. Anyone else notice this and have a fix?
Check your templates. Make sure the template hooks are there.
Couldnt find any info on this, but the users of our forum who uses Opera cant get this feature to work. Simply nothing happens when they click the button. It works fine in IE, FF, Safari, but not in Opera.
Are there any known issues with this hack and Opera? Or maybe it is Ajax in Opera?
First time hearing about this. If AJAX was turned off for a users, the hack should still work, but just refresh. I dont know what the problem would be though.
It's been requested at my forum that we add a Post Fail button to ride along side of the [AJAX] Post Thank You Hack while keeping the Thanks hack. Does this inspire anyone?
I just pruned a bunch of messages and everyone is pissed because it removed their thanks for those messages. Is there any way to have the thanks remain after a message is pruned?
Will look into it. I may make it an admin option to turn on and off.
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;
}
I just have a question that I assume can only be answered here:
I had reputation disabled on my forum for a long time, with this hack active. I have just recently enabled reputation and I am wondering if it is at all possible to somehow convert currently "thanked" posts into reputation points?
My most thanked members are stuck with low reputation at this point you see.
Is this possible through any SQL queries or combination of recounters?
I'm sure it can be done but would need a php script to run the mysql so it can calculate correctly.