Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[AJAX] Post Thank You Hack Details »
[AJAX] Post Thank You Hack
Mod Version: 7.4, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (210 votes - 4.76 average) Installs: 2721
Released: 03 Aug 2006 Last Update: 21 Mar 2008 Downloads: 16521
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

vB 3.7 version of this hack here: http://www.vbulletin.org/forum/showthread.php?t=165673
vB 4.0 version of this hack here: http://www.vbulletin.org/forum/showthread.php?t=231666

Post Thank You Hack 7.4


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.

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

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	1.jpg
Views:	3352
Size:	16.8 KB
ID:	76775   Click image for larger version

Name:	2.jpg
Views:	2344
Size:	29.4 KB
ID:	76776   Click image for larger version

Name:	4.jpg
Views:	2651
Size:	27.1 KB
ID:	76777   Click image for larger version

Name:	5.jpg
Views:	1980
Size:	38.1 KB
ID:	77310  

Click image for larger version

Name:	6.jpg
Views:	777
Size:	5.9 KB
ID:	77311   Click image for larger version

Name:	7.jpg
Views:	1563
Size:	128.0 KB
ID:	77312  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements [AJAX] Post Thank You Hack Abe1 vBulletin 3.8 Add-ons 2382 19 Jun 2019 05:42
[AJAX] Post Groan Hack Abe1 vBulletin 3.5 Add-ons 66 09 Jun 2013 05:09
[AJAX] Post Thank You Hack Abe1 vBulletin 3.5 Add-ons 998 23 Dec 2012 06:24

  #1846  
Old 07 Dec 2007, 03:54
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by chompychan View Post
OK, the members no longer seem to care about old thanked posts.

However I do have a strange conflict where hovertext doesn't reflect what reps people have.

Almost all reputation points are given via thanks and it seems no thanked posts are being reflected in the reputation hovertext, yet it still contributes points and green dots.

The only way I've found to compensate for this issue is rebuilding rep points every day. This is not a very desirable way to go about it though.

Anyone know why this could be happening?
Can you please explain more.
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #1847  
Old 07 Dec 2007, 20:42
doc_sameer doc_sameer is offline
 
Join Date: Dec 2006
Originally Posted by doc_sameer View Post
I wanted to know the modifications needed to show up the thanks within the post itself rather than outside in a box

something like this:



Thanks.

btw, the mod is fantastic.
still waiting for support! plz anyone?
Reply With Quote
  #1848  
Old 08 Dec 2007, 13:25
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
how can i disable the Thanks listing for guests ?
Reply With Quote
  #1849  
Old 09 Dec 2007, 11:22
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
There is a minor bug in 6.3 of this hack

I noticed I was getting style warnings - 1 for each post in showthread.
I narrowed the problem down to this Thank you mod.
It exists in the postbit_display_complete plugin:
if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post))
{
$display_thanks_image = '';
}
should be
if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post))
{
$display_thanks_image = 'inline';
}
Having no value after display: throws up a warning error (in Firefox).
inline is the default which should be used to display the button normally.
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed.
Reply With Quote
  #1850  
Old 09 Dec 2007, 11:26
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Making the postbit thanks display more efficient

I found that the thanks information in postbit was taking up a couple of lines and looked untidy.
So I changed the post_thanks_postbit_info template to :
<if condition="$post[userid]">
<div>$vbphrase[post_thanks_thanks]: Gave $post[post_thanks_user_amount_formatted], Got $post[post_thanks_thanked_times_formatted]</div>
</if>
Which while not grammatically quite as flowery, does the job using just 1 line.
Example
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed.

Last edited by Spinball; 09 Dec 2007 at 11:32.
Reply With Quote
  #1851  
Old 09 Dec 2007, 11:30
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Style inconsistancy

I love the way that the thanks info is displayed in a separate box under the post. However, it was not being displayed with the same table border as the post itself.
I fixed this by editing post_thanks_postbit_legacy (or post_thanks_postbit if you use that style)
from (near the top)
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
to
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
which now makes the thanks info look correct.
Example

Ace hack - hope the feedback helps.
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed.
Reply With Quote
  #1852  
Old 09 Dec 2007, 13:28
tekguru tekguru is offline
 
Join Date: May 2007
Cheers - fix applied!
Reply With Quote
  #1853  
Old 10 Dec 2007, 22:35
mystic10 mystic10 is offline
 
Join Date: Sep 2007
please help..everytime someone click on the thanks button this error comes
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
please guide
Reply With Quote
  #1854  
Old 12 Dec 2007, 14:33
Nice_empire Nice_empire is offline
 
Join Date: Jan 2007
hello, i need help
i merge 2 database, but dont import post thanks in destination database

whether there is a way to import post thanks from old database ???

please!!!!
Reply With Quote
  #1855  
Old 14 Dec 2007, 23:05
Noctavia Noctavia is offline
 
Join Date: May 2006
Apologies if this has already been asked, 124 pages is a lot to read through hehe. But I was wondering if there's a way to make the thankyou box only appear after say 2 or 3 separate people have thanked the post? I'm wanting to use the hack to highlight the outstanding posts on my forum, and a couple of people seem the be very thankful for all sorts of things. I'd like it so that if the thank you box doesn't show until multiple people have said thanks for it.
Reply With Quote
  #1856  
Old 15 Dec 2007, 13:04
busybeeburns busybeeburns is offline
 
Join Date: Feb 2006
Hi,

I have uploaded all the files, but when it comes to importing the xml via Manage Products, I'm greeted with a blank page instead of confirmation that the product has been installed. Can anyone help please?
Reply With Quote
  #1857  
Old 15 Dec 2007, 19:06
Big-K Big-K is offline
 
Join Date: Feb 2005
Originally Posted by Skyline_GT View Post
I'm getting the Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183 error

Did a recounter and still having the issue

Please help
I also have this problem.
Here's a fix a member of my board came up with. Hope it helps someone:
"it seems that there were empty arrays (i.e. lists of items) being passed to the function that generated the warning message. Honestly, I have no idea where these arrays were coming from or whether it is even all right for them to be empty - but I've asked the function not to try to process such arrays in future.

See board/includes/functions_post_thanks.php

After line 182

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #1858  
Old 16 Dec 2007, 04:40
JamesAB JamesAB is offline
 
Join Date: Jan 2004
Thanks for the great MOD.

I just installed and did a few tests.

One thing I noticed is that if you delete a thread that contains posts that were given "Thanks", that user's Thanked count is not decreased.

For example, it will still say:

Thanked 2 Times in 1 Post
even when that 1 post has been deleted.

Forgive me if this has been asked before, but is there a fix or a workaround for this?
Reply With Quote
  #1859  
Old 16 Dec 2007, 04:49
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Originally Posted by mystic10 View Post
please help..everytime someone click on the thanks button this error comes
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
please guide
This is most likely due to your server being upgraded to run PHP version 5... read the following:
http://www.vbulletin.org/forum/showthread.php?t=125302
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #1860  
Old 17 Dec 2007, 19:52
Traxdata Traxdata is offline
 
Join Date: Jul 2004
seems to work on 3.7.0 beta2
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:41.

Layout Options | Width: Wide Color: