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 granted liking by ALL the members of your forum.
[FIXED] Bug with AJAX if you had the date showing.
Version 4.5 (6/19/06):
[FIXED] Bug with AJAX if you had hacks that added things to your output.
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' (admin view)
Showing post after 'thanks' with legacy posts (admin view)
Stats in members profile and link
Link in Search drop down menu
Hacks settings
This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Wonderful hack, really something I've been looking for.
I've got a few small problems though, because I'm trying to keep my forum a bit minimalistic (my taste ) I've been trying to put the list of users who thanked into a popup menu, similiar to the one you get if you click on a username.
To do this I've added a new button besides the "Reputation" one which needs to be clicked to see this menu.
The code I've used for this:
After "$post[iplogged]"
Code:
<!-- Start Modified Post Thank You Hack -->
$post_thanks
<!-- End Modified Post Thank You Hack -->
And in the template post_thanks_box I replaced the non-<script> content with
Code:
<!-- Start Modified Post Thank You Hack -->
<!-- post $post[postid] info menu -->
<div class="vbmenu_popup" id="infomenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="userinfo" id="post_thanks_box_$post[postid]">
$post_thanks_box
</td>
</tr>
</table>
</div>
<span id="infomenu_$post[postid]"><a href=""><img class="inlineimg" src="$stylevar[imgdir_button]/info.gif" alt="Post Info" border="0" /><script type="text/javascript"> vbmenu_register("infomenu_$post[postid]", true); </script></span>
<!-- End Modified Post Thank You Hack -->
In addition I've also removed the $spacer's out of the 'post_thanks_postbit_legacy' template.
It's working fairly well, I've got a few problems that I couldn't find a solution for though:
How can I 'extend' the hack some so I'll able to hide the info.gif image if there are no users who thanked for a post.
And how can I make sure the list will be updated when a user clicks the "Thanks" button? I'm afraid I destroyed the AJAX somewhere but can't figure out where it was.
Thanks a lot for your help, hopefully there are also other users interested in this.
Edit; reduced the template edits by one, still hoping for someone to help me fixing the bugs!
Hi Abe What code do we need to change to get the "The Following User Says Thank You..." message to appear on top of the 'Thank You table instead of on the side?
Suggestion:
Can you please make the AJAX functions into a .js file; make the AJAX functions take postid as parameter; and pass parameter from the links instead of making copies of the function for each of the post on screen? This will DRASTICALLY reduce the bandwidth consumption by this hack as they do not require to be duplicated each time a post is displayed on the page.
Hi Abe What code do we need to change to get the "The Following User Says Thank You..." message to appear on top of the 'Thank You table instead of on the side?
Copy the post_thanks_postbit_legacy templatge and use it to replace the whole post_thanks_postbit template.
Suggestion:
Can you please make the AJAX functions into a .js file; make the AJAX functions take postid as parameter; and pass parameter from the links instead of making copies of the function for each of the post on screen? This will DRASTICALLY reduce the bandwidth consumption by this hack as they do not require to be duplicated each time a post is displayed on the page.
I just started working with javascript and don't know how to use about 99.9% of it. I will try to make the javascript code come up only once. I can still leave it in a template but that only shows the tamplate once.