vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Post Thank You Hack v.0.6 (https://vborg.vbsupport.ru/showthread.php?t=72141)

Abe1 11-23-2004 10:00 PM

Post Thank You Hack v.0.6
 
VERSION 1.0 was released.

Get it here:
https://vborg.vbsupport.ru/showthread.php?t=73410

NO MORE SUPPORT IN THIS THREAD!


Post Thank You Hack 0.6


About this hack:
This hack allows users to thank someone for a post without making a big mess on your forum. I'm sure most of you HATE when people just make a post that says 'thank you'. Also, for those people who don't like making the 2 word post, this gives them a chance to say thanks. It's also good for users of your forum who post something helpful and want to see if people really used their information.

There is a similar hack called 'Automatic Thank You Hack'. That hack only lets you thank the first post of a thread not just any post. It's also unsupportive and was release for an older version of vbulletin.


Features:
  • 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
  • Users can't thank twice
  • Users can't thank their own post
  • Guests don't see 'thanks' button
  • Separate PHP for actions
  • Option to turn off hack for individual forums
  • Option to turn off hack for all but first post of a thread
  • Option to turn off hack view of date for separate or all forums
  • Counts how many thanks a user gives
  • Counts how many thanks a post gets
  • Update Counters in ACP (found in 'Import & Maintenance')
  • 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
  • Administrator can remove all Thank Yous from a single post
  • Uses Phrases
  • New set of options. Found in main ACP options.
  • Turn on and off hack
  • Turn on and off hack for only some forums
  • Ban Usergroups
  • Ban Users
  • Comes with easy installer/updater/uninstaller file
  • Guaranteed to be liked by ALL users on your forum!

Installation information on hack:
  • File edits: 2
  • Template edits: 3
  • New Phrases: 42 (installer installs them)
  • New Templates: 2 (installer installs them)
  • Queries: 14 excluding phase and template queries (installer installs it)
  • Files to upload: 4
  • Time to install: 5-10 minutes
  • NO KNOWN BUGS, HAVE NO FEAR

Updates:

Version 0.1 (11/24/04):
  • First beta release

Version 0.2 (11/26/04):
  • Fixed what you should look for in file /includes/functions_showthread.php
  • Thank You Button doesn?t show if user used it already
  • Thank You Button doesn?t show in private messages
  • Fixed installation for forums that have a 'TABLE_PREFIX'
  • Administrators can delete all Thank Yous for a single post
  • Users can't thank them-selves

Version 0.3 (11/29/04):
  • Guests don't see 'thanks' button
  • Separate PHP for actions
  • Option to turn off hack for individual forums
  • Option to turn off hack for all but first post of a thread

Version 0.4 (12/06/04):
  • Option to turn off hack view of date for separate forums
  • Counts how many thanks a user gives
  • Counts how many thanks a post gets
  • Update Counters in ACP (found in 'Import & Maintenance')
  • Shows how many thanks a user gave in every post of his
  • Shows how many thanks a user gave in profile

Version 0.5 (12/13/04):
  • Shows how many thanks a user got
  • Shows how many posts or a user are thanked
  • Shows info in Profile

Version 0.6 (12/21/04):
  • New set of options. Found in main ACP options.
  • Removed option in 'forum' options
  • Turn off view of date for ALL forums
  • Turn on and off hack
  • Turn on and off hack for only some forums
  • Ban Usergroups
  • Ban Users

On List for a Future Version:
  • I hope this is the last beta. Any more ideas, say them quick. Final version hopefully next week.

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.


Screenshots don't show new features

Polo 11-24-2004 02:53 PM

Are you guys related in any way?

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

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

just wondering, nice hack by the way ;)

Abe1 11-24-2004 03:00 PM

Quote:

Originally Posted by Polo
Are you guys related in any way?

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

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

just wondering, nice hack by the way ;)

That first link I talk about in my post. It's only for the first post of a thread.

The second link is TO THIS THREAD ???? Of course were related!

TTG 11-24-2004 03:04 PM

Very useful .. nice and simple and installed with no problems.

Thanks for the hack

Polo 11-24-2004 03:15 PM

Quote:

Originally Posted by Abe1
That first link I talk about in my post. It's only for the first post of a thread.

The second link is TO THIS THREAD ???? Of course were related!

lol, well you got one install from me Abe ;)

Boofo 11-24-2004 04:06 PM

Can you make it look more like a regular post like the other thank you hack does?

xtreme-mobile 11-24-2004 04:42 PM

mine dont work ive followed the instructions but the thank-you button dont show

any ideas?

regards

Dean

Abe1 11-24-2004 05:53 PM

Quote:

Originally Posted by xtreme-mobile
mine dont work ive followed the instructions but the thank-you button dont show

any ideas?

regards

Dean

Did you follow the modifacations in the installer? you can go to: /admincp/post_thanks_install.php?step=dofileedits and follow the instructions.

Abe1 11-24-2004 05:54 PM

Quote:

Originally Posted by Boofo
Can you make it look more like a regular post like the other thank you hack does?

I had not liked that so much. I like it looking more of a speical thing part of the post. It shouldn't stand out too much.

xtreme-mobile 11-24-2004 06:14 PM

yes mate i followed the whole thing :(

any ideas?

regards

Dean

Abe1 11-24-2004 06:19 PM

Quote:

Originally Posted by xtreme-mobile
yes mate i followed the whole thing :(

any ideas?

regards

Dean

No clues realy. I'm sure you uploaded the image and to show the image doesn't even have to do with an <if> so even if the hack wasn't installed, you should see the image.

xtreme-mobile 11-24-2004 08:12 PM

yeh i uploaded and did everything it said all i got is the standard post reply button

Abe1 11-24-2004 08:15 PM

Can you PM you Postbit template (after you made the changes)? Make sure you put it in [html] tags.

glenvw 11-24-2004 09:14 PM

I have this error and need help.

My links are ot working:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM tablenamepost_thanks WHERE postid='81078' ORDER BY username
mysql error: Table 'tablename_forums.tablenamepost_thanks' doesn't exist

mysql error number: 1146

Date: Wednesday 24th of November 2004 04:11:59 PM
Script: http://www.yes-its-free.com/forums/s...ad.php?t=12867
Referer:
Username: Me
IP Address: Removed


I am awful at fixing tables.

I need someone to help me please.

glenvw 11-24-2004 09:49 PM

Ok, I got some help and got it fixed.

Your hack install does not take into consideration for people with prefixes on their table names.

Question:

Can these "Thank you" posts be deleted?

glenvw 11-24-2004 10:07 PM

Another question.

Can this be fixed to display only on the original post in the thread?

I like your hack better than the other version, but prefer it to show up once per thread.

HC. 11-25-2004 12:23 AM

will this hack allow you to create one post then look it and have the users click Thanks?
is there a uninstall php file just in case it does not work?

JohnBee 11-25-2004 01:22 AM

I installed the hack but I see nothing anywheres.
what am I missing?

I did the following. h**p://siteurl/admincp/post_thanks_install.php?step=dofileedits and doubled checked the instructions.

Everything is 100%
The hack is silent. :surprised:

dndog 11-25-2004 02:16 AM

Quote:

Originally Posted by Abe1
I had not liked that so much. I like it looking more of a speical thing part of the post. It shouldn't stand out too much.

I agree with the man. :devious:

morrow 11-25-2004 04:07 AM

Very nice hack, thanks!

<--Clicks Install-->

secret1980 11-25-2004 04:40 AM

I have a doubt regarding this by giving the thanks will the post count increase of that member who has given thx!

Abe1 11-25-2004 01:29 PM

Quote:

Originally Posted by glenvw
Ok, I got some help and got it fixed.

Your hack install does not take into consideration for people with prefixes on their table names.

Question:

Can these "Thank you" posts be deleted?

I will work on that and try to fix it.

glenvw 11-25-2004 01:31 PM

Quote:

Originally Posted by Abe1
I will work on that and try to fix it.

Thanks

IS there a way to have the button only show up in the first post?

Abe1 11-25-2004 01:33 PM

Quote:

Originally Posted by glenvw
Another question.

Can this be fixed to display only on the original post in the thread?

I like your hack better than the other version, but prefer it to show up once per thread.

My hack lets you thank every post, not just the first. Meny times a person will post a very useful post somewere in a thread not just the first post. I may com out with settings that lets you turn off on all post exect for first.

Abe1 11-25-2004 01:34 PM

Quote:

Originally Posted by hunterscentral
will this hack allow you to create one post then look it and have the users click Thanks?
is there a uninstall php file just in case it does not work?

Yes. I full uninstallation is found in the install script. It also shows you what you have to delete from the files and templates.

glenvw 11-25-2004 01:34 PM

Quote:

Originally Posted by Abe1
My hack lets you thank every post, not just the first. Meny times a person will post a very useful post somewere in a thread not just the first post. I may com out with settings that lets you turn off on all post exect for first.

Thanks, it would be very helpful for me. Is there an easy way to do that now?

Abe1 11-25-2004 01:36 PM

Quote:

Originally Posted by JohnBee
I installed the hack but I see nothing anywheres.
what am I missing?

I did the following. h**p://siteurl/admincp/post_thanks_install.php?step=dofileedits and doubled checked the instructions.

Everything is 100%
The hack is silent. :surprised:

Did you do the postbit and postbit_legacy template edits?

Abe1 11-25-2004 01:43 PM

Quote:

Originally Posted by glenvw
Thanks, it would be very helpful for me. Is there an easy way to do that now?

Maybe in the postbit you should put
HTML Code:

<!-- post thank you hack -->
<if condition="$postcount==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->

Didn't try it, but I think it should remove the button if it's not the first post.

Abe1 11-25-2004 01:45 PM

Quote:

Originally Posted by secret1980
I have a doubt regarding this by giving the thanks will the post count increase of that member who has given thx!

No, the user's post count wont go up.

Abe1 11-25-2004 01:48 PM

Quote:

Originally Posted by glenvw
Can these "Thank you" posts be deleted?

I'm work a link that would alow admins to remove all thank your for one post.

Boofo 11-25-2004 02:03 PM

Quote:

Originally Posted by Abe1
I'm work a link that would alow admins to remove all thank your for one post.

When you delete a thread, do the thank you posts get deleted, too?

Abe1 11-25-2004 02:07 PM

Quote:

Originally Posted by Boofo
When you delete a thread, do the thank you posts get deleted, too?

No, they wouldn't get deleted. They wont create any errors though. Do you realy want to start making 10 file edits that that they DO delete when you delete a post? Also, the thank yous are only saved in a seperate table nothing to do with the posts.

Abe1 11-25-2004 02:10 PM

Just for the info, so no-one has to post about, next version will have, once you say 'thanks' you wont see that button. Also, the button will be removed from PMs.

glenvw 11-25-2004 02:22 PM

Quote:

Originally Posted by Abe1
Maybe in the postbit you should put
HTML Code:

<!-- post thank you hack -->
<if condition="$postcount==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->

Didn't try it, but I think it should remove the button if it's not the first post.


Didn't fix it. :-(

Abe1 11-25-2004 02:31 PM

Quote:

Originally Posted by glenvw
Didn't fix it. :-(

This should work:
HTML Code:

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


glenvw 11-25-2004 02:37 PM

Quote:

Originally Posted by Abe1
This should work:
HTML Code:

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


That doesn't work either.

It does not thank, but the button stays and after you thank, it throws an extra button between posts.

http://www.yes-its-free.com/forums/s...d.php?p=152280

Abe1 11-25-2004 03:22 PM

Quote:

Originally Posted by glenvw
That doesn't work either.

It does not thank, but the button stays and after you thank, it throws an extra button between posts.

http://www.yes-its-free.com/forums/s...d.php?p=152280

This is suppost to replace what I told you to put in the instructions, not just add it.

glenvw 11-25-2004 03:27 PM

Quote:

Originally Posted by Abe1
This is suppost to replace what I told you to put in the instructions, not just add it.

I did that. I replaced it. It doesn't work.

Abe1 11-25-2004 03:35 PM

Quote:

Originally Posted by glenvw
I did that. I replaced it. It doesn't work.

Ok then, you'll have to wait until I test it out.

Abe1 11-25-2004 03:40 PM

Quote:

Originally Posted by glenvw
I did that. I replaced it. It doesn't work.

I just tested it, It works perfectly. The thank you button only shows up on the first post of a thread.


All times are GMT. The time now is 12:07 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.02611 seconds
  • Memory Usage 1,849KB
  • 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
  • (4)bbcode_html_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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