PDA

View Full Version : [AJAX] Post Thank You Hack


Pages : [1] 2 3 4

Abe1
07-17-2005, 10:00 PM
Post Thank You Hack 4.5


Click here for the vb3.6 version of this hack.

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 maxUpdates:

Version 2.0 GOLD (10/02/05):

GOLD Release of this hack for vBulletin version 3.5Version 2.1 (10/23/05):

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_amountVersion 2.2 (10/23/05):

[ADDED] Re-counters. Found under Maintenance->Update Counters in your ACP.Version 2.3 (11/05/05):

[ADDED] Cache TemplatesVersion 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.

[B]MAKE SURE YOU CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=92410)!
You will get an email when a new version is released.

Pictures:

Showing the 'thanks' button and stats in Postbit
Showing post after 'thanks' (user view)
Showing post after 'thanks' (admin view)
Showing post after 'thanks' with legacy posts (admin view)
Stats in members profile and link
Link in Search drop down menu
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 (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bigware%40gmail%2ecom&item_name=Donation%20for%20Post%20Thank%20You%20Ha ck&no_shipping=0&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)

-=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
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
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
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: 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
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
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 (http://www.vbulletin.com/forum/showthread.php?t=148082&highlight=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
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
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 (http://www.vbulletin.com/forum/showthread.php?t=148082&highlight=unplug) with all future plugins, in case someone has the same problem :nervous:

mholtum
07-26-2005, 11:22 PM
Might be a good idea to provide a copy of the unplug / deplug (http://www.vbulletin.com/forum/showthread.php?t=148082&highlight=unplug) 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
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
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
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
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
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
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
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
@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
http://validator.w3.org :)

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

Abe1
09-11-2005, 05:20 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.

Basicly incorpeate it with another hack. Can I have the link to the hidden hack or something like that?

bleodler
09-11-2005, 07:19 PM
Basicly incorpeate it with another hack. Can I have the link to the hidden hack or something like that?

Here is a hack that hides whatever is between tags until the user replies to the thread. https://vborg.vbsupport.ru/showthread.php?t=90985

I would like to keep track of which users get access to the hidden info, but the hack I linked to above adds lots of useless replies, so I think adding something like that to this hack would be a more elegant solution.

MrGoodbyte
09-29-2005, 11:26 AM
Sorry to tell you that, but this hack doesn't work in 3.5.0 gold .. installation works correctly, but neither the button nor the postbits are shown ...

https://vborg.vbsupport.ru/

Abe1
09-29-2005, 01:33 PM
Sorry to tell you that, but this hack doesn't work in 3.5.0 gold .. installation works correctly, but neither the button nor the postbits are shown ...

https://vborg.vbsupport.ru/

Did you do the template edits?

ukbill69
09-30-2005, 10:38 AM
See attached, I want to make my forums (thankyou1.gif) look like thankyou2.gif

How can I do this?

SecTa
10-01-2005, 10:25 AM
Greets. Will there be an update for 3.5 Gold in nearest future?

Abe1
10-01-2005, 11:18 PM
Greets. Will there be an update for 3.5 Gold in nearest future?

Yes. i should have one out any day now. Hopfully by tomorrow night.

Abe1
10-02-2005, 03:14 AM
Version 2.0 GOLD released.

If you are using a 2.0 beta version, just upload the Product XML. You may want to re-do the template edits since they were changed a little.

If you are using 1.10 now, just upgrade your forum normally, and install this hack like it's a FRESH installation. You wont over write all the thanks that are there already.

There were no new features added to this version.

Sezmarone
10-02-2005, 04:03 AM
Nice!

Colejo
10-02-2005, 04:16 AM
Version 2.0 GOLD released.

If you are using a 2.0 beta version, just upload the Product XML. You may want to re-do the template edits since they were changed a little.

If you are using 1.10 now, just upgrade your forum normally, and install this hack like it's a FRESH installation. You wont over write all the thanks that are there already.

There were no new features added to this version.

When I try to upload the product xml I get this error. I have it set to yes to overwrite.

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1

It was a bit long so I took out the middle part of the error.

Valter
10-02-2005, 04:17 AM
I have problem when merging threads. It shows some error at the top of page until I remove thanks posts from thread.
Still have this problem.

Post Thanks 2.0 Gold - vB 3.5 Final

Tulsa
10-02-2005, 04:37 AM
I found the same issue as Colejo.

Abe1
10-02-2005, 04:46 AM
When I try to upload the product xml I get this error. I have it set to yes to overwrite.

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1

It was a bit long so I took out the middle part of the error.

Hmmm.... This seems like a vB error. It should check to see if settings are in already. The settings are being added using the xml style. Try to remove the settings from the xml and re-upload.

Abe1
10-02-2005, 04:46 AM
Still have this problem.

Post Thanks 2.0 Gold - vB 3.5 Final

I didn't add any new features or try to fix complex things yet. When I have the time, i'll try to do this.

Colejo
10-02-2005, 04:50 AM
I didn't add any new features or try to fix complex things yet. When I have the time, i'll try to do this.

Ok. Thanks. I disabled and then re-enabled it and now it seems to work.

Colejo
10-02-2005, 04:55 AM
Well almost working. It shows the Thank you button and when I click on it, it adds a thanked to the user I thank but it doesn't have the message under their post that says they were thanked by me.

Abe1
10-02-2005, 04:56 AM
Well almost working. It shows the Thank you button and when I click on it, it adds a thanked to the user I thank but it doesn't have the message under their post that says they were thanked by me.

Is the 3rd template edit for postbit there?

Colejo
10-02-2005, 04:59 AM
Should I still be able to view the post_thanks_acp.php page because it gives me this error:

Fatal error: Call to undefined function: globalize() in /home/public/forum/admincp/post_thanks_acp.php on line 41

Colejo
10-02-2005, 05:00 AM
Is the 3rd template edit for postbit there?

Yeah. I went through twice to make sure I didn't miss any. I can look again though.

Abe1
10-02-2005, 05:00 AM
Should I still be able to view the post_thanks_acp.php page because it gives me this error:

Fatal error: Call to undefined function: globalize() in /home/public/forum/admincp/post_thanks_acp.php on line 41

No. The recount thanks amount page was not updated.

Abe1
10-02-2005, 05:01 AM
Yeah. I went through twice to make sure I didn't miss any. I can look again though.

Does it still show you the "thank" button?

Colejo
10-02-2005, 05:05 AM
Does it still show you the "thank" button?

It shows the thank you button but when you thank them it doesn't show anymore. It just doesn't show the message that they were thanked.

Abe1
10-02-2005, 05:07 AM
It shows the thank you button but when you thank them it doesn't show anymore. It just doesn't show the message that they were thanked.

Interesting. I dont know why. Can you unistall then re-install?

Colejo
10-02-2005, 05:24 AM
I don't see a post_thanks_users_say phrase like I used to have.

Abe1
10-02-2005, 05:28 AM
I don't see a post_thanks_users_say phrase like I used to have.

Did you upload the XML into products (Like you should)?????? or plugins?

Colejo
10-02-2005, 05:32 AM
Did you upload the XML into products (Like you should)?????? or plugins?

I'm sorry I said that wrong. It does have the phrase. I just don't see in the instructions where that is applied in the postbit.

Colejo
10-02-2005, 05:46 AM
I'll just try it again later.

bonnmac
10-02-2005, 05:36 PM
i'm getting this error when importing product the error comes up as soon as starting install but the install bar keeps running and running.........

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'0',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'1',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Sunday, October 2nd 2005 @ 02:24:30 PM

SecTa
10-02-2005, 06:20 PM
Here's my error message, hope it'll help to figure out the issue:
Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO vb3_setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'21|19|22|15|25|32|33|34|35|37|38|39|40|41|27|5',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'1',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'1|3|8',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Sunday, October 2nd 2005 @ 09:13:41 PM
Script : http://localhost/forum/admincp/plugin.php
Referrer : http://localhost/forum/admincp/plugin.php?do=productadd
IP Address : 127.0.0.1
Username : ***
Classname : vb_database
vB 3.5 Gold, updated from 3.0.6, without Post Thank Yoy hack uninstallaton...

Abe1
10-02-2005, 07:14 PM
Here's my error message, hope it'll help to figure out the issue:
Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO vb3_setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'21|19|22|15|25|32|33|34|35|37|38|39|40|41|27|5',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'1',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'1|3|8',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Sunday, October 2nd 2005 @ 09:13:41 PM
Script : http://localhost/forum/admincp/plugin.php
Referrer : http://localhost/forum/admincp/plugin.php?do=productadd
IP Address : 127.0.0.1
Username : ***
Classname : vb_database
vB 3.5 Gold, updated from 3.0.6, without Post Thank Yoy hack uninstallaton...

Yes, I know this problem. I posted on thop of the main post that there is a problem with the upgrade. I will work on it soon.

Colejo
10-02-2005, 10:13 PM
Mine is working now.

Abe1
10-02-2005, 10:55 PM
bonnmac, SecTa, or anyone that would like to upgarde this hack from vb3.0 to vb3.5, can you AIM me @ abec4p ?

I have a fix and would like someone to test it first before I release it.

Abe1
10-03-2005, 12:55 AM
Anyone having a problem upgrading to this version from 1.10, Run the following queries before:
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';

bonnmac
10-03-2005, 06:21 AM
Anyone having a problem upgrading to this version from 1.10, Run the following queries before:
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';
ok i ran the queries and my problem is solved thank you very much abe your just great!! it works fine now

Brandon Sheley
10-03-2005, 06:35 AM
i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?

bonnmac
10-03-2005, 06:41 AM
i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?
the 2 errors are from having it installed on 3.0X then upgrading to 3.5 if you had this installed on previous board and did upgrade run the queries in abes last post and you will have no problem works great!!

SecTa
10-03-2005, 09:00 AM
Abe1, i got folloing errors, when running your query:
in admin CP:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thank

in phpmyadmin
Error

SQL-query:

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = ''

MySQL said: Documentation
#1146 - Table 'hqsharen.setting' doesn't exist

Unfortunately, i don't have AIM account, Abe1 do you have icq or msn?

Abe1
10-03-2005, 12:10 PM
Abe1, i got folloing errors, when running your query:
in admin CP:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thank

in phpmyadmin
Error

SQL-query:

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = ''

MySQL said: Documentation
#1146 - Table 'hqsharen.setting' doesn't exist

Unfortunately, i don't have AIM account, Abe1 do you have icq or msn?

Dont run all 4 together. Run one at a time.

thedvs
10-03-2005, 12:15 PM
Using vb 3.5
Imported the product
did the edits

The thanks button doesn't show up at all & I have no idea what is wrong

Abe1
10-03-2005, 12:24 PM
i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?

Yes. You will have no errors installing it. The errors you see are from upgrading from vb3.0 to vb3.5 and they were resolved even.

ctsolutions
10-03-2005, 06:22 PM
many thanks for this hack, is very usefull.

Mike

Bubble #5
10-03-2005, 11:20 PM
Great hack Abe!

Too bad they don't use it here on vB.org so we could use it to THANK YOU for this awsome hack :)

Tulsa
10-04-2005, 04:42 AM
Cured my problem with it.

Thanks Abe!

Doc Great
10-04-2005, 05:32 AM
Really nice hack, i used it since 3.0.7 but i forgott to uninstall before updating to 3.5 Gold, now i get a SQL-Error when i klick "thanks"
Datenbankfehler in vBulletin 3.5.0:

Invalid SQL:

UPDATE user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times
WHERE userid =;

MySQL-Fehler : 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 '' at line 3
Fehler-Nr. : 1064
Datum : Tuesday, October 4th 2005 @ 08:26:24 AM
Skript : http://www.emuleboard.net/showthread.php?t=3085&page=52
Referrer : http://www.emuleboard.net/mitarbeiter-forum/3085-der-team-talk-thread-52.html#post84457
IP-Adresse : 62.225.xxxxx
Benutzername : Doc Great
Klassenname : vb_database
I run the queries from the (un)install-script (3.0.x) manually, also the ones from this thread ....

q8-star
10-04-2005, 11:14 AM
Great hack ,installed .

But ,I'm having difficult times trying to translate some phrase because I just can't find them from "find phrases" in ACP .Do you have an easy way to locate the phrases and translate them ,because I'm sure I didn't find them in the XML file also .

My regards ,,,

bpn
10-04-2005, 08:48 PM
Using vb 3.5
Imported the product
did the edits

The thanks button doesn't show up at all & I have no idea what is wrong


I have exactly the same problem...have uninstalled & reinstalled without luck.
Do you have any idea what the problem is ?

bonnmac
10-04-2005, 08:57 PM
I have exactly the same problem...have uninstalled & reinstalled without luck.
Do you have any idea what the problem is ?
have you uploaded the thanks gif to your imades/buttons folder of each of you skins???

bpn
10-04-2005, 09:03 PM
have you uploaded the thanks gif to your imades/buttons folder of each of you skins???

Yes, and I have checked the html sourcecode for the thanks code, but nothing at all is there, and I have also enabled the thanks function in the options menu.

bpn
10-04-2005, 09:15 PM
Yes, and I have checked the html sourcecode for the thanks code, but nothing at all is there, and I have also enabled the thanks function in the options menu.


Ahh, found the error I think. When I save the thanks code in default template, the childs are not being updated as they should. A few of the postbit templates are missing the thanks code.

Guess I have to edit all my styles 1 by 1 instead..

bpn
10-04-2005, 09:39 PM
Ahh, found the error I think. When I save the thanks code in default template, the childs are not being updated as they should. A few of the postbit templates are missing the thanks code.

Guess I have to edit all my styles 1 by 1 instead..

Actually, can anybody tell me why it doesnt save my childs like it should ?
It seems like it's only the postbit templates, and not the other ones there are problems with.

I have tried to rebuild my styles from the 'update counters' menu, but nothing seems to help.

Bubble #5
10-04-2005, 09:48 PM
Yes. You will have no errors installing it.
Hi Abe. We installed this on a brand new 3.5 gold and now we are recieving this error whenever a post is made:

Warning: file_get_contents(/forum/includes/blacklist.txt): failed to open stream: No such file or directory in /includes/functions_newpost.php(333) : eval()'d code on line 50
We looked on the server and the file named functions_newpost.php does appear to be there. How should we correct this? Thanks.

Bubble #5
10-05-2005, 12:27 AM
Hi Abe. We installed this on a brand new 3.5 gold and now we are recieving this error whenever a post is made
OK we fixed it. Somehow another file from another hack got deleted. Turns out it had nothing to do with this hack... All is well :)

csidlernet
10-05-2005, 02:08 AM
thankyou verymuch!

Abe1
10-05-2005, 11:43 PM
Really nice hack, i used it since 3.0.7 but i forgott to uninstall before updating to 3.5 Gold, now i get a SQL-Error when i klick "thanks"

I run the queries from the (un)install-script (3.0.x) manually, also the ones from this thread ....

It looks like it's not picking up the Userid. I'm not sue why. I need more info.

Doc Great
10-06-2005, 04:47 AM
Good morning Abe1

please tell me what you want me to do. I installed strict by manual.

Abe1
10-06-2005, 05:27 AM
Good morning Abe1

please tell me what you want me to do. I installed strict by manual.

Can you log onto ICQ now or tell me what the link is that you click on before you get the error?

Doc Great
10-06-2005, 06:16 AM
Ok ICQ ist bad, im in the office now. But the error occures every time i klick any post to thank. Before installing the new version (i did it two times) i run these queries (and the ones in the manual):

DROP TABLE IF EXISTS post_thanks;
ALTER TABLE `user` DROP `post_thanks_user_amount`;
ALTER TABLE `post` DROP `post_thanks_amount`;
ALTER TABLE `user` DROP `post_thanks_thanked_posts`;
ALTER TABLE `user` DROP `post_thanks_thanked_times`;
DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' LIMIT 1;
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks';

Abe1
10-06-2005, 06:22 AM
Ok ICQ ist bad, im in the office now. But the error occures every time i klick any post to thank. Before installing the new version (i did it two times) i run these queries (and the ones in the manual):

DROP TABLE IF EXISTS post_thanks;
ALTER TABLE `user` DROP `post_thanks_user_amount`;
ALTER TABLE `post` DROP `post_thanks_amount`;
ALTER TABLE `user` DROP `post_thanks_thanked_posts`;
ALTER TABLE `user` DROP `post_thanks_thanked_times`;
DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' LIMIT 1;
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks';

There was no reason to run this. Anyways, now unistall the product and then re-install it. Also, after you unistall the product, rn the 4 queries I meantion to run if you are upgrading.

RS_Jelle
10-07-2005, 07:07 PM
Great hack, I've installed it again after the upgrade to 3.5 :cool:
But ... I've got a little problem: you see the users who thanked someone double.
Like: "The Following User Says Thank You to xxxx For This Useful Post: Remove All
yyyy (07-10-05) yyyy (07-10-05)"

Abe1
10-09-2005, 04:54 AM
Great hack, I've installed it again after the upgrade to 3.5 :cool:
But ... I've got a little problem: you see the users who thanked someone double.
Like: "The Following User Says Thank You to xxxx For This Useful Post: Remove All
yyyy (07-10-05) yyyy (07-10-05)"

Can you get me a pic?

Doc Great
10-09-2005, 06:55 AM
There was no reason to run this. Anyways, now unistall the product and then re-install it. Also, after you unistall the product, rn the 4 queries I meantion to run if you are upgrading.
No chance, same problem like before ....

NuclioN
10-09-2005, 09:03 AM
Installed! Very clever and nice. :)

Katman
10-11-2005, 02:35 PM
*FIXED*

ukbill69
10-15-2005, 10:54 AM
No one no?
https://vborg.vbsupport.ru/showpost.php?p=782529&postcount=45

drumforum
10-17-2005, 03:42 PM
Thank you sooo much!!!!

great!

this was top hack on 3.0.7 and I was getting so many PM's to get it back, and finally i have found it again :):):)

thank youuuu!

drumforum
10-17-2005, 04:37 PM
Thank you sooo much!!!!

great!

this was top hack on 3.0.7 and I was getting so many PM's to get it back, and finally i have found it again :):):)

thank youuuu!

awww nooo, on the hack I really wanted to work, I get this:

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM vb_post_thanks WHERE threadid='524' ORDER BY username ASC;

MySQL Error : Unknown column 'threadid' in 'where clause'
Error Number : 1054
Date : Monday, October 17th 2005 @ 06:22:59 PM

help?

dai-kun
10-18-2005, 05:54 AM
So is there any news on incorporating this hack with the hide hack?
Maybe with this one (https://vborg.vbsupport.ru/showthread.php?t=97366)?

Doc Great
10-18-2005, 08:21 AM
The problem was found, it's vBSEO, but it will be fixed with release of 2.1 (soon). So no bug @thanks-bot :D

drumforum
10-20-2005, 11:58 AM
awww nooo, on the hack I really wanted to work, I get this:


help?

bumpp

Abe1
10-20-2005, 01:40 PM
bumpp

You mostlikely upgraded from a pre 1.10 version to version 2.0. Version 1.10 stared using threadid's to pull thanks and not post id's. A new column was created then and the upgrade script updated all thanks in include the thread id's. I dont have an upgrade script from that time. I recommend uninstall then re-install.

q8-star
10-20-2005, 10:17 PM
Hi Abe1 ...

The hack is great but I'm facing right now one problem in translating the hack.
As you can see from the attached picture there is that 2 phrases that I found nothing about them in the phrase search ,I hope you help me to find a way for it.

glorify
10-21-2005, 01:20 AM
Got my first erors with this. My users love it and complained when it was off the forums for awhile. Reinstalled in 3.5 and have had no problems (month) until tonight when I merged two threads. I get:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 125

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 135

Went to the plugin manager and disabled the thank you hack from the postbit. No errors. Any ideas?

Abe1
10-21-2005, 01:26 AM
Hi Abe1 ...

The hack is great but I'm facing right now one problem in translating the hack.
As you can see from the attached picture there is that 2 phrases that I found nothing about them in the phrase search ,I hope you help me to find a way for it.

Search just 'Post' or just 'thanks'.

Abe1
10-21-2005, 01:27 AM
Got my first erors with this. My users love it and complained when it was off the forums for awhile. Reinstalled in 3.5 and have had no problems (month) until tonight when I merged two threads. I get:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 125

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 135

Went to the plugin manager and disabled the thank you hack from the postbit. No errors. Any ideas?

Did you only get it once, or always get now? I definetly have to work on the merging and spliting thread.

MarsNIIT
10-21-2005, 11:51 AM
I need when users say 'thanks' , his post will + post

Abe1
10-21-2005, 11:53 AM
I need when users say 'thanks' , his post will + post

There is an option in the ACP under Post Thanks Hack options.

glorify
10-22-2005, 12:14 AM
Did you only get it once, or always get now? I definetly have to work on the merging and spliting thread.

I get it always now. See here:

http://www.glorifythepast.com/forums/showthread.php?t=8444

vibe
10-22-2005, 03:06 AM
I saw thank you under user's avatar, in search, and member info but not within post, don't see any button. Your instruction was followed "exactly". I have double checked and redo everything 3 times.
I double, triple checked everything and still no button.

Am I missing something?
Oh I'm using 3.5 gold

dai-kun
10-22-2005, 06:53 AM
when a regular user thanks a person.. and i have the settings to give the thanked person +1 rep, well, a regular user can choose the "remove your thanks" option and then thank again and then remove then thank. Then the person keep on getting +1 rep (it also +1 post for every thanks that person gives if that option is on)... might wanna fix that?

Valter
10-22-2005, 11:06 AM
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.
Hi Abe1

Anything new about this?

Cyb

q8-star
10-22-2005, 09:14 PM
Search just 'Post' or just 'thanks'.
Tried this one ,still doesn't work ... I'm sure you didn't use phrases for this two.
One more problem :nervous: ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Best regards ,,,

vibe
10-22-2005, 11:44 PM
Tried this one ,still doesn't work ... I'm sure you didn't use phrases for this two.
One more problem :nervous: ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Best regards ,,,

Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

Abe1
10-22-2005, 11:50 PM
when a regular user thanks a person.. and i have the settings to give the thanked person +1 rep, well, a regular user can choose the "remove your thanks" option and then thank again and then remove then thank. Then the person keep on getting +1 rep (it also +1 post for every thanks that person gives if that option is on)... might wanna fix that?

I'll look into.

Abe1
10-22-2005, 11:52 PM
Hi Abe1

Anything new about this?

Cyb
Not yet. I'm realy busy latelly.

Abe1
10-22-2005, 11:53 PM
Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

This is a good point. I will try to move over to phases for next version.

smokering
10-23-2005, 05:06 AM
thanks need one of these preciate the hard work here

q8-star
10-23-2005, 10:02 AM
Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

You are absulutely right ,it works ... well for the postbit right now ...but I got the idea ... THANKS MAN ....

ON more thing for Abe1
I included the following from my last post:
One more problem ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Anything about that ...??

Abe1
10-23-2005, 10:31 AM
You are absulutely right ,it works ... well for the postbit right now ...but I got the idea ... THANKS MAN ....

ON more thing for Abe1
I included the following from my last post:


Anything about that ...??

Please explain that last thing more.

Abe1
10-23-2005, 03:14 PM
I saw thank you under user's avatar, in search, and member info but not within post, don't see any button. Your instruction was followed "exactly". I have double checked and redo everything 3 times.
I double, triple checked everything and still no button.

Am I missing something?
Oh I'm using 3.5 gold

You dont see a button since it maybe your post. The button will not show on a post made by you.

Abe1
10-23-2005, 04:03 PM
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

There are 2 template changes for upgrading found in a text file in the zip.

Abe1
10-23-2005, 04:08 PM
Also, The 2 main templates were edited alittle to accomidate the new phrase 'post_thanks_user_says'.

o0Hubba0o
10-23-2005, 04:40 PM
nvm I think I know what I did, I'll get back to you heh.

Carl Anderson
10-23-2005, 04:42 PM
I went over the entire install a few times and made sure the button was uploaded - have the plugin enabled and went into vboptions admin and made sure it was on and nothing? I am not looking at posts that I made - so that is not it?

I am stumped... any ideas?

Abe1
10-23-2005, 05:02 PM
I just updated the zip with a new xml file that fixes 2 things.

Abe1
10-23-2005, 05:08 PM
Anyone who updating before this file fix, lost the amount of thanks all the users had. I will try to release the re-count file ASAP.

Carl Anderson
10-23-2005, 05:25 PM
Guess I will uninstall.................... tried new files

o0Hubba0o
10-23-2005, 05:29 PM
I just updated the zip with a new xml file that fixes 2 things.
Thank you, that fixed my problem, I couldn't view new pm's.

q8-star
10-23-2005, 06:41 PM
Please explain that last thing more.
Here is the post where problem explained:
One more problem ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....
To explain more it says (Thanked 1 Time ,0 Post) ,but ,it seems you have fixed that here (https://vborg.vbsupport.ru/showpost.php?p=802877&postcount=130).
I'll download the update and come back if the problem still there .

Abe1
10-23-2005, 06:44 PM
Here is the post where problem explained:

To explain more it says (Thanked 1 Time ,0 Post) ,but ,it seems you have fixed that here (https://vborg.vbsupport.ru/showpost.php?p=802877&postcount=130).
I'll download the update and come back if the problem still there .

I'm in middle of woking on the re-counts. Should come out in a few hours.

Abe1
10-23-2005, 07:04 PM
Re-counters now added.

vibe
10-23-2005, 07:26 PM
You dont see a button since it maybe your post. The button will not show on a post made by you.

Not just my post I've tried testing it with others also.

However when I did 2.1a update $vbphrase[post_thanks_thanks] shows under the post instead of an image. So close.....man. Can you help?

post_thanks.gif is placed within buttons folder under my style, images folder.

Abe1
10-23-2005, 07:31 PM
Not just my post I've tried testing it with others also.

However when I did 2.1a update $vbphrase[post_thanks_thanks] shows under the post instead of an image. So close.....man. Can you help?

post_thanks.gif is placed within buttons folder under my style, images folder.

There are 3 edits in the postbit template. Make sure their all by the right spot.

Valter
10-23-2005, 07:41 PM
Nice update, thanks.

Markco
10-23-2005, 08:07 PM
I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:

Valter
10-23-2005, 09:23 PM
I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:
Same error :(

Tulsa
10-23-2005, 09:35 PM
I have that same error.

Valter
10-23-2005, 10:24 PM
To fix this problem open template post_thanks_postbit_legacy

Find:
<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>

And replace it with:
<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>


:)

Tulsa
10-23-2005, 10:40 PM
To fix this problem open template post_thanks_postbit_legacy

Find:
<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>

And replace it with:
<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>


:)

That did it! :) Thanks...

Abe1
10-23-2005, 11:07 PM
I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:

The zip has been updated. Just re-upload the product xml.

vibe
10-23-2005, 11:21 PM
How do I put a small gif on top of the message, want to make it stand out a little more. Please see attachment.

Abe1
10-23-2005, 11:26 PM
How do I put a small gif on top of the message, want to make it stand out a little more. Please see attachment.

Edit the post_thanks_legacy tempate.

Akutenshii
10-24-2005, 12:40 AM
My error is strangely different.. I am getting the thanks box directly under the expanded thread view, and then multiple thanks boxes...

Please advise... also... where would I change the font for the text, and what if I did not want the thanks to be removed.. is there a simple modification for that?

Abe1
10-24-2005, 02:16 AM
My error is strangely different.. I am getting the thanks box directly under the expanded thread view, and then multiple thanks boxes...

Please advise... also... where would I change the font for the text, and what if I did not want the thanks to be removed.. is there a simple modification for that?

Can you post a picture?

Markco
10-24-2005, 03:51 AM
The zip has been updated. Just re-upload the product xml.Ok thank's

Akutenshii
10-24-2005, 05:17 PM
Ok. correcting the code fixed the location issue... still, I am interested in disabling the 'remove thanks' link. Is it possible to change the code slightly to disable this? Once thanked I do not desire for the thanks to be removed.

Uh...thanks. *smiles*

Abe1
10-24-2005, 08:34 PM
Ok. correcting the code fixed the location issue... still, I am interested in disabling the 'remove thanks' link. Is it possible to change the code slightly to disable this? Once thanked I do not desire for the thanks to be removed.

Uh...thanks. *smiles*

You can delete the option in the template. Go to your templates and edit the post_thanks ones removing that option.

Stussi
10-25-2005, 08:33 AM
Hey Abe1!

Great Hack!!

But there's one Problem... the option to turn the Hack in specific Forums off is for our purposes senseless.
We want to turn the hack only in some Forums on and not off.
Otherwise we have to exclude 200 Forum IDs.....

Do you have an Idea?

Edit says:

I solved the problem by myself... this Hack ROCKS!! :D :)

ombossman
10-26-2005, 08:48 AM
what is this problem and how to solve this problem please tell me

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_forum_off' for key 1
Error Number : 1062
Date : Wednesday, October 26th 2005 @ 11:06:15 AM

Stussi
10-26-2005, 08:53 AM
See instructions.txt ;)

NOTE: IF YOU ARE UPGRADING FROM A PRE 2.0 VERSION THAT WAS RUNNING ON A vBulletin v3.0 FORUM, RUN THESE 4 QUERIES MANUALY NOW.
--------------------------------------------------------------------

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';

ombossman
10-26-2005, 09:12 AM
See instructions.txt ;)

NOTE: IF YOU ARE UPGRADING FROM A PRE 2.0 VERSION THAT WAS RUNNING ON A vBulletin v3.0 FORUM, RUN THESE 4 QUERIES MANUALY NOW.
--------------------------------------------------------------------

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';

thanks for reply my post i try this method but have another error


here error

subnet_rx
10-26-2005, 06:41 PM
Can you make this go through the usual reputation process (i.e. reputation_add_process) so that reputation rules are followed as well as code from other plugins run as well (such as uCash)

Abe1
10-26-2005, 11:03 PM
thanks for reply my post i try this method but have another error


here error

Try;
DELETE FROM setting WHERE grouptitle = 'post_thanks' AND product = '';

DELETE FROM settinggroup WHERE grouptitle = 'post_thanks' AND product = '';

DELETE FROM phrase WHERE varname LIKE '%post_thanks%' AND product = '';

DELETE FROM template WHERE title LIKE '%post_thanks%' AND product = '';

ombossman
10-27-2005, 03:01 PM
thanks Abe1 for reply my post

i try above codes but no result

please look my pic. tell me howto solve this problem

Abe1
10-28-2005, 02:14 AM
thanks Abe1 for reply my post

i try above codes but no result

please look my pic. tell me howto solve this problem

I have no clue. If you give me access to phpmyadmin, i can manual delete was has to be deleted.

ombossman
10-28-2005, 07:46 AM
I have no clue. If you give me access to phpmyadmin, i can manual delete was has to be deleted.


thanks abe check your pm i send my site acces please check my site any bugs any error again thanks adwance

Makaveli105
10-28-2005, 08:05 AM
great hack:D id also be very interested combining this hack with the hidden content hack

TJFweb
10-29-2005, 01:09 PM
Edit! Managed to integrate it with uCash ;-)

mfizzel
10-29-2005, 03:12 PM
Abe1 thank you for all of your work, this mod is the most used one on my board.

I just upgraded from 3.0.7 to 3.5 and installed this...I was worried that all of the 'thanks' stats wouldn't convert but the upgrade went flawlessly, thanks again.

divided_by_fear
10-30-2005, 02:37 AM
is there anyway to make the pages cached? cause i get Uncached templates: post_thanks_postbit_legacy

Abe1
10-30-2005, 02:41 AM
is there anyway to make the pages cached? cause i get Uncached templates: post_thanks_postbit_legacy

I will try to fix it for next version.

divided_by_fear
10-30-2005, 02:42 AM
thank you very much... love the hack though its sweet..

ombossman
10-31-2005, 08:18 AM
thank you very much...realy good man

mfizzel
11-01-2005, 08:32 PM
My template isn't caching either, it's adding 1 query to every thread : Uncached templates: post_thanks_postbit (1)

mfizzel
11-02-2005, 04:31 PM
Could I make a request? Don't know if it would be possible but if you could integrate AJAX technology with this and make it to where thanking a post didn't need a page refresh...that would be INCREDIBLE !!

Tulsa
11-05-2005, 12:32 AM
What would really be useful would be a "GROAN" button to go along side the thank you button.

mfizzel
11-05-2005, 01:16 AM
What would really be useful would be a "GROAN" button to go along side the thank you button.

yea or like a 'dumbass' button that could be configured to take away a rep point.

Abe1
11-05-2005, 09:56 PM
What would really be useful would be a "GROAN" button to go along side the thank you button.

LOVE THE IDEA! maybe in the future some time.

Abe1
11-05-2005, 10:21 PM
Version 2.3 (11/5/05):

[ADDED] Cashe Templates

C_P
11-06-2005, 03:50 AM
I wish there was a "Thank You" button for this one. Great job and easy install!

*Update, Am I losing it? I clicked on thanks button to thank someone and it worked fine all around. BUT now, I go to any boards and there is no thanks button anymore... anywhere. I have not blocked any user groups of forums from seeing it either!
I then thought it may be due to me adding one and I removd the thanks I did and still do not see it on my forums?
Ideas Abe?

*Update #2 now they are all back??? What is going on? Is there some kind of wait limit or cache issue with these?

Abe1
11-06-2005, 04:16 AM
I wish there was a "Thank You" button for this one. Great job and easy install!

*Update, Am I losing it? I clicked on thanks button to thank someone and it worked fine all around. BUT now, I go to any boards and there is no thanks button anymore... anywhere. I have not blocked any user groups of forums from seeing it either!
I then thought it may be due to me adding one and I removd the thanks I did and still do not see it on my forums?
Ideas Abe?

Did you make the template changes to ALL your styles?

C_P
11-06-2005, 05:09 AM
No, just default wich is the only one we use but will do.

Abe1
11-06-2005, 05:17 AM
I wish there was a "Thank You" button for this one. Great job and easy install!

*Update, Am I losing it? I clicked on thanks button to thank someone and it worked fine all around. BUT now, I go to any boards and there is no thanks button anymore... anywhere. I have not blocked any user groups of forums from seeing it either!
I then thought it may be due to me adding one and I removd the thanks I did and still do not see it on my forums?
Ideas Abe?

*Update #2 now they are all back??? What is going on? Is there some kind of wait limit or cache issue with these?

If it's YOUR post, or you ALREADY thanked a post, you wont see the 'thanks' button.

Abe1
11-07-2005, 04:26 AM
Version 2.4 (11/07/05):

[ADDED] Setting to disallow users from deleting thier own thanks.


(As per a request.)

Avalon111
11-07-2005, 04:44 AM
i realy like this extension but it has one big dissadvantage in my case.

i have to exclude 34 forums!

i think that it would be a good idea to use the Forum Manager to activate or deactivate this extension.
When editing a Forum in the Forum Manager i would just need a option called "Post Thank you Hack enabled in this Forum: Yes, No"
That would make it much easier to control if it is enabled in a from. searching the Froum ID and adding it into the excluded list is realy painful.

emtee
11-07-2005, 05:29 AM
When will this Thank You Hack integrate with one of the Hide Hack for vB3.5, if possible ? It's the only thing keep me from installing. I know a lot of others want this integration feature too, so it would be nice to have it implemented in version Thank You Hack 2.5 or even Thank You Hack 3.0.

Abe1, can you integrate this with the hide hack? I will pay for it just to show my appreciation. Thank you.

Abe1
11-07-2005, 10:06 AM
i realy like this extension but it has one big dissadvantage in my case.

i have to exclude 34 forums!

i think that it would be a good idea to use the Forum Manager to activate or deactivate this extension.
When editing a Forum in the Forum Manager i would just need a option called "Post Thank you Hack enabled in this Forum: Yes, No"
That would make it much easier to control if it is enabled in a from. searching the Froum ID and adding it into the excluded list is realy painful.

Sounds like a good idea. I'll see what I can do.

Abe1
11-07-2005, 10:07 AM
When will this Thank You Hack integrate with one of the Hide Hack for vB3.5, if possible ? It's the only thing keep me from installing. I know a lot of others want this integration feature too, so it would be nice to have it implemented in version Thank You Hack 2.5 or even Thank You Hack 3.0.

Abe1, can you integrate this with the hide hack? I will pay for it just to show my appreciation. Thank you.

Can you give me the link to it?

Avalon111
11-07-2005, 11:01 AM
Sounds like a good idea. I'll see what I can do.
thanks! :)

stinger2
11-07-2005, 11:57 AM
great abe1...waiting for this integration..

mfizzel
11-07-2005, 09:06 PM
On my forum I've been thanked 1700 something times - it says 'Thanked 1794 Times in 510 Posts' - How can I make it use commas ie - 1,794 instead of 1794 ??

Abe1
11-07-2005, 09:12 PM
On my forum I've been thanked 1700 something times - it says 'Thanked 1794 Times in 510 Posts' - How can I make it use commas ie - 1,794 instead of 1794 ??

I'll have to look into it.

mfizzel
11-07-2005, 09:36 PM
Thanks Abe :)

Abe1
11-07-2005, 10:03 PM
On my forum I've been thanked 1700 something times - it says 'Thanked 1794 Times in 510 Posts' - How can I make it use commas ie - 1,794 instead of 1794 ??

I implemented by adding 2 new hooks to the hack. One for the postbit and one for the member info page. It will be in next version's release. I want to first see if I'll be adding any of these other requests right now.

It uses the forum's defaut settings to see howit should format the number.

mutawa
11-09-2005, 08:24 PM
Thank you Abe1 very clean code, I installed it and working fine.

I wish I could change the thank you message or translate it to other language since I'm running my forum on a different language.

How can I access and change the thank you message?

Abe1
11-09-2005, 11:47 PM
Thank you Abe1 very clean code, I installed it and working fine.

I wish I could change the thank you message or translate it to other language since I'm running my forum on a different language.

How can I access and change the thank you message?

They are all phases. Search for them.

Abe1
11-09-2005, 11:55 PM
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)

Makaveli105
11-10-2005, 04:57 AM
Can you give me the link to it?

the maker hasnt supported it or posted, there are quite a few bugs in it..

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

theres also a new one at vbstyles, but they want to keep it there, and it doesnt work on my forum anyway:S

ID LOVE TO SEE THIS HACK WITH THE HIDE HACK! :nervous: its the only thing keeping me from installing

Thanks Abe

havefun
11-10-2005, 12:34 PM
working fine, THX Abe1 :)

Sean James
11-10-2005, 02:00 PM
Great work *clicks install*

mfizzel
11-10-2005, 02:10 PM
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)

awesome, thanks :D

mfizzel
11-10-2005, 02:16 PM
how do we upgrade from 2.2 to 2.5? do we just import and overwrite the xml?

Abe1
11-10-2005, 05:48 PM
how do we upgrade from 2.2 to 2.5? do we just import and overwrite the xml?

Yes.

G0F0RBR0KE
11-10-2005, 06:43 PM
I've modify the template but nothing showing.

Abe1
11-10-2005, 06:47 PM
I've modify the template but nothing showing.

What happens when it's not modified?

G0F0RBR0KE
11-10-2005, 06:47 PM
I'm not getting the thanks button

Abe1
11-10-2005, 06:49 PM
I'm not getting the thanks button

Make sure you put the code in the post bit template.

G0F0RBR0KE
11-10-2005, 06:51 PM
Everything is already in their, postbit and postbit_legacy

Abe1
11-10-2005, 06:52 PM
Everything is already in their, postbit and postbit_legacy

Are your plugins enabled?

Abe1
11-10-2005, 06:52 PM
Everything is already in their, postbit and postbit_legacy

and, are you looking at a post made by you?

G0F0RBR0KE
11-10-2005, 06:55 PM
Yep and also members

I've check the plugin and it's enable. Going to reinstall it, hopefully it works.

G0F0RBR0KE
11-10-2005, 06:56 PM
Just reinstall it, nothing happen.

Abe1
11-10-2005, 06:57 PM
Just reinstall it, nothing happen.

Did you make the postbit edit in every style if you have a few?

G0F0RBR0KE
11-10-2005, 06:59 PM
I have like 5 other style, but i'm doing it on the default skin that comes with the vbulletin.

G0F0RBR0KE
11-10-2005, 07:10 PM
Nothing is happeing =(

G0F0RBR0KE
11-10-2005, 07:13 PM
It's been fix, I had to disable it and enable it again.

Nice hack too

Time to click "install"

Keep up the work....

mfizzel
11-10-2005, 07:27 PM
Big issue when upgrading to 2.5 - all members that have been thanked over 1,000 times now read as "Thanked 1 time in 1 post"

Just spent over an hour rebuilding all of the thank you stats and that didn't resolve it.

SecTa
11-10-2005, 08:43 PM
Same issue. Just ended rebuilding the DB but nothing changed...

G0F0RBR0KE
11-10-2005, 09:59 PM
A little reminder to new people that are installing this and having problem. Go to your ACP>Plugin System>Manage Product. Then disable "Post Thank You Hack" and enable it. This will allowed your postbit and postbit legacy to start working.

If you are using skin and aren't sure what to do, feel free to PM me, I'll be glad to fix it for you.

QATARAT
11-12-2005, 07:05 AM
And THaNK U

Abe1

for ur time , work , suport and development This and more greates Hacks

In the attach is translation for ( Post Thank You Hack 2.5 ) in Arabic language .

for ( INSTALLATIONS And VBphrase )

THANKS OnCe MoRe

mfizzel
11-12-2005, 12:26 PM
abe, any update on this?

Big issue when upgrading to 2.5 - all members that have been thanked over 1,000 times now read as "Thanked 1 time in 1 post"

Just spent over an hour rebuilding all of the thank you stats and that didn't resolve it.

Code Monkey
11-12-2005, 03:47 PM
Big issue when upgrading to 2.5 - all members that have been thanked over 1,000 times now read as "Thanked 1 time in 1 post"

Just spent over an hour rebuilding all of the thank you stats and that didn't resolve it.

vb_number_format should be used for display only. If any calclations are to be done with the data then a unformated version must be used or you get lot's of incorect results.

Code Monkey
11-12-2005, 03:52 PM
Maybe do something like this so that the display data is seperated from the rest of the working code.


$this->post['post_thanks_user_amount_display'] = vb_number_format($this->post['post_thanks_user_amount']);
$this->post['post_thanks_thanked_times_display'] = vb_number_format($this->post['post_thanks_thanked_times']);
$this->post['post_thanks_thanked_posts_display'] = vb_number_format($this->post['post_thanks_thanked_posts']);]

mfizzel
11-14-2005, 07:30 PM
I don't follow what you mean.

I didn't have this issue until I installed 2.5.

Still waiting for a fix....:)

Abe1
11-15-2005, 02:49 AM
I don't follow what you mean.

I didn't have this issue until I installed 2.5.

Still waiting for a fix....:)

Sorry, I'm realy busy right now. Mabe in a few days I'll be able to check it out. Check your VB date and time settings.

mfizzel
11-15-2005, 02:54 AM
is there anywhere I can download a previous version of this? namely 2.2 which is what I was running before and it worked perfectly - tommorrow it'll be a week that all of the top contributers on my forum read 'Thanked 1 time in 1 Post'

Abe1
11-15-2005, 11:16 PM
is there anywhere I can download a previous version of this? namely 2.2 which is what I was running before and it worked perfectly - tommorrow it'll be a week that all of the top contributers on my forum read 'Thanked 1 time in 1 Post'
This one should work fine.

mfizzel
11-15-2005, 11:24 PM
This one should work fine.

Thanks Abe!! Works perfect :D

crzy
11-18-2005, 02:52 PM
i was using this hack before when was my forum 3.0.7... i upgrade my forum to 3.5.0 and my members really wanted this hack back and i trying install this hack but it says

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO *******
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'3',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'1',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Friday, November 18th 2005 @ 04:46:07 PM
Script : http://www.***net/forum/admincp/plugin.php
Referrer : http://www.***.net/forum/admincp/plugin.php?do=productadd
IP Address : 88.111.******
Username : crazyb0y
Classname : vb_database



i trying your query things
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';
but it says

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '***_****.setting' doesn't exist

please help me i need this hack cos my members doesnt share things anymore without this hack :)
thank you

Abe1
11-18-2005, 03:02 PM
i was using this hack before when was my forum 3.0.7... i upgrade my forum to 3.5.0 and my members really wanted this hack back and i trying install this hack but it says



i trying your query things

but it says

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '***_****.setting' doesn't exist

please help me i need this hack cos my members doesnt share things anymore without this hack :)
thank you

In the error, what did it say 'INSERT TO'?

crzy
11-21-2005, 10:27 AM
In the error, what did it say 'INSERT TO'?
INSERT INTO kankane_forumsetting

Abe1
11-21-2005, 01:54 PM
INSERT INTO kankane_forumsetting
Try runnning this:
DELETE FROM `kankane_forumsetting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `kankane_forumsettinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `kankane_forumphrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `kankane_forumtemplate` WHERE `title` LIKE '%post_thanks%' AND `product` = '';

crzy
11-21-2005, 02:07 PM
thank you verymuch

NeutralizeR
11-28-2005, 10:07 AM
AJAX version?

No need for the page refresh after clicking the thanks button...?

melodiq
11-28-2005, 01:05 PM
just installed it... thnx!!!

mfizzel
12-01-2005, 01:50 PM
the 'fixed' 2.5 version is only halfway fixed.

members that have been thanked over 2,000 times read correctly - ie - 2,347

members that have been thanked over 1,000 times but not over 2,000 still read 'Thanked 1 time in 1 post'

members thanked under 1,000 times read correctly

so the issue is with members thanked between 1,000 & 1,999 times

Abe1
12-02-2005, 02:46 AM
the 'fixed' 2.5 version is only halfway fixed.

members that have been thanked over 2,000 times read correctly - ie - 2,347

members that have been thanked over 1,000 times but not over 2,000 still read 'Thanked 1 time in 1 post'

members thanked under 1,000 times read correctly

so the issue is with members thanked between 1,000 & 1,999 times

Thanks for this info. I will look into it.

mfizzel
12-02-2005, 03:26 PM
no problem Abe, if you want me to test it out for you before you release it here just PM me

D.Ilyin
12-02-2005, 04:21 PM
Abe1 another one fix:
when admin\mods\smods view "ligth" deleted threads they can thank's.

Abe1
12-02-2005, 06:30 PM
no problem Abe, if you want me to test it out for you before you release it here just PM me

Ok. Thanks for you offer. I will contact you if I can't reproduce it but try fixing it anyway.

Abe1
12-02-2005, 06:31 PM
Abe1 another one fix:
when admin\mods\smods view "ligth" deleted threads they can thank's.

Say that again???

Bubble #5
12-02-2005, 06:43 PM
Say that again???
LOL :D

That was my first reaction too :nervous:

mfizzel
12-02-2005, 11:06 PM
An amazing little add-on to this hack would be the ability to only show attached files to those who have thanked the post...any possibility of that? :D :D


*edit - actually I retract that request :)...there are files that have been download 5k+ times, the thanked #s would gett outta control

D.Ilyin
12-03-2005, 05:54 AM
Say that again???
sory.... what i must say?

Abe1
12-03-2005, 10:29 PM
sory.... what i must say?

Repeate your question with more words. I didn't understand it.

akanevsky
12-04-2005, 12:46 AM
I think he means that when mods/admins/smods view soft deleted threads, they can still post a "thanks" to posts. Which, in my opinion, is useless, cause why would one want to say thanks for a post in a deleted thread?

Abe1
12-04-2005, 12:47 AM
I think he means that when mods/admins/smods view soft deleted threads, they can still post a "thanks" to posts. Which, in my opinion, is useless, cause why would one want to say thanks for a post in a deleted thread?

Got it. I will try to fix that.

akanevsky
12-04-2005, 12:58 AM
Yea. :)
The way to select it from DB is (inside of a query):
IF(visible = 2, 1, 0) AS isdeleted
If $thread['isdeleted'] == 1, then the thread is soft deleted.
Just saying in case it helps :)

EDIT:
Actually, since you are hooking into the showthread itself, $thread['isdeleted'] is already there. Just use it.

masterross
12-04-2005, 01:14 AM
hi,

sorry for the stupid question but where are the Hacks settings?
i cant gind them :(

thanks,
Ross

divided_by_fear
12-04-2005, 01:19 AM
in vBulletin Options look for Post Thank You Hack in the drop down menu

Abe1
12-04-2005, 03:13 AM
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.