Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Post Thank You Hack Details »»
[AJAX] Post Thank You Hack
Version: 7.82, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 12-29-2009 Last Update: 11-01-2016 Installs: 3537
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

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

File Type: zip post_thanks_ version_7.83+integrated-postbit_box-collapse.zip (30.1 KB, 356 views)
File Type: zip post_thanks_ version_7.84+with_and-without-integrated_postbit_box_collapse.zip (35.5 KB, 310 views)
File Type: zip post_thanks_7_84_with search fix.zip (26.3 KB, 235 views)
File Type: zip post_thanks_7_85 For 4.2.0 - 4.2.3 vb version.zip (59.3 KB, 399 views)
File Type: zip post_thanks_7_85 For 4.2.0 - 4.2.3 vb version updated.zip (59.3 KB, 357 views)
File Type: zip post_thanks_7_86 For 4.2.0 - 4.2.3 vb version_with_thanks_postbit_fix.zip (59.3 KB, 1756 views)
File Type: zip post_thanks_7_88_for_vB_423_with_collapse_scroll_postbit_fix_and_added_features.zip (21.1 KB, 1032 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
92 благодарности(ей) от:
armagan, Baja, BasicGreatGuy, BCP Hung, Beckenbauer, BlueCheri, BoRoU, Bubble #5, Bucky Katt, CAG CheechDogg, CharlesEdwards, ChriDevelop, Crow, D4rk_Sh00t3r, dandanch, deltahawk5, dlewisr, drchinh, DS MrSinister, ELROBLE, elsa23, elwizard, eTiKeT?, fai99al99, Fennec, ggrimes620, goxy63, Hippy, jamyk, Jass!, john7911, jowshany, Juggernaut, JustAskJulie, kamurj, klyde, lange, lehoang101101, Life Revived, lims, LordOfWAR_PC, Luvilla, M Shaker, Mandushi, mapleleaffans, MegaManSec, michal72, mikadit, MistyMeanor, mjfan227, mmcguire, mobile4persian, mohammadxxx, Monyet_sby, nacaruncr, OMAN_LOVER, O_Dog, Peafor, phiber, pjkcards, Popa Andrei, Pottsy, Protonus, rafiul, RetroDreams, RichieBoy67, Rickpwns, Rodrigo., Roidon, Rubio, Sarah EI, sarvarjafari, sivaganeshk, Skaut, Skedoozy, socceronly, socialteenz, Stefan118, Teascu Dorin, TheSSDReview, TorrentMan, webriz.com, Whity

Comments
  #352  
Old 01-09-2010, 09:21 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi War.Frog yep issue now solved.. weird alright, lol
Reply With Quote
  #353  
Old 01-09-2010, 01:30 PM
KristerSwe's Avatar
KristerSwe KristerSwe is offline
 
Join Date: Dec 2006
Location: Sweden
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[Question]

Can i use this on the forumpart on a vB4 Publishing Suite

Thanks..
Reply With Quote
  #354  
Old 01-09-2010, 02:15 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Loved this hack on 3.8 so will give it a try!
Reply With Quote
  #355  
Old 01-10-2010, 03:31 AM
War.Frog's Avatar
War.Frog War.Frog is offline
 
Join Date: Aug 2009
Location: Ontario, Canada
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
Hi War.Frog yep issue now solved.. weird alright, lol
Weird. Well how frustrating...I tried your method and no go! Seems like a lot of hoops to jump through to eliminate that refresh issue and most aren't working.

I'm hoping Abe can figure out why it's refreshing like that and why it's leaping back to the first page in the thread. Sigh.
Reply With Quote
  #356  
Old 01-10-2010, 09:20 AM
RoteRose RoteRose is offline
 
Join Date: Jan 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

a bug occurs:

Code:
Database error in vBulletin 4.0.0:

Invalid SQL:
SELECT * FROM vb3_post_thanks AS post_thanks INNER JOIN vb3_user AS user USING (userid) WHERE post_thanks.postid IN () ORDER BY post_thanks.username ASC;

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY post_thanks.username ASC' at line 1
Error Number  : 1064
Request Date  : Sunday, January 10th 2010 @ 03:07:10 AM
Error Date    : Sunday, January 10th 2010 @ 03:07:10 AM
Script        : http://<<url>>/private.php?do=showpm&pmid=59086
Referrer      : http://<<url>>/private.php
Classname     : vB_Database
I got this bug in 2 days over 150times, please fix.
Reply With Quote
  #357  
Old 01-10-2010, 01:11 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darkimmortal View Post
Code:
Database error in vBulletin 4.0.0:

Invalid SQL:

			REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
			VALUES (0, '208.115.111.243', 1, 'shadiku', '', 'post.dateline', 'DESC', 0.00032, 1, '45371', 1262569673, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:205;s:7:\"shadiku\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', '93ba3cebb32266d635fc1600bc5fabbe');

MySQL Error   : Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Monday, January 4th 2010 @ 01:47:53 AM
Error Date    : Monday, January 4th 2010 @ 01:47:53 AM
Script        : http://www.gamingmasters.co.uk/post_thanks.php?do=findthanks&u=205
Referrer      : 
IP Address    : 208.115.111.243
Username      : Unregistered
Classname     : vB_Database
MySQL Version :
Code:
Database error in vBulletin 4.0.0:

Invalid SQL:

			REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
			VALUES (0, '208.115.111.243', 1, 'shadiku', '', 'post.dateline', 'DESC', 0.00021, 1, '45432,45054,44755', 1262569654, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:205;s:7:\"shadiku\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'aa2cf5c6dd7ff757d6f63558e8453e9b');

MySQL Error   : Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Monday, January 4th 2010 @ 01:47:34 AM
Error Date    : Monday, January 4th 2010 @ 01:47:34 AM
Script        : http://www.gamingmasters.co.uk/post_thanks.php?do=findthanks_user_gave&u=205
Referrer      : 
IP Address    : 208.115.111.243
Username      : Unregistered
Classname     : vB_Database
MySQL Version :
No-where in this hack is the link to this any more. You must have left a link somewhere to search for thanked posts.
Reply With Quote
  #358  
Old 01-10-2010, 01:44 PM
RoteRose RoteRose is offline
 
Join Date: Jan 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to add an option for a thx button in every post if i use the option to thank only in first post. Hm bad text, i mean, i would like have the thanks button in every post but the thanks will only appear in Post 1.
Reply With Quote
  #359  
Old 01-10-2010, 01:50 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by exyuteam View Post
I have this "problem" (see Capture.png). If someone not see, BLOG ENTRIES - 1 need to be in one line.. Not number 1 up, and text down You can see what I meen...

Problem is here:
Code:
<dd style="white-space: nowrap; display: inline; float: right;">
Please fix this. Maybee not using float - juts add text in next line..... ?

Thanks for great hack!!!!
Will be fixed in next version.
Reply With Quote
  #360  
Old 01-10-2010, 01:53 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by War.Frog View Post
Strange - I was playing with this again tonight on my test forum and when I entered a multi-page thread, jumped to a later page (page 11 in this case) and clicked on Thanks, the URL changed back to the first page of the thread!?

So, e.g. on page 11 of the thread: http://www.example.com/vb4test/showt...-thread/page11

...the /page11 is stripped off and I'm brought back to the first page. I have the most up-to-date version of this hack installed.
Anyone else reporting such a problem?
Reply With Quote
  #361  
Old 01-10-2010, 01:54 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrKramer View Post
I got this database error:

PHP Code:
Database error in vBulletin 4.0.0:
 
Invalid SQL:
 
            
REPLACE INTO search (useridipaddresspersonalsearchuserforumchoicesortbysortordersearchtimeshowpostsorderedidsdatelinedisplaytermssearchhash)
            
VALUES (0'81.167.x.xxx'1'icey''''post.dateline''DESC'0.918641'1709'1262778281'a:6:{s:5:"words";a:0:{}s:9:"highlight";a:0:{}s:6:"common";a:0:{}s:5:"users";a:1:{i:615;s:4:"icey";}s:6:"forums";i:0;s:7:"options";a:3:{s:11:"starteronly";i:0;s:11:"childforums";i:1;s:6:"action";s:7:"process";}}''1f9934b83b2cd7905cad1ae232f6d7da');
 
MySQL Error   Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Wednesday, January 6th 2010 @ 06:44:41 AM
Error Date    : Wednesday, January 6th 2010 @ 06:44:43 AM
Script        : http://www.vind-het-met-rapidlinks.com/post_thanks.php?do=findthanks_user_gave&u=615
Referrer      : 
IP Address    : 81.167.x.xxx
Username      : Niet geregistreerd
Classname     : vB_Database
MySQL Version : 
Do i now have to uninstall whole product and get a fresh install? but what if i dont wanna lose al thankes?
Go check if you have manual edits. This has nothing to do with the current version. You may have an old link still.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07684 seconds
  • Memory Usage 2,456KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (83)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete