Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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

Version: 3.0.7 Rating:
Released: 12-27-2004 Last Update: 05-09-2005 Installs: 170
DB Changes
 
No support by the author.

Click here for vBulletin 3.5 version

Post Thank You Hack 1.10


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 granted liking by ALL the members of your forum.

The hack has been tested VERY well, including 5 weeks of beta testing, but I'm only human I can't guaranty there are no problems.

There is a similar hack called 'Automatic Thank You Hack'. That hack only lets you thank the first post of a thread and not just any post. The options in this hack doesn't compare to my hack. It's also unsupportive and was release for an older version of vBulletin.

Features:
  • Comes with easy installer/updater/uninstaller file
  • Places an easy to use button next to the edit button
  • Separate looks for postbit and postbit_legacy
  • Places all Thank Yous into one small box
  • [NEW]Uses only ONE query every time you view a showthread page!
  • Users can't thank twice
  • Users can't 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 Thank Yous from a single post
  • Turn on and off hack
  • 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
  • [NEW]Option to add to post count when someone clicks 'thanks'.
  • [NEW]Option to give a user who receives thanks reputation points.
  • Ban Usergroups
  • Ban Users
  • Update Counters in ACP (found in 'Import & Maintenance')
  • Uses Phrases
  • Guaranteed to be liked by ALL users on your forum!

Installation information on hack:
  • Files edited: 3
  • Templates edited: 4
  • New Phrases: 44 (installer installs them)
  • New Templates: 2 (installer installs them)
  • Queries: 15 excluding phase and template queries (installer installs it)
  • Files to upload: 4
  • Time to install: between 5-10 minutes

Updates:

Version 1.0 (12/28/04):
  • Release

Version 1.01 (1/10/05):
  • [FIX]Templates stay when you upgrade your forum

Version 1.02 (2/22/05):
  • [NEW]Installer Has Installer for After You Upgrade Your Forum
  • [NEW]Search for a users thanked posts
  • [NEW]Search for all thanked posts

Version 1.03 (2/23/05):
  • [FIX]Turn hack on for only first posts of threads now works

Version 1.10 (5/9/05):
  • [FIX]Compatibility for vBulletin 3.0.7
  • [FIX]Reduced the amount of queries need to run this hack every time you view a showthread page to only ONE query. No more 1 to 2 queries per post that comes up.
  • [FIX]I cached the templates used to save 1 query.
  • [NEW]Option to add to post count when someone clicks 'thanks'.
  • [NEW]Option to give a user who receives thanks reputation points.

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
  2. Showing post after 'thanks' (admin view)
  3. Showing post after 'thanks' with legacy posts (admin view)
  4. Stats in member?s profile
  5. Hacks settings
  6. Update counts view
I'll try to get some updated pictures up soon.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #167  
Old 05-09-2005, 03:01 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 -=Sniper=-
I get this

PHP Code:
WarningInvalid argument supplied for foreach() in /includes/functions_showthread.php on line 209 
What happend if you find:
PHP Code:
foreach ($post_thanks_cash AS $thanks
and replace with
PHP Code:
@foreach ($post_thanks_cash AS $thanks
Reply With Quote
  #168  
Old 05-09-2005, 03:05 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 Abe1
What happend if you find:
PHP Code:
foreach ($post_thanks_cash AS $thanks
and replace with
PHP Code:
@foreach ($post_thanks_cash AS $thanks
forget trying this. I'm going to give you some thing else to do.
Reply With Quote
  #169  
Old 05-09-2005, 03:06 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this

PHP Code:
parse errorunexpected T_FOREACH in /includes/functions_showthread.php on line 209 
Reply With Quote
  #170  
Old 05-09-2005, 03:08 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find:
PHP Code:
    foreach ($post_thanks_cash AS $thanks)
    {
        if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
        {
            
$post_thanks_already ++;
        }
    } 
and replace with this:
PHP Code:
    if ($post_thanks_cash)
    {
        foreach (
$post_thanks_cash AS $thanks)
        {
            if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
            {
                
$post_thanks_already ++;
            }
        }
    } 
Let me know if you get the error in a later place and if you only get the error on pages that dont have any thanks.
Reply With Quote
  #171  
Old 05-09-2005, 03:16 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok its working thanks

also during the upgrade process all my settings were reset had to redo them, could you avoide the problem in the future updates?

demo: http://www.hardwareforums.com/showthread.php?t=5319

thanks for the excellent hack.
Reply With Quote
  #172  
Old 05-09-2005, 03:25 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 -=Sniper=-
ok its working thanks

also during the upgrade process all my settings were reset had to redo them, could you avoide the problem in the future updates?

demo: http://www.hardwareforums.com/showthread.php?t=5319

thanks for the excellent hack.
You only needed that correction for one spot? I'm not going to implement it unless I see others have the problem also. I don't know why you got the error.

I gave a warning when you first clicked 'upgrade' that the settigns are being reset and that you should remeber what they are. In the future, I 'hope' I wont have to reset them again.

I'm glad you like it
Reply With Quote
  #173  
Old 05-09-2005, 03:30 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.

on mine I have it it like this

PHP Code:
<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><
phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if> 
even with one thanks it says "1 users"

btw: did the upgrade have any effect on the templates? changes?
Reply With Quote
  #174  
Old 05-09-2005, 03:45 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 -=Sniper=-
yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.

on mine I have it it like this

PHP Code:
<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><
phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if> 
even with one thanks it says "1 users"

btw: did the upgrade have any effect on the templates? changes?
in includes/functions_showthread.php
find all the times
PHP Code:
$number_rows 
and replace with
PHP Code:
$nb 
I'll update the zip download in a min. Also, anyone else who installed v1.10 alreadyshould do this.
Reply With Quote
  #175  
Old 05-09-2005, 03:49 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zip updated. Anyone who downloaded and installed already, just follow the instructions in the previus post.
Reply With Quote
  #176  
Old 05-09-2005, 04:01 PM
Watson's Avatar
Watson Watson is offline
 
Join Date: May 2004
Location: Scotland
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this, will give it a shot when I got my forums back online, doing some maint, and upgrading
Reply With Quote
  #177  
Old 05-09-2005, 04:06 PM
konstance's Avatar
konstance konstance is offline
 
Join Date: Dec 2002
Location: oklahoma
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:

Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209

Please advise what to do about that.

thanks!
Reply With Quote
  #178  
Old 05-09-2005, 04:24 PM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried to upgrade as instructed, and when posting a message I get "error in functions_showthread.php"

Now clicking on any post gives me:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM award AS award ORDER BY awardid ASC
mysql error: Unknown column 'awardid' in 'order clause'

mysql error number: 1054


Got no errors during the install process, made the file changes with no probems as directed by the installer.

Help?

-snake
Reply With Quote
  #179  
Old 05-09-2005, 04:28 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 konstance
When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:


Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209

Please advise what to do about that.

thanks!
Find:
PHP Code:
    foreach ($post_thanks_cash AS $thanks)
    {
        if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
        {
            
$post_thanks_already ++;
        }
    } 
and replace with this:
PHP Code:
    if ($post_thanks_cash)
    {
        foreach (
$post_thanks_cash AS $thanks)
        {
            if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
            {
                
$post_thanks_already ++;
            }
        }
    } 
Reply With Quote
  #180  
Old 05-09-2005, 04:35 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just updated the zip again with this last fix. Everything should work fine now (I hope).
Reply With Quote
  #181  
Old 05-09-2005, 04:38 PM
konstance's Avatar
konstance konstance is offline
 
Join Date: Dec 2002
Location: oklahoma
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Abe1, it works fine now.
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:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05220 seconds
  • Memory Usage 2,407KB
  • Queries Executed 30 (?)
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
  • (14)bbcode_php
  • (5)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
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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