vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=92410)

Abe1 07-17-2005 10:00 PM

[AJAX] Post Thank You Hack
 
Post Thank You Hack 4.5




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.

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: 4
  • Files to upload: 1
  • Time to install: 5 minutes max
Updates:

Version 2.0 GOLD (10/02/05):
  • GOLD Release of this hack for vBulletin version 3.5
Version 2.1 (10/23/05):
  • [BUG FIX] When merging/splitting threads
  • [BUG FIX] When a user deletes his thanks (now removes post/rep count if option(s) on)
  • [ADD PHRASE] post_thanks_user_says
  • [ADD PHRASE] post_thanks_time_post
  • [ADD PHRASE] post_thanks_times_post
  • [ADD PHRASE] post_thanks_times_posts
  • [DELETED PHRASE] post_thanks_thanks_amount
Version 2.2 (10/23/05):
  • [ADDED] Re-counters. Found under Maintenance->Update Counters in your ACP.
Version 2.3 (11/05/05):
  • [ADDED] Cache Templates
Version 2.4 (11/07/05):
  • [ADDED] Setting to disallow users from deleting their own thanks.
Version 2.5 (11/09/05):
  • [FIXED] All number outputs run through your vb setting of number format. (e.g. 1234 will now show as 1,234)
Version 2.6 (12/04/05):
  • [FIXED] Number outputs for numbers between 1,000 and 1,999
  • [FIXED] Showing of the thanks button on deleted threads pages.

Version 2.7 (12/18/05):
  • [ADDED] Made the Thanks button a template
  • [ADDED] Made a template group for this hacks templates
  • [FIXED] One template edit. Find correction in zip file.
  • [CHANGED] Made a pop-up now when you click Thanks instead of refreshing the page.
  • [FIXED] Made the line when you give reputation points for thanks, a phrase.
  • [ADDED] Paypal link so you can make a donation for this hack.

Version 2.8 (2/5/06):
  • [FIXED] Removed one query thanks to AnhTuanCool (Abe clicks 'thanks')
  • [ADDED] Option to allow users to thank their own post
  • [ADDED] Option to allow a pop=up or refresh after a user clicks thanks

Version 2.9 (2/8/06):
  • [FIXED] Fixed allot of things in regard to deleting thanks using the "remove all thanks" and "Remove your thanks".

Version 3.0 (2/10/06):
  • [FIXED] Fixed one more thing in regard to "remove all thanks".
  • [FIXED] Re-wrote the thanks actions so it they useless queried when you give or remove thanks.

Version 3.1 (2/11/06):
  • [FIXED] Fixed bug with reputation.

Version 3.2 (2/13/06):
  • [FIXED] Fixed another bug with reputation.
  • [FIXED] Sped up the one query used to retrieve the thanks.

Version 3.3 (2/14/06):
  • [FIXED] Fixed bug with removing own thanks.

Version 3.4 (3/17/06):
  • [FIXED] Fixed a few bugs.

Version 4.0 (4/17/06):
  • [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!

Version 4.1 (4/18/06):
  • [FIXED] Crashing of 'quick reply' when using Firefox.

Version 4.2 (4/23/06):
  • [FIXED] If you have vboption 'Add Template Name in HTML Comments' set to 'Yes', button was not showing.
  • [FIXED] Uncached template when viewing a PM
  • [FIXED] Getting sent to index page when clicking thanks on some forums.
  • [FIXED] Link to member's profile from the thank box.
  • [FIXED] The post thank count not updating. (Recommend you recount thanks. (ACP->Maintenance->Update Counters)

Version 4.3 (5/4/06):
  • [FIXED] Optimized a lot of the templates.
  • [ADDED] Easy integration with my Post Groan Hack.

Version 4.4 (5/7/06):
  • [FIXED] Bug with AJAX if you had the date showing.

Version 4.5 (6/19/06):
  • [FIXED] Bug with AJAX if you had hacks that added things to your output.

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' (admin view)
  4. Showing post after 'thanks' with legacy posts (admin view)
  5. Stats in members profile and link
  6. Link in Search drop down menu
  7. Hacks settings

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.
https://vborg.vbsupport.ru/external/2010/02/12.gif

-=Sniper=- 07-18-2005 02:34 AM

thanks for this man!

just wondeing will you be adding a page which adds things like

- most thanked user
- most thanked post
- most thankful user
- top thanked users
- etc

I like the new delete thank by user, how about for the admins where as you can remove one thanks?

Abe1 07-18-2005 02:40 AM

Quote:

Originally Posted by -=Sniper=-
thanks for this man!

just wondeing will you be adding a page which adds things like

- most thanked user
- most thanked post
- most thankful user
- top thanked users
- etc

I like the new delete thank by user, how about for the admins where as you can remove one thanks?

I do plan to make a modual for the vBadvanced CMPS portal. Maybe even an add on for the statistics hack.

I will be looking into admin deleting one thanks at a time.

Thanks for your imput.

TTG 07-18-2005 03:40 AM

Installed and working with no problems.
Clicked install.

hotrod1 07-18-2005 01:48 PM

Clicked install* Thanks!

karanlikdunya 07-18-2005 09:41 PM

xml files where upload ?

TTG 07-18-2005 10:09 PM

Quote:

Originally Posted by karanlikdunya
xml files where upload ?

admincp >> Plugin system >> download/upload plugins.

I assume you are using 3.5.0 beta 4 ?

slank 07-21-2005 05:42 PM

i had this on vb3.0.7 will now try it out on vb3.5.x , thanks again

Abe1 07-25-2005 02:32 AM

Quote:

Originally Posted by -=Sniper=-
thanks for this man!

just wondeing will you be adding a page which adds things like

- most thanked user
- most thanked post
- most thankful user
- top thanked users
- etc

I like the new delete thank by user, how about for the admins where as you can remove one thanks?

Released: https://vborg.vbsupport.ru/showthread.php?t=92816

I didn't do posts yet.

TTG 07-26-2005 09:57 PM

Needs updating for RC1 .. database error when using this hack :(

Abe1 07-26-2005 09:59 PM

Quote:

Originally Posted by TTG
Needs updating for RC1 .. database error when using this hack :(

Thanks for the warning. I didn't test it yet on RC1. BTW, can you post the error so I get head start?

TTG 07-26-2005 10:32 PM

Quote:

Originally Posted by Abe1
Thanks for the warning. I didn't test it yet on RC1. BTW, can you post the error so I get head start?

Sorry Abe .. couldn't get into my admincp after receiving the error message and had to use the unplug.php to disable plugins and then deleted it.

For anyone else that has probems after installing a plugin .. you might find this useful :-

Unplug

mholtum 07-26-2005 10:36 PM

Uploaded the xml, and went to do the edits, now I cant login to my admioncp... Numerous SQL errors.. Any way out of this?Fixed

Abe1 07-26-2005 10:37 PM

Quote:

Originally Posted by mholtum
Uploaded the xml, and went to do the edits, now I cant login to my admioncp... Numerous SQL errors.. Any way out of this?

read the post above yours

TTG 07-26-2005 10:53 PM

Quote:

Originally Posted by mholtum
Uploaded the xml, and went to do the edits, now I cant login to my admioncp... Numerous SQL errors.. Any way out of this?Fixed


Might be a good idea to provide a copy of the unplug / deplug with all future plugins, in case someone has the same problem :nervous:

mholtum 07-26-2005 11:22 PM

Quote:

Originally Posted by TTG
Might be a good idea to provide a copy of the unplug / deplug with all future plugins, in case someone has the same problem :nervous:

I have it now.. I got hammered..

karanlikdunya 07-27-2005 09:55 AM

when I upload the plugin(fir the thanx button) it gives the message I gave above & as soon as it uploads the plugin the connection cuts with db

Abe1 07-27-2005 09:59 AM

Quote:

Originally Posted by karanlikdunya
when I upload the plugin(fir the thanx button) it gives the message I gave above & as soon as it uploads the plugin the connection cuts with db

This version will NOT work on vb3.5rc1!

karanlikdunya 07-27-2005 10:09 AM

no 3.5 -4 version

Abe1 07-27-2005 10:15 AM

Quote:

Originally Posted by karanlikdunya
no 3.5 -4 version

I would have to see the exact error. Did you try importing it twice? I recommend just wait until I come out with the version for vb35rc1.

Abe1 07-27-2005 10:39 PM

Version 2.0b2 for vb3.5rc1 was released.

Anyone who installed the version 2.0b1, uninstall the hack while you are still using vb3.5b4. You can keep the template changes. Upgrade vb then follow the instructions in the zip.

TTG 07-27-2005 11:24 PM

Quote:

Originally Posted by Abe1
Version 2.0b2 for vb3.5rc1 was released.

Anyone who installed the version 2.0b1, uninstall the hack while you are still using vb3.5b4. You can keep the template changes. Upgrade vb then follow the instructions in the zip.


Thanks for the update Abe .. installed and works with no problems on RC1:)

CMPS hack now works

Abe1 07-27-2005 11:25 PM

Quote:

Originally Posted by TTG
Thanks for the update Abe .. installed and works with no problems on RC1:)

Will the CMPS hack now work ?

Did I come out with this update quick enough for you ? :D

TTG 07-27-2005 11:27 PM

You were posting as I was checking the CMPS hack addition to your Thank you hack .. it DOES work :)

Abe1 07-27-2005 11:51 PM

Quote:

Originally Posted by TTG
You were posting as I was checking the CMPS hack addition to your Thank you hack .. it DOES work :)

Thanks for checking it. I'm just in middle of trying to update all my hacks.

JaMBo 08-03-2005 12:41 PM

all works fine apart from the new line to show who's thanked the poster doesnt show for me...

Abe1 08-03-2005 03:33 PM

Quote:

Originally Posted by JaMBo
all works fine apart from the new line to show who's thanked the poster doesnt show for me...

Did you do all the template changes? And it will only show if someone thanked the post already.

Abe1 08-04-2005 09:18 PM

Hack works on RC2.

Yorixz 08-13-2005 02:50 PM

Just wondering; are the thanked messages visible for everyone or just for the poster? Else the topics might get a little messed I think.

Abe1 08-14-2005 02:41 AM

Quote:

Originally Posted by Yorixz
Just wondering; are the thanked messages visible for everyone or just for the poster? Else the topics might get a little messed I think.

Everyone sees them. They blend in with the posts so it doesn't disrupt anything.

Andreas 08-23-2005 03:55 PM

@Abe1
You might want to check the Templates, they are not fully XHTML compliant.

Abe1 08-23-2005 03:58 PM

Quote:

Originally Posted by KirbyDE
@Abe1
You might want to check the Templates, they are not fully XHTML compliant.

Ok. Kirby

Can you PM me a link to were I can find the rules?

Andreas 08-23-2005 04:08 PM

http://validator.w3.org :)

Abe1 08-23-2005 04:23 PM

Quote:

Originally Posted by KirbyDE

thanks

cool

Omega Prime 09-07-2005 01:52 AM

Somewhat of a random question, but I previously had the 3.0.x version of this hack and was wondering if there's a means to upgrade from that to this version. From the looks of the xml, I'm guessing it does a clean install, right?

Abe1 09-07-2005 03:15 AM

Quote:

Originally Posted by Omega Prime
Somewhat of a random question, but I previously had the 3.0.x version of this hack and was wondering if there's a means to upgrade from that to this version. From the looks of the xml, I'm guessing it does a clean install, right?

Yes. It does a clean install. What I recommend is upgade your forum, dont worry about this hack. All data is stored. One vbGold is released I should release an update. All previus thanks will still be around.

Valter 09-11-2005 09:45 AM

I have problem when merging threads. It shows some error at the top of page until I remove thanks posts from thread.

Abe1 09-11-2005 10:36 AM

Quote:

Originally Posted by Cybernetec
I have problem when merging threads. It shows some error at the top of page until I remove thanks posts from thread.

I will be looking into this. I have the same problem on my forum.

JohnA 09-11-2005 01:59 PM

i have a problem, really want to use this 3.5 Thank hack in conjunction to the uCash modification. I set ALL setting correct so that when a user gives THANKS, it will increase the thanked users reputation. That works however, when I set the uCash give reputation and recieved user gain point also, it will not give any cash. It will however give cash if reputation is given the normal way. Is there anyway to fix this, or better yet add a piece of code for me so when a user gets thanks, they get one point of uCash instead of going though reputation?

bleodler 09-11-2005 05:02 PM

Can I request a feature? It would really work great for my forum if part of a post could be hidden until the user clicks on the thanks button. I hope you'll take this into consideration for a future version.


All times are GMT. The time now is 05:50 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.03551 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete