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.82, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (349 votes - 4.75 average) Installs: 3531
Released: 30 Dec 2009 Last Update: 02 Nov 2016 Downloads: 29701
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Translations  

Post Thank You Hack

STAFF EDIT:
Note - The mod author has been unreachable for some time, but the vbulletin.org community has stepped up to provide a number of individual fixes over the years. ForceHSS, Hippy, and Seven Skins have all combined many of these fixes into product files.

ALL CREDIT STILL GOES TO ABE1 And this is still 'his' mod. Please still mark the mod as installed if you use any version of it.

That said so you don't need to apply a dozen + small fixes yourself you should consider downloading one of the updated packages below:

Hippy has one in this post.

AND / OR

ForceHSS has one in this post.

AND/OR

Seven Skins has one in this post.


- Original File Specs: post_thanks_7_82.zip (26.4 KB, 24844 downloads) - Original file removed, replaced with patched files including search fix (some admins noticed hackers attempting to use outdated code to exploit search in attempt to gain administrator password or similar).
- There are five total patched versions available, some with and without the search fix - I've replaced the main file with the patched versions... please be sure to download and install the correct version, the main mod post contains links to additional information and patched files!
- If Abe1 returns he can request these packages be removed.


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:
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 8
  • Time to install: 1 minute max
Updates:


Version 7.80 (12/30/09):
  • Release of this hack for vBulletin version 4.0

Version 7.81 (01/02/10):
  • Fixed some install and uninstall database errors.
  • Made styling for postbit legacy a little better.
  • Fixed the "separator" issue.
  • Javascript file updated.

Version 7.82 (01/03/10):
  • Fixed info alignment issues in the postbit for custom edited phrases.
NOTE: *** Offer for paid services removed ***

Download Now

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

Addons

Supporters / CoAuthors

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 2388 02 Jan 2020 16:49
Show Thread Enhancements [AJAX] Post Thank You Hack Abe1 vBulletin 3.6 Add-ons 2155 17 Aug 2015 19:50
[AJAX] Post Thank You Hack Abe1 vBulletin 3.5 Add-ons 998 23 Dec 2012 07:24

  #1531  
Old 15 May 2011, 00:00
gnrx gnrx is offline
 
Join Date: Apr 2009
In some days, I received a email of my forum with database error.

The error is that, a google agent (for example) search old tables of old version of this mod, for example, I received this notification by mail of my forum:


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

Its possible make for not search this old tables (googleboots and others)?

Thanks and regards!
Reply With Quote
  #1532  
Old 15 May 2011, 17:47
ExcelFox ExcelFox is offline
 
Join Date: Apr 2011
Additional Info

A great mod, and I am already liking its use very much, and am thankful for developers like yourselves taking out time and effort, to provide us with such free modifications and add-ons.

With due respect, there is a small bug fix that would be nice (which should be a stroll in the park for coders like you). The issue is in the postbit, when this mod is used with ITW - Time Spent Online. So what happens is that the time online is displayed along with the X Thanks in X Posts line which makes reading confusing. If this is not clear, I have posted an image. You could have a look. Thanks again for your time.

For the time being, I have disabled showing the Thank You, but I would really love to have this working.
Attached Images
File Type: png Time Online Vs Post Thanks Post Bit Bug.PNG (2.7 KB, 10 views)

Last edited by ExcelFox; 15 May 2011 at 18:45. Reason: Image Added
Reply With Quote
  #1533  
Old 15 May 2011, 22:07
ExcelFox ExcelFox is offline
 
Join Date: Apr 2011
Took me 3 hours to make my first ever modification in my life. And guess what! It's a success. Not sure how many eyebrows raise if this is a stupid way to make a modification, but hey, I got it all working for me at least.

Well, just in case somebody faces this problem, you can replace the code in the post_thanks_postbit_info style with the one below


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

Reply With Quote
  #1534  
Old 17 May 2011, 15:17
channelfuse's Avatar
channelfuse channelfuse is offline
 
Join Date: Nov 2008
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:

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

Then, we need to throw them into an array:

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

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.

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

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:

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

That's it. Searching via User CP should work.
Attached Files
File Type: php post_thanks.php (19.6 KB, 317 views)
__________________
Reply With Quote
  #1535  
Old 17 May 2011, 18:05
Vaira Vaira is offline
 
Join Date: Nov 2009
Thanks a lot for your efforts.
Do I have to use the fixed version first (post_thanks_7_82.fixed.zip ) and then replace the original one with your post_thanks.php?
Or do I have to use abe1's original version and then replace the post_thanks.php?

http://www.vbulletin.org/forum/showp...postcount=1433
I am confused since the fixed version has an updated version of post_thanks.js (besides of the product-post_thanks.xml). Is that updated post_thanks.js needed in order to run properly or should I use abe1's original one?

ATM I am running the fixed version from the link above.

Do the recounters options work?

Thanks again.

Last edited by Vaira; 17 May 2011 at 20:32.
Reply With Quote
  #1536  
Old 17 May 2011, 20:50
channelfuse's Avatar
channelfuse channelfuse is offline
 
Join Date: Nov 2008
Originally Posted by Vaira View Post
Thanks a lot for your efforts.
Do I have to use the fixed version first (post_thanks_7_82.fixed.zip ) and then replace the original one with your post_thanks.php?
Or do I have to use abe1's original version and then replace the post_thanks.php?

http://www.vbulletin.org/forum/showp...postcount=1433
I am confused since the fixed version has an updated version of post_thanks.js (besides of the product-post_thanks.xml). Is that updated post_thanks.js needed in order to run properly or should I use abe1's original one?

ATM I am running the fixed version from the link above.

Do the recounters options work?

Thanks again.
My code is based off of the original 7.82. I'm not sure what was changed in 7.82-fixed as the original code still worked (just a few minor cosmetic tweaks for our forum). I'll take a look at the difference between the two and report back.

Edit: It appears his fix was only in the .xml file. Mine was only in the .php. They should work just fine. You can use 7.82-fixed and overwrite the post_thanks.php with my file.
__________________
Reply With Quote
  #1537  
Old 17 May 2011, 23:30
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Originally Posted by djbaxter View Post
Similar experience: I had to restore my forum from a day old backup after uninstalling one of their mods.



One option is to try http://www.vbulletin.org/forum/showthread.php?t=228507 instead of SSTab. I found that to be a little less finicky.

To change it manually, I think this should do it:

1. Admin CP >> Styles & Templates >> Style Manager >> {your style} >> Edit Templates

2. Find and edit Navigation / Breadcrumb Templates >> navbar

3. Find and comment out or delete:


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

4. Save
thanks DJ, appreciate the input, it was helpful.
Reply With Quote
  #1538  
Old 17 May 2011, 23:31
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Real name: Wayne
Awesome stuff channelfuse!! I'm glad I hung on to this hack. It works perfectly now. Thank-you very much indeed
Reply With Quote
  #1539  
Old 17 May 2011, 23:39
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Originally Posted by Gradonil_Ral View Post
Which doesn't work with the current vBulletin, yeah.
works fine for me in vB 4.1.3
all you have to do is edit this.

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

to


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

you could change it to 4.1.3 if you wanted but you would need to change it to the current version every time you upgraded vB.
Reply With Quote
  #1540  
Old 18 May 2011, 11:21
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Real name: Sadiq
Originally Posted by channelfuse View Post
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:

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

Then, we need to throw them into an array:

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

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.

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

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:

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

That's it. Searching via User CP should work.
WoooooooW Finally

Great job "channelfuse"

You make me very happy when I read your great post
Work like a charm
Appreciate your help and you time consumed on that

Keep it up
Reply With Quote
  #1541  
Old 18 May 2011, 11:24
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Real name: Sadiq
I think by solve searching bug, this hack become live again
I have suggestion If any one can think about it

(Notification when receive new thank)

Will be a great feature
Reply With Quote
  #1542  
Old 18 May 2011, 15:47
raicars raicars is offline
 
Join Date: Apr 2009
Originally Posted by channelfuse View Post
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:

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

Then, we need to throw them into an array:

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

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.

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

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:

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

That's it. Searching via User CP should work.
Good man!!
Thanks .
Please give for me temp
post_thanks_member_info

Thankssssssssss
__________________
Free Download eBooks Medical
Reply With Quote
  #1543  
Old 18 May 2011, 16:28
robsta robsta is offline
 
Join Date: Oct 2006
how can i add post thx manually in postbit legacy ?
Reply With Quote
  #1544  
Old 18 May 2011, 16:34
raicars raicars is offline
 
Join Date: Apr 2009
Originally Posted by raicars View Post
Good man!!
Thanks .
Please give for me temp
post_thanks_member_info

Thankssssssssss
Find all thanked posts by User
Find all posts thanked by User


Postbit_legacy

Add new Temp
post_thanks_member_info

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

Replace temp: post_thanks_memberinfo_block


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




Demo: http://www.yhanoi.com/forum/member.php?u=1
__________________
Free Download eBooks Medical
Reply With Quote
  #1545  
Old 18 May 2011, 19:21
Vaira Vaira is offline
 
Join Date: Nov 2009
It finally works! (I am using legacy display mode).

(I have reverted the hack to abe1's original one before, replaced the post_thanks.php, edited the alignment to {vb:stylevar left}, and fixed the inline mod issue at post_thanks_box template)

A big thanks to channelfuse.

Also for raicars reminding me to add / modify the 2 templates to get it finally to work.

I am really grateful that I (we) still can use the original hack and don't have to go for a paid copy with more features I don't need at all.

Thanks to all who have contributed with useful solutions, I'm happy.

Last edited by Vaira; 18 May 2011 at 19:30.
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 04:41.

Layout Options | Width: Wide Color: