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)
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a> </if>
$post[iplogged]<if condition="is_browser('ie')"><div style="padding: 2px 0px 0px 0px;"></div></if></div><div class="smallfont">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title] - </strong></if>
<!-- status icon and date -->
</if>
<!-- status icon and date -->
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&p=$post[postid]" rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a> </if>
$post[iplogged]<if condition="is_browser('ie')"><div style="padding: 2px 0px 0px 0px;"></div></if></div><div class="smallfont">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title] - </strong></if>
<!-- status icon and date -->
</if>
<!-- status icon and date -->
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
well i finally got it installed.
but it seems like whenever I thank somebody, it looks like they thank me instead. everytime I thank someone, my thank count goes up and it says I thanked 0 times in 0 post. why?
but it seems like whenever I thank somebody, it looks like they thank me instead. everytime I thank someone, my thank count goes up and it says I thanked 0 times in 0 post. why?
You have the idea the wrong way around. The upper (shorter) one indicates the number of times you have GIVEN thanks to other people. While the longer one is the number of times YOU have been thanked.
tekguru:
post 1292 has $template_hook[postbit_userinfo_left] twice. I would delete the second left hook.
post 1293 has $template_hook[postbit_userinfo_right] twice. You should (must) delete the first right hook. My guess is you are using this second template, as a result the thanks info box is being showed twice. Just delete the first right hook and it should be fixed ^^
Originally Posted by sim20
Hi, i have installed the hack to the letter but cannot see any thanks button in the posts! not sure where i've gone wrong but i have checked over and over and am pretty sure that the install went as per instructions, is there any reason why it would'nt work? I'm on 3.6.5 by the way..
Quote:
Use version 6.0 Gold and do the template edits as explained in the instructions you will find within
Thanks, i have used the 6.0 gold version, followed instructions but i still get no button, have double checked everything and am sure everything was uploaded correctly and all template edits were done correctly, any help please guys..
Yes, go to the template called post_thanks_postbit_info and put at the very begining
<if condition="$bbuserinfo[usergroupid] == 6"> (in order for ONLY admins to be able to see it) and put </if> at the very end. That should do the trick, otherwise, just delete the whole content of the template, and when you want to show it again, just revert it ^^.
On Edit:
I found this in the first two "Edit Plugins". Is it a misspelling?
hello, i have managed to install the thanks button, but how do i customise it the way you say you can? basically i'd like the names of anybody who thanks the poster to be available as a dropdown if selected. not to be visible at all times, many thanks