Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
[AJAX] Post Thank You Hack Details »»
[AJAX] Post Thank You Hack
Version: 7.4, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 08-02-2006 Last Update: 03-20-2008 Installs: 2721
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

vB 3.7 version of this hack here: https://vborg.vbsupport.ru/showthread.php?t=165673
vB 4.0 version of this hack here: https://vborg.vbsupport.ru/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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
actoons, rhoula

Comments
  #1272  
Old 06-17-2007, 02:15 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtlcore
Hey man, is this possible>
www.curious-contraptions.com you will see the little feature called "Holler" where the most thanked thread gets displayed on forum home, is that possible with your hack or is just a modified version of your hack???
That looks like "digg" system (or something like that it is called) just changed the word I think.

Quote:
Originally Posted by tanand79
Iam using VB 3.6.3 and everytime when i press thanks....the whole page refreshes and loads back again.....

can anything be done for this....pls help
Reply With Quote
Use Post thanks 6.0 Gold. Make sure you do the template edits, specially the one with the <script>

Quote:
Originally Posted by Dotara
Thanks. I read it before but didn't get which hook I've to add and where to add in postbit_legacy. Please can you elaborate a little bit?
In order (I hope I don't miss any) you will need the following hooks at the postbit(_legacy) template.
$template_hook[postbit_controls] This one is for the button ^^
$template_hook[postbit_end] This one puts the box table with who has thanked
$template_hook[postbit_userinfo_right] This one is for the info (number or thanks etc)

Quote:
Originally Posted by PugWD
Do I need the template fix or was that just for pre-6.2?
The template fix is for 3.6.7 because it has a bug. Since 6.2 is designed for 3.6.7 it is very likely you will need the template fix

Quote:
Originally Posted by PugWD
* I've widened my postbit to allow for longer usernames - where do I edit to get the width of this to line up?
* Is there a way to remove the gap between the Thanks box and the post it applies to?
* How do I move the button to the left of the other buttons rather than the right?
1? You mean the thank you box? got o the template called post_thanks_postbit_legacy and you will find some line saying
Quote:
<tr valign="top">
<td class="alt2" width="XXX">
<if condition="$post['post_thanks_amount']
]Edit that XXX with your new value
2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow
3? In order to have the thanks button on the left, move hte position of the hook $template_hook[postbit_controls]From its current position to just bellow <!-- controls -->

Quote:
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..
Use version 6.0 Gold and do the template edits as explained in the instructions you will find within

Quote:
Originally Posted by mgurain
Quote:
Originally Posted by NolF
postbit, postbit_legacy, navbar, and memberinfo
so click on "[View History]" on those templates, and you will be able to compare the changes between the templates.
postbit and navbar templates are not in this list, but still not working!
That means that those templates are up to date. However make sure that postbit legacy has the hooks mentioned earlier on this post specially $template_hook[postbit_controls] , navbar ($template_hook[navbar_quick_links_menu_pos1]). And then make sure all the files uploaded are uplaoded correctly, sometimes the fields are not fully uploaded (nothign to do with this hack) but yeh... happens so make sure they are good ^^

Have you checked the database to see if the fields have any info in then or the old 3.5 ones are still in there somewhere?

(PS sorry about grammar and spelling)
Reply With Quote
  #1273  
Old 06-17-2007, 02:49 PM
vivamexico55 vivamexico55 is offline
 
Join Date: Apr 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have ran version 5.3 for a long time, and yesterday I used the "Update Post Thanks Post Amount" option for the counters. It was taking a looong time, about 2 hours, so I just closed my server window.

Now when I tried to backup my database I got this error:

Quote:
Database error in vBulletin 3.6.7:

Invalid SQL:
SHOW CREATE TABLE post_thanks;

MySQL Error : MySQL server has gone away
Error Number : 2006
Date : Sunday, June 17th 2007 @ 10:37:18 AM
Script : http://www.leforo.com/admincp/backup.php?do=sqlfile
Referrer : http://www.leforo.com/admincp/backup.php?do=choose
IP Address : xxx.xxx.xxx.xxx
Username : xxx
Classname : vB_Database
Did I just ++++ up my database?

Any ideas how to fix it?
Reply With Quote
  #1274  
Old 06-17-2007, 02:57 PM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.yoursitename.com/forum/search.php?do=findallthanks" target="_blank">http://www.yoursitename.com/forum/se...=findallthanks</a>

dosnt work on latest Post Thank You Hack.

what will be the code now for to find all thanks?
Reply With Quote
  #1275  
Old 06-17-2007, 03:18 PM
PugWD PugWD is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NolF View Post
The template fix is for 3.6.7 because it has a bug. Since 6.2 is designed for 3.6.7 it is very likely you will need the template fix


1? You mean the thank you box? got o the template called post_thanks_postbit_legacy and you will find some line saying
[html]<tr valign="top">
<td class="alt2" width="XXX">
<if condition="$post['post_thanks_amount']
Edit that XXX with your new value
2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow
3? In order to have the thanks button on the left, move hte position of the hook $template_hook[postbit_controls]From its current position to just bellow <!-- controls -->
Mate, if we had this hack on vB.org, you'd have thanks right about now. :up:
Reply With Quote
  #1276  
Old 06-17-2007, 03:25 PM
Dotara's Avatar
Dotara Dotara is offline
 
Join Date: Apr 2007
Location: 127.0.0.1
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NolF View Post
In order (I hope I don't miss any) you will need the following hooks at the postbit(_legacy) template.
$template_hook[postbit_controls] This one is for the button ^^
$template_hook[postbit_end] This one puts the box table with who has thanked
$template_hook[postbit_userinfo_right] This one is for the info (number or thanks etc)

Thank you very much. What I did is ...

PHP Code:
<!-- / controls --> 
Below this code I put ...

PHP Code:
$template_hook[postbit_controls
Then ...

PHP Code:
</td>
</
tr>
</
table
After this code I put ...

PHP Code:
$template_hook[postbit_end
Then ...

PHP Code:
<span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if> 
After this code I put

PHP Code:
$template_hook[postbit_userinfo_right
And now this hack is working just fine and looks like the attached image in my forum.

Thanks once again NolF.
Reply With Quote
  #1277  
Old 06-17-2007, 05:46 PM
tekguru tekguru is offline
 
Join Date: May 2007
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).

Any ideas on how to fix?
Reply With Quote
  #1278  
Old 06-17-2007, 08:58 PM
PugWD PugWD is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more query from me -
Is there an easy way to remove the Thanks: 0 & Thanked 0 Times in 0 Posts?
Seeing as this is fairly fresh on my board and there are a lot of users who don't actually deserve to have 0 thanks in their postbit profile, I'd like to hide the counts until the system is better established, just showing the thanks in the posts themselves for now.

Cheers.
Reply With Quote
  #1279  
Old 06-17-2007, 09:39 PM
Dotara's Avatar
Dotara Dotara is offline
 
Join Date: Apr 2007
Location: 127.0.0.1
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tekguru View Post
Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).

Any ideas on how to fix?
I think you put $template_hook[postbit_userinfo_right] hook twice in your postbit_legay or one already exist. Look for this hook and remove one if you've two.
Reply With Quote
  #1280  
Old 06-17-2007, 11:17 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tekguru
Quote:
Originally Posted by Dotara
I think you put $template_hook[postbit_userinfo_right] hook twice in your postbit_legay or one already exist. Look for this hook and remove one if you've two.
Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).
The name of the upper hook is wrong, it should be called $template_hook[postbit_userinfo_left]

Quote:
Originally Posted by Dotara
And now this hack is working just fine and looks like the attached image in my forum.

Thanks once again NolF.
Your welcome ^^

Quote:
Originally Posted by PugWD
Is there an easy way to remove the Thanks: 0 & Thanked 0 Times in 0 Posts?
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 ^^.

Quote:
Originally Posted by murrtex
http://www.yoursitename.com/forum/se...=findallthanks

dosnt work on latest Post Thank You Hack.

what will be the code now for to find all thanks?
http://www.yoursite.com/post_thanks....=findallthanks is the new code ^^ the difference is that it now uses post_thanks.php to do the search instead of search.php

Quote:
Originally Posted by NolF
Quote:
Originally Posted by PugWD
Is there a way to remove the gap between the Thanks box and the post it applies to?
2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow
OK, seems it was way easier that I had imagined ^^
Simply go to post_thanks_postbit_legacy
find <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
and remplace the highlighted with 0
you will get <div style="padding:0px 0px 0px 0px"> as result ^^.
Why? if you go to all style setting you will find one which says
"Table Cell Padding (pixels) and its value is 6 (by default) therefor 6 pixels spacing above ^^

Quote:
Originally Posted by vivamexico55
Did I just ++++ up my database?
IF leforo.com is your site, it looks like it is working, so I don't think you have badly screwed your database.
I'm not a database expert (I wish I knew more) but this line doesn't look right to me
SHOW CREATE TABLE post_thanks; SHOW and create? I know create table makes a table called that but then also show?. Besides if you already have a table called that I don't think you can recreate it... And also if you are doing a backup why would it be creating a existing table?

Lets wait for the experts to explain, but from the looks of it, the forum seems fine.
Reply With Quote
  #1281  
Old 06-18-2007, 04:08 AM
PugWD PugWD is offline
 
Join Date: Jun 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NolF View Post

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 ^^.

[...]

OK, seems it was way easier that I had imagined ^^
Simply go to post_thanks_postbit_legacy
find <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
and remplace the highlighted with 0
you will get <div style="padding:0px 0px 0px 0px"> as result ^^.
Why? if you go to all style setting you will find one which says
"Table Cell Padding (pixels) and its value is 6 (by default) therefor 6 pixels spacing above ^^
Awesome. Thank you once again.
Reply With Quote
Reply

Thread Tools

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 02:48 PM.


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.07068 seconds
  • Memory Usage 2,365KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_php
  • (22)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete