[AJAX] Post Thank You Hack

volgan

New Member
Post Thank You Hack 7.7​


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.

Features:
  • Uses vBulletin easy Product installer/updater/uninstaller
  • Uses AJAX technology so your users don't have to refresh when they thank.
  • Places an easy to use button next to the edit button
  • Separate looks for postbit and postbit_legacy
  • Places all Thanks into one small box
  • Uses only ONE query every time you view a showthread page!
  • Users can't thank twice
  • Option to not allow users to thank their own post
  • Guests don't see 'thanks' button
  • Counts how many thanks a user gives
  • Counts how many thanks a post gets
  • Shows how many thanks a user gave in every post of his
  • Shows how many thanks a user gave in profile
  • Shows how many thanks a user got
  • Shows how many posts or a user are thanked
  • Shows info in profile
  • Search for a users thanked posts
  • Search for all thanked posts
  • Administrator can remove all Thanks from a single post
  • Users can remove their own Thanks
  • Turn on and off hack totally
  • Turn on and off hack for only some forums
  • Option to turn off hack for all but the first post of a thread
  • Option to turn off hack for all but the first post of a thread in specific forums
  • Option to turn off hack view of date for specific or all forums
  • Option to add to post count when someone clicks 'thanks'.
  • Option to give a user who receives thanks reputation points.
  • Ban Usergroups
  • Ban Users
  • Uses Phrases
  • Cache Templates
  • Guaranteed to be liked by ALL users on your forum!
Installation information on hack: (If installed on vb 3.7)
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 7
  • Time to install: 1 minute max
Updates:

Version 7.0 (12/20/07):
  • Release of this hack for vBulletin version 3.7
  • This version works on all vBulletin versions from 3.6.0 and up
Version 7.1 (12/24/07):
  • Fixed up the vb3.7 profile block code including fixing showing your info and not the member you are looking at.
Version 7.2 (01/24/08):
  • Updated files: post_thanks.php, functions_post_thanks.php
  • Updated templates: post_thanks_memberinfo_block, post_thanks_member_info
  • 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.
Version 7.5 (05/12/08):
  • Updated files: post_thanks.js, post_thanks.php, functions_post_thanks.php
  • Updated template: post_thanks_button
  • 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).
  • Updated file: post_thanks.js
  • Updated templates: post_thanks_button, post_thanks_postbit, post_thanks_postbit_legacy
  • New option: Show Stats in Postbit?
  • New option: Show Stats in Profile?
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:
  1. Showing the 'thanks' button and stats in Postbit
  2. Showing post after 'thanks' (user view)
  3. Showing post after 'thanks' with legacy posts (admin view)
  4. Stats in members profile and link
  5. Link in Search drop down menu
  6. Hacks settings
 

Bayi00

New Member
Thank you very much bro

but why not working ?

886_1.jpg


if i click Button Thanks , will show thats message
 

smartness

New Member
where is the "install" link??? help!
hahaha, he just copied the info from vbteam.org

p.s. @ the author!

don't spend vbteam.info bandwidth,, with that big image 1mb.

the whole hack has only 20Kb
dont be an idiot!
 

volgan

New Member
smartness said:
hahaha, he just copied the info from vbteam.org

p.s. @ the author!

don't spend vbteam.info bandwidth,, with that big image 1mb.

the whole hack has only 20Kb
dont be an idiot!


is that a insult towards me or the other dude?
 

b33znutz

New Member
volgan said:
is that a insult towards me or the other dude?

i think that was for the author... the author cut'n'pasted the info from the vb site and in doing so cut'n'pasted the images with it.. at least i think thats what he meant.. no hot-linking images i always say!
 
Gullyaner said:
I found a hint about this on vbulletin.org, but unfortunately the text is hidden.
>> vBulletin.org Forum - View Single Post - [AJAX] Post Thank You Hack
Can somebody with an account tell us about the code please?

If anyone's curious, I figured this out myself using the Bump Threads mod. It's very simply to make hitting thanks bump the thread.

First, open post_thanks.php. Find this line:

PHP:
if ($_REQUEST['do'] == 'post_thanks_add')
Inside that if block, find this line:

PHP:
if ($using_ajax)
Right above that line, add this small chunk of code:

PHP:
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$threadman->set_existing($threadinfo);
$threadman->set('lastpost', TIMENOW);
$threadman->save();
The thread will now be bumped to the top upon hitting thanks.
 

Webdude

New Member
When someone hits the thanks button why does it say that there is 2 people who have said thanks when in fact its only one.
 

kenblat

New Member
dear vbteam,

Can you help me out how to move the thanks button in front of Quick Reply, Quote and multi Quote button (now my thanks button in the end and i don't like it). I love the order of those buttons in vbteam.info
 

nudu

New Member
kenblat said:
dear vbteam,

Can you help me out how to move the thanks button in front of Quick Reply, Quote and multi Quote button (now my thanks button in the end and i don't like it). I love the order of those buttons in vbteam.info

I agree, I would love to know how to do this. Thank you so much for this hack.
 
Top