PDA

View Full Version : [AJAX] Post Thank You Hack


Pages : 1 2 [3] 4

C_P
02-13-2006, 10:58 PM
Ditto! I get same error:
Database error in vBulletin 3.5.2:
Invalid SQL:
DELETE FROM reputation WHERE postid = 12795 AND AND whoadded = 1 reason = 'Thanked Post';
MySQL Error : 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 'AND whoadded = 1 reason = 'Thanked Post'' at line 1
Error Number : 1064
Date : Monday, February 13th 2006 @ 06:08:34 AM
Script : http://www.cpfools.com/forum/showthread.php?do=post_thanks_remove_user&p=12795
Referrer : http://www.cpfools.com/forum/showthread.php?p=12795#post12795
IP Address : xxxxxx
Username : CP
Classname : xxxxxxxxxx

Also at top of my page it shows this:
Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 131

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 141
/*+--------------------------------------------------------------------------| Cascading Style Sheet for MKportal "Forum" Portal Template| ========================================| by Meo aka Luponero [Amedeo de longis]| visiblesoul [Don K. Colburn]| (c) 2004-2005 mkportal.it| http://www.mkportal.it| Email: luponero@mclink.it+--------------------------------------------------------------------------| > MKPortal| > Written By Amedeo de longis| > Date started: 9.2.2004+--------------------------------------------------------------------------*//*=============================MK global stylesP=============================*//* IMPORT body */body,body{ background: #FFFFFF; color: #000000; font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; padding: 0px;}body { font-size: 10px; margin:0px; padding:0px; /* Opera 0 margin */ text-align: center; /* center in IE */ }/* IMPORT body background (used for SMF) */.importbgbody { font-size: 10px;}/* portal wrapper */#mkwrapper { text-align:left; /* left-align text in IE */ margin: 0px auto 0px auto;}/* IMPORT logostrip */#mklogostrip,.page{ background: #FFFFFF; color: #000000;}/* logostrip */#mklogostrip { text-align: left;}/* IMPORT global font formatting */table,tr,td,.tdglobal,td, th, p, li{ font: 10pt 'trebuchet ms', verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}/* global font formatting */table,tr,td,.tdglobal { font-size: 10px; }/* IMPORT main portal table bg (if different than body bg) */.tabmain,.page{ background: #FFFFFF; color: #000000;}/* main portal table */.tabmain { margin:0px; padding:0px; }/* image link border */img { border: 0px;}/*=============================MK IMPORT LIGHT BACKGROUNDP=============================*/.modulecell,.urlo2,.tabnews,.trattini,.trattini3,. tablemenu,.taburlo,.alt1, .alt1Active{ background: #DFE6EE; color: #000000;}/*=============================MK IMPORT MEDIUM BACKGROUNDP=============================*/.navigatore,.tdblock,.moduleborder,.modulex,.mkpag ecurrent,.alt2, .alt2Active{ background: #DFE6EE; color: #000000;}/*=============================MK IMPORT DARK BACKGROUNDP=============================*/.urlo,.sottotitolo,.tcat{ background: #397DD0 url(../forum/images_pb/gradients/gradient_tcat.gif) repeat-x top left; color: #FFFFFF; font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}/*=============================MK border and divider stylesP=============================*//* vertical spacer image used in portal skin *//* .vspacer { background-image: url(../forum/../mkportal/templates/CPstyle/images/punto_vert.gif); background-repeat: repeat-y; background-color: transparent; } *//* IMPORT border-color */.tabmain,.tablemenu, /* block wrapper, chat button strip */.taburlo,.urlo2,.tabnews,.trattini,.trattini2,.tra ttini3,.mkpagelink,.mkpagelinklast,.mkpagecurrent, .titadmin,.tborder{ color: #000000; border: 1px solid #072A68;} .trattini { border-width: 1px 0 0 0; border-style: dashed;}/* blocks admin */.trattini2 { border-width: 0 1px 0 0; border-style: dashed;}/* Quotes, Shoutbox */.trattini3 { border-width: 0 0 1px 0; border-style: dashed;}/*=============================MK hyperlink stylesP=============================*//* IMPORT global links */a:link,a:active,a.uno:link,a:link{ color: #000000;}a:visited,a.uno:visited,a:visited{ color: #000000;}a:hover,a.uno:hover,a:hover, a:active{ color: #465584;}/* a:active { font-family: Verdana, Arial, Helvetica, sans-serif; color: #496c9f; text-decoration: none; } *//* bold navbar, block, module links */a.uno:link { font-size: 10px; font-weight: bold; text-decoration: none}a.uno:visited { font-size: 10px; font-weight: bold; text-decoration: none}a.uno:hover { font-size: 10px; font-weight: bold; text-decoration: underline;}/* block text links *//* .tablemenu a:link, a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; color: #496c9f; text-decoration: none; }.tablemenu a:hover { text-decoration: underline;}.tablemenu a:active { text-decoration: none; } *//* global contrasting text and hyperlink color */.mktxtcontr,a.mktxtcontr:link, a.mktxtcontr:visited { color: #ff0000; font-weight: bold; text-decoration: none;}a.mktxtcontr:hover { font-weight: bold; text-decoration: underline;}/* contrasting text and hyperlink color 2 (admin) */.mktxtcontr2,a.mktxtcontr2:link, a.mktxtcontr2:visited { color: #0000ff; font-weight: bold; text-decoration: none;}a.mktxtcontr2:hover { font-weight: bold; text-decoration: underline;}/*=============================MK form stylesP=============================*//* IMPORT form styles */input,textarea,select,.bgselect, /* input fields */.mkbutton, /* global submit buttons */.mkblkinput, /* block input */.mkradio, .bginput{ background: #FFFFFF; color: #000000; font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}/* set form padding and margin *//*.mkbutton,*/ /* global submit buttons *//* textarea,*/input,select,.bgselect, /* input fields */.mkblkinput /* block input */{ margin: 0px; padding: 0px; font-size: 9px; font-weight: normal; /* needed for Mozilla */ }/* radio/checkbox buttons - remove background color and border in IE */ /* .mkradio { background-color: transparent; border-width: 0px;} *//* configure blog textarea */textarea.mkwrap1 { overflow: auto; /* width: 230px; */ width: 100%;}/* edit blog textarea */textarea.mkwrap2 { overflow: auto; width: 500px ;}/*=============================MK navstrip stylesP=============================*//* top navstrip */.navigatore { vertical-align: bottom; text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: 300; font-size: 9px; border: 0;}/*=============================MK block stylesP=============================*//* used in functions.php (function main_page) */.blocks { padding: 0px;}/* block td cell */.tdblock { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; border: 0; margin: 2px; }/* block title bar */.sottotitolo { vertical-align: bottom; text-align: left; font-size: 11px; font-weight: bold; }/* horizontal spacer between blocks */.tdspacer { line-height: 3px;}/*=============================MK module global stylesP=============================*//* IMPORT module table headings */th.modulex,.thead{ background: #BCCFEA url(../forum/images_pb/gradients/gradient_thead.gif) repeat-x top left; color: #3A4F6D; font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}.modulex { border-width: 0 0 0 0; white-space: nowrap; /* font-weight: normal;*/}/* Reviews description text */.modulelite { font-size: 8pt; /* color:#a6bbcd;*/}/* block padding (news, admin) */.contents { padding: 10px; }/* module pagination links */.mkpagelink { padding:1px 3px 1px 3px; font-weight: normal;}.mkpagelinklast { padding:1px 3px 1px 3px; font-weight:normal;}.mkpagecurrent { padding:1px 3px 1px 3px; font-weight:normal;}/*=============================MK shoutbox module stylesP=============================*/td.taburlo{ margin:5px; padding:5px; border: 0; } /* shouter and date cell */.urlo { line-height: 18px; vertical-align: bottom; text-align: left; font-size: 11px; font-weight: bold; padding: 4px; }/* shout cell */.urlo2 { padding: 4px; border-width: 0 0 1px 0; border-style: solid; text-align: left; font-size: 11px; font-weight: bold;}/* white shouter text *//* .urlocontrast { color: #ffffff;} *//*=============================MK news module stylesP=============================*//* news table with border */.tabnews { border-width: 1px; border-style: dashed; margin:0px; padding:0px; font-size: 10px; }/*=============================MK admin cp stylesP=============================*//* admin cp titles with top border */.titadmin { margin: 0px; font-size: 11px; font-weight: bold; border-width: 1px 0 0 0; border-style: dashed;}/*=============================MK font stylesP=============================*//* red error page text */.mkerror { font-size: 12pt; color: #ff0000; font-weight:bold;}/* MKPQuote quotation text *//* .mkquote { color: #0000ff; } *//* MKPGallery module ecard */.ecardtitle { font-size: 10pt; font-weight: bold; text-align: center;}/* MKPGallery slideshow caption text (modules/gallery/index.php function slide_update) *//* .mkslidecap { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold; color: #ffffff;} *//*=============================MK BBcode quote stylesP=============================*/.mkquoteball { font-size: 9px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; background-color: #ffffff; padding: 0; }.mkquotetext { font-size: 10px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; background-color: #ffffff; margin: 0; padding: 0; }table .mkquotetable{ width: auto; /* IE */ text-align: left;}


The only way I could get rid of it was to thank the post again!

Latest Fix today corrects this. Great job and great product Abe1.

D.Ilyin
02-14-2006, 10:44 AM
3.2 BUG:
When use option "Delete Own Thanks" all thank's for post will be delete, when some of user clicked "Remove Your Thanks". But count of post thanks decrease only 1.
Just disable that future for a little, i think Abe1 updated it.

Abe1
02-14-2006, 11:57 AM
Version 3.3 (2/14/06):

[FIXED] Fixed bug with removing own thanks.


I recommend everyone run the "Update Post Thanks Post Amount" counter. You can find it in you ACP under "Maintenance -> Update Counters -> Update Post Thanks Post Amount". This bug was resetting the count to zero when a user removed his own thanks.

The Realist
02-14-2006, 01:11 PM
Yes just installed 3.3 version.

When I try and remove a thanks, I get this DB error:


Database error in vBulletin 3.5.3:

Invalid SQL:
DELETE FROM reputation WHERE postid = 2192 AND AND whoadded = 1 reason='Thanked Post';

MySQL Error : 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 'AND whoadded = 1 reason='Thanked Post'' at line 1
Error Number : 1064
Date : Tuesday, February 14th 2006 @ 03:09:48 PM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=2192
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-1799.html
IP Address : xx.xx.xx.xxx
Username : Realist
Classname : xxxxxx


At the top of the error page I get this as well:

Warning: implode(): Bad arguments. in /showthread.php on line 235


Line 235 reads:

$set_user_got = "post_thanks_thanked_times = post_thanks_thanked_times - $nb, post_thanks_thanked_posts = post_thanks_thanked_posts - 1";


Any ideas?


Do you have the latest version installed?

Abe1
02-14-2006, 01:16 PM
Yes just installed 3.3 version.

When I try and remove a thanks, I get this DB error:


Database error in vBulletin 3.5.3:

Invalid SQL:
DELETE FROM reputation WHERE postid = 2192 AND AND whoadded = 1 reason='Thanked Post';

MySQL Error : 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 'AND whoadded = 1 reason='Thanked Post'' at line 1
Error Number : 1064
Date : Tuesday, February 14th 2006 @ 03:09:48 PM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=2192
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-1799.html
IP Address : xx.xx.xx.xxx
Username : Realist
Classname : xxxxxx


At the top of the error page I get this as well:

Warning: implode(): Bad arguments. in /showthread.php on line 235


Line 235 reads:

$set_user_got = "post_thanks_thanked_times = post_thanks_thanked_times - $nb, post_thanks_thanked_posts = post_thanks_thanked_posts - 1";


Any ideas?

It looks like you dont have the latest version. The query was fixed. I just checked again.

The Realist
02-14-2006, 01:18 PM
I just downloaded post thanks 3 3.zip and ran the product-post_thanks.xml file?

So I presume this is the latest version?

The Realist
02-14-2006, 01:25 PM
I removed the product from my forum and re installed it, looks like its working now, not getting any DB errors but:

Im getting this error:

Could not find phrase 'post_thanks'.

C_P
02-14-2006, 05:45 PM
Well, I just added this latest 3.3 version fix and now this error is back when you try to delete your own thanks:
Database error in vBulletin 3.5.2:

Invalid SQL:

UPDATE post
SET post_thanks_amount - 1
WHERE postid = 12796;

MySQL Error : 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 '- 1
WHERE postid = 12796' at line 2 Error Number : 1064
Date : Tuesday, February 14th 2006 @ 07:43:37 PM
Script : http://www.cpfools.com/forum/showthread.php?do=post_thanks_remove_user&p=12796
Referrer : http://www.cpfools.com/forum/showthread.php?p=12796#post12796
IP Address : 71.104.209.88
Username : CP
Classname : vb_database

and this at top of page:

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

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

Abe1
02-14-2006, 05:51 PM
Well, I just added this latest 3.3 version fix and now this error is back when you try to delete your own thanks:

I just updated the zip to fix the bug.

C_P
02-14-2006, 05:57 PM
I just updated the zip to fix the bug. Awesome! Works like a charm Abe1

The Realist
02-14-2006, 06:38 PM
Dont solve my problem with phrases? this new update.

But I now ger this DB error?


Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE post
SET post_thanks_amount - 1
WHERE postid = 171;

MySQL Error : 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 '- 1
WHERE postid = 171' at line 2
Error Number : 1064
Date : Tuesday, February 14th 2006 @ 08:38:46 PM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=171
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-107.html#post171
IP Address :
Username : Realist
Classname :


Might remove this hack, to mant errors.

Abe1
02-14-2006, 06:41 PM
Dont solve my problem with phrases? this new update.

But I now ger this DB error?


Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE post
SET post_thanks_amount - 1
WHERE postid = 171;

MySQL Error : 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 '- 1
WHERE postid = 171' at line 2
Error Number : 1064
Date : Tuesday, February 14th 2006 @ 08:38:46 PM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=171
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-107.html#post171
IP Address :
Username : Realist
Classname :


Might remove this hack, to mant errors.

I just fixed this a few min ago. Download the latest zip.

The Realist
02-15-2006, 01:38 AM
Naaa dont work M8.

Removed xml and reinstalled the new one again, Im still getting this DB error:


Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE post
SET post_thanks_amount - 1
WHERE postid = 171;

MySQL Error : 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 '- 1
WHERE postid = 171' at line 2
Error Number : 1064
Date : Wednesday, February 15th 2006 @ 03:35:56 AM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=171
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-107.html#post171
IP Address :
Username : Realist
Classname :


Laters

PS.

uninstalled as well and Im getting a DB error on my forums, so I had to reinstall it again, can you check that the uninstall works as wel M8.

Laters

Abe1
02-15-2006, 02:27 AM
Naaa dont work M8.

Removed xml and reinstalled the new one again, Im still getting this DB error:


Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE post
SET post_thanks_amount - 1
WHERE postid = 171;

MySQL Error : 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 '- 1
WHERE postid = 171' at line 2
Error Number : 1064
Date : Wednesday, February 15th 2006 @ 03:35:56 AM
Script : http://www.tech-tronix.com/showthread.php?do=post_thanks_remove_user&p=171
Referrer : http://www.tech-tronix.com/signature-post-test-forum/test-107.html#post171
IP Address :
Username : Realist
Classname :


Laters

PS.

uninstalled as well and Im getting a DB error on my forums, so I had to reinstall it again, can you check that the uninstall works as wel M8.

Laters

I am unsure how you get this error. This error is not possible in the latest version. I would need access to your ACP to fix it. It seems like it has not deleted some plugins.

NeutralizeR
02-19-2006, 05:41 PM
Still having problems while removing thanks. Is this because of vBSEO?

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE msx_post
SET post_thanks_amount - 1
WHERE postid = 69399;

MySQL Error : 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 '- 1
WHERE postid = 69399' at line 2
Error Number : 1064
Date : Sunday, February 19th 2006 @ 09:38:34 PM
Script : http://www.msxlabs.com/forum/showthread.php?do=post_thanks_remove_user&p=69399
Referrer : http://www.msxlabs.com/forum/tam-surum-yazilimlar/2089-flash-imza-yapmak-isteyenler-2.html

Abe1
02-19-2006, 05:51 PM
Still having problems while removing thanks. Is this because of vBSEO?

Yes. I think it doesn't refresh plugins and it it using an old plug-in.

NeutralizeR
02-19-2006, 06:03 PM
Any suggestions?

Abe1
02-19-2006, 06:24 PM
Any suggestions?

Try disabling it then re-enable it. I have no idea how it works.

NeutralizeR
02-19-2006, 06:37 PM
Negative - Remove own thanks DISABLED...

It was great till you make the first update about queries...

The Realist
02-19-2006, 07:05 PM
The very same problem here M8.

Author had a look at my forums for me and said he did not have a clue but to disable VBSEO.

Also, I cannot remove the hack as well as it gives a database error.

So Im stuck with it as it is, errors and all.

Abe1
02-19-2006, 09:03 PM
Try this guys. Edit the XML file before uploading it. Change the version to 3.31. See if you still get the problem.

NeutralizeR
02-19-2006, 09:24 PM
Try this guys. Edit the XML file before uploading it. Change the version to 3.31. See if you still get the problem.

Really interesting... but worked for me :)

Thanks...

Abe1
02-19-2006, 11:43 PM
Really interesting... but worked for me :)

Thanks...

I realized that the latest fix was only a fix with no version change. That hack mostlikily looks into the version and will pull new plugins only if the version changed.

MioTraGusa
02-21-2006, 05:17 PM
Updated... thanks for suport this hack Abe1, but now one phrase donĀ“t exist

Abe1
02-21-2006, 07:05 PM
Updated... thanks for suport this hack Abe1, but now one phrase don?t exist

Sorry, I still didn't add it.

MioTraGusa
02-21-2006, 07:49 PM
Don?t worry Sir , your hack is one of the best for my :up:

The Realist
02-28-2006, 01:32 PM
Reinstalled this hack again after a full uninstall and Im not getting any errors when removing any thanks posts, this is with VBSEO activated as well.

The only thing Im missing is the could not find phrase "Thank You"

Thats all thats wrong now.

How can I add the missing phrase?

Laters

RMS-Chef
02-28-2006, 02:01 PM
I would love to see each post's number of thanks listed in a column on forumdisplay.

-=Sniper=-
03-06-2006, 11:32 AM
feature suggestion (sorry if its already been sugested)

I often get new users who get the help they need but don't thank the user, so it would be great if admins/mods can thank the user for them. It would also log who thanked for the user, so you could track possible abuse.

RFViet
03-07-2006, 02:18 AM
When I clicked Thanks button -> a message: Could not find phrase "Post_Thank" ??? see pic. below:
https://vborg.vbsupport.ru/

m_k
03-07-2006, 06:21 AM
nice one :-)

<clicks install>

HHU
03-08-2006, 07:44 PM
What would be nice, would be the ability to set it so that it gives the reputation that they would have gotten if they clicked on give reputation, but this way they get the same by somebody clicking on thanks, and then they also get an added count to thanks

luke101
03-11-2006, 08:18 PM
why isnt this hack working? I followed all the instructions.

MSheraz86
03-11-2006, 10:49 PM
Thanks for this fantastic mod! :)

It works great, easy installation though this mod is conflicting with Reputation points because when a post has been thanked, it cannot be given reputation points as it gives back this error:

"vBulletin Message

You cannot give Reputation to the same post twice."

:( how do I remove this conflict?

UDPride
03-11-2006, 11:56 PM
Great hack. Went in without a hitch. Thanks for wrapping your code in notations. Makes finding it easier if theres ever a problem down the line.

Abe1
03-12-2006, 11:56 AM
When I clicked Thanks button -> a message: Could not find phrase "Post_Thank" ??? see pic. below:
http://www.rfviet.com/img/pic.php?u=7jVW9y&i=710
Sorry, I keep forgetting to fix this. It's a minor problem.

Lapsetur
03-12-2006, 12:40 PM
Please look at the attached picture it does not have the sign "The following user says thank you........."

I installed newly did I have run the queries because I did not

Lapsetur
03-12-2006, 01:39 PM
And I have "Update Post Thanks Post Amount" 4 of them shouldn't it be only one.

Tracer Gun Kata
03-12-2006, 01:43 PM
Awesome hack.. installed :)

Abe1
03-12-2006, 10:33 PM
Please look at the attached picture it does not have the sign "The following user says thank you........."


I installed newly did I have run the queries because I did not
The phrases should have installed automaticly. Please check them.

Lapsetur
03-13-2006, 06:47 AM
The phrases there but they don't show. I translated some of them and started to show but not all of them

Tracer Gun Kata
03-13-2006, 05:59 PM
Initially the install and subsequent use of the hack went fine.. however I have no found a problem.

A user with name -=B?†?H™=- has posted a thanks in a thread and an error is occuring within vbulletin -

Errror seen in thread http://www.onlinewarfare.net/forum/showthread.php?t=4321

Error received to admin email -

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE user
SET post_thanks_user_amount = post_thanks_user_amount - 1posts = posts - 1
WHERE userid = 57;

MySQL Error : Unknown column '1posts' in 'field list'
Error Number : 1054
Date : Monday, March 13th 2006 @ 08:21:55 PM
Script : http://www.onlinewarfare.net/forum/showthread.php?do=post_thanks_remove_user&p=11530
Referrer : http://www.onlinewarfare.net/forum/showthread.php?p=11533#post11533
IP Address :
Username : -=B???HT=-
Classname : vb_database

When I attempt to remove the thanks I get the following error -

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE user
SET post_thanks_user_amount = post_thanks_user_amount - 1posts = posts - 1
WHERE userid IN ();

MySQL Error : 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
Error Number : 1064
Date : Monday, March 13th 2006 @ 08:53:42 PM
Script : http://www.onlinewarfare.net/forum/showthread.php?do=post_thanks_remove&p=11530
Referrer : http://www.onlinewarfare.net/forum/showthread.php?t=4321
IP Address :
Username : Simon
Classname : vb_database

Any ideas??

bashy
03-13-2006, 06:08 PM
EDIT THE IP ADDY M8
For security

Tracer Gun Kata
03-13-2006, 06:19 PM
I have removed and re-added the hack and ban users with random characters until this can be resolved.. so links going to the problem will not longer be showing the error occuring.

Thanks again Bashy re: IP

trigon
03-15-2006, 03:57 PM
The phrases should have installed automaticly. Please check them.
M8 i have another problem about this hack from you, maybe you can help me?

https://vborg.vbsupport.ru/showthread.php?p=920485#post920485

Hornstar
03-15-2006, 07:47 PM
Not sure if this is already requested or stated, but is it possible to make it so when a user gets thanks they also get points in ebux?

bashy
03-16-2006, 05:52 PM
Hi

I have tried to delete a Thanks and got this error...
Please advise Abe?

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE user
SET post_thanks_user_amount = post_thanks_user_amount - 1posts = posts - 1
WHERE userid = 1;

MySQL Error : Unknown column '1posts' in 'field list'
Error Number : 1054
Date : Thursday, March 16th 2006 @ 07:47:49 PM
Script : http://www.bashys-place.com/forums/showthread.php?do=post_thanks_remove_user&p=6451
Referrer : http://www.bashys-place.com/forums/showthread.php?p=6451

Rickie3
03-17-2006, 10:05 AM
how can i change the text to say what i want instead of it saying this??

"The Following User Say Thank You to For This Useful Post:"

Abe1
03-17-2006, 12:12 PM
Version 3.4 (3/17/06):

[FIXED] Fixed a few bugs.

Abe1
03-17-2006, 12:13 PM
It's a phrase.

Rickie3
03-17-2006, 12:17 PM
what phrase do i search for please??

Abe1
03-17-2006, 12:22 PM
post_thanks_user_says
post_thanks_users_say

HaYLaZ
03-17-2006, 05:39 PM
thanks installed:D

Rickie3
03-18-2006, 01:31 AM
post_thanks_user_says
post_thanks_users_say
thanks Abe1 that one the trick

Oddjob
03-18-2006, 04:57 AM
Not sure if this is already requested or stated, but is it possible to make it so when a user gets thanks they also get points in ebux?

That would be nice.

bashy
03-20-2006, 09:19 PM
Hi abe, As you know i have this 1 installed and the addon for the attachments
Is there anyway it can be incorperated for VBPlaza, so when a person clicks
thanks the person being thanked gets XX amount of VBPlazza points

Is this possible or too darn hard

Abe1
03-20-2006, 09:48 PM
What is the link?

Zowners
03-21-2006, 12:49 AM
is there any way to make it so that thanking reveals something in the post? Almost like a lockdown hack where you have to thank to view the contents.

I want it so that you have another text box where you enter in all your stuff. And then It displays as a little box above the thread and when thanked is shown.

Abe1
03-21-2006, 02:56 AM
Definitely possible.

Tracer Gun Kata
03-21-2006, 09:42 AM
Abe1 .. the most recent upgrade.. could you advise what bugs were corrected. I have posted about problems thanking users with characters like apostrophe's etc in there name.. I am wondering if you fixed this?

pcoskat
03-21-2006, 10:12 AM
Hi Abe -

This is a great hack...my users will be thrilled to have it.

Question...

I am only planning on enabling this hack in ONE forum. Is there anyway to have a section in the User CP that displays the thread or threads a user has posted, and how many people have 'thanked' them?

Another question...
Is there any type of alert (pm or updated thread notice) to let a member know that someone has 'thanked them' for their thread?

I'm trying to adapt this for a purpose other than 'thanks'...

btw...thanks to you :)

Abe1
03-21-2006, 11:50 AM
Abe1 .. the most recent upgrade.. could you advise what bugs were corrected. I have posted about problems thanking users with characters like apostrophe's etc in there name.. I am wondering if you fixed this?
No, I didn't fix this. I'm going to look at this now.

Abe1
03-21-2006, 11:52 AM
Hi Abe -

This is a great hack...my users will be thrilled to have it.

Question...

I am only planning on enabling this hack in ONE forum. Is there anyway to have a section in the User CP that displays the thread or threads a user has posted, and how many people have 'thanked' them?

Another question...
Is there any type of alert (pm or updated thread notice) to let a member know that someone has 'thanked them' for their thread?

I'm trying to adapt this for a purpose other than 'thanks'...

btw...thanks to you :)
There is a numbr in a users profile saying how many thanks. Also, there is a link there to see all his thanked posts.

No, the user does not get notified.

pcoskat
03-21-2006, 01:59 PM
There is a numbr in a users profile saying how many thanks. Also, there is a link there to see all his thanked posts.

No, the user does not get notified.
Just so I'm clear, they have to check back to the thread to see who thanked them? Yes?

It the OP has subscribed to the thread, will it show up as 'replied to' if someone clicks 'thanks'?

Abe1
03-21-2006, 02:02 PM
Just so I'm clear, they have to check back to the thread to see who thanked them? Yes?

It the OP has subscribed to the thread, will it show up as 'replied to' if someone clicks 'thanks'?
What is your question?

Zowners
03-21-2006, 07:35 PM
Definitely possible.

:D Does that mean you will do it? Or does that mean you will think about it.

pcoskat
03-21-2006, 07:40 PM
What is your question?

I'll repeat/re-phrase:

QUESTION #1:
Just so I'm clear, the OP has to check back to the thread to see who thanked them? Is this correct?

QUESTION #2:
When a member clicks on 'subscribe to thread', it shows up in their User CP when a new post is added to the new thread. What happens when someone 'thanks' them. Does the thread show up as having 'new posts' in the User CP under 'subscriptions'.

Abe1
03-21-2006, 07:43 PM
What do you mean by OP???????

Yes, you ahve to check back to see if you got thanked. But your count goes up by your posts so you always see how many you have when you make a new post.

pcoskat
03-21-2006, 07:56 PM
What do you mean by OP???????

OP is the Original Poster...the person who started the thread. :)

Zowners
03-21-2006, 08:16 PM
what about me! Do you think you can pull my request off?

Abe1
03-21-2006, 09:23 PM
I would have to make it an add on to another hack. Which one do you have in mind?

Zowners
03-21-2006, 11:13 PM
I'm not really sure. I went to this old site where Above the thread, if you didn't post it said "Lockdown. Please reply". And when you did, it showed what ever you put in that box.

My friend wants it to be like another message box where you post tablature. I searched Lockdown, but this and a "hide" hack was the only one that came up. And I wanted a thank you hack as well, so I figured this would be the best.

kindpeoplerule
03-22-2006, 06:42 PM
Thanks for this! This is my first hack I downloaded after buying vBulletin. I clicked install.

Abe1
03-24-2006, 03:12 PM
For thoughs who requested, Post Groan Hack has been released.

xfaethorx
03-24-2006, 07:53 PM
i have an odd problem..using the latest install i've got a problem where 3 users have thanked but its using $vbphrase[post_thanks_user_says] instead of $vbphrase[post_thanks_user_says] ...

I don't know why its doing that :( any ideas.

i.e The Following 3 Thank You to xfaethorx For This Useful Post:

therocks
03-24-2006, 10:16 PM
great mod... any update on integrating this with the hide hack??

Abe1
03-26-2006, 12:53 AM
i have an odd problem..using the latest install i've got a problem where 3 users have thanked but its using $vbphrase[post_thanks_user_says] instead of $vbphrase[post_thanks_user_says] ...

I don't know why its doing that :( any ideas.

i.e The Following 3 Thank You to xfaethorx For This Useful Post:
Use the re-counter to recount all the thanks.

Abe1
03-26-2006, 12:53 AM
great mod... any update on integrating this with the hide hack??
Non right now. What was the link again to it?

Zowners
03-26-2006, 02:41 PM
Right now, there is only this hide hack.

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

which actually needs to be updated for 3.5.4.

I was hoping you would create your own.

xfaethorx
03-26-2006, 09:23 PM
Use the re-counter to recount all the thanks.

did that, still the same fault.

xfaethorx
03-27-2006, 10:14 AM
found the fault. I'd installed the 3.0X version and my site is now an upgraded to 3.5.4 it was a "dead phrase" from the previous version just had to replace it :D.

Abe1
03-28-2006, 02:53 AM
Can't Thank and Groan the Same Post released :)

bashy
03-28-2006, 06:40 AM
Hi Abe

I have been getting these errors...

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE user
SET post_thanks_user_amount = post_thanks_user_amount - 1posts = posts - 1
WHERE userid = 382;

MySQL Error : Unknown column '1posts' in 'field list'
Error Number : 1054
Date : Tuesday, March 28th 2006 @ 12:45:11 AM
Script : http://www.bashys-place.com/forums/showthread.php?do=post_thanks_remove_user&p=7412
Referrer : http://www.bashys-place.com/forums/showthread.php?p=7412


Any advice please?

Abe1
03-28-2006, 11:48 AM
Hi Abe

I have been getting these errors...

Database error in vBulletin 3.5.3:

Invalid SQL:

UPDATE user
SET post_thanks_user_amount = post_thanks_user_amount - 1posts = posts - 1
WHERE userid = 382;

MySQL Error : Unknown column '1posts' in 'field list'
Error Number : 1054
Date : Tuesday, March 28th 2006 @ 12:45:11 AM
Script : http://www.bashys-place.com/forums/showthread.php?do=post_thanks_remove_user&p=7412
Referrer : http://www.bashys-place.com/forums/showthread.php?p=7412


Any advice please?
I believe this was fixed. Do you have the latest version?

Darat
03-31-2006, 08:04 AM
Just wondering if you could give me some pointers about how I would do this.

On my forum we can "nominate" posts, and this generates a post into a preset thread that quotes the nominated post.

I'd like to use your hack alongside this as it would be great to be able to search for all the "nominated" posts, see a list of who has "nominated" each post and so on. I can very quickly and very easily just alter all the "thanks" to say "nominated" thanks ;) to you using phrases everywhere. But what I would like to do is also keep the functionality of our current nomination system. Now our nomination code is hard coded into "newreply.php" and when someone clicks on the nominate button it calls it with something like the following: http://forums.x.x/newreply.php?do=newreply&postid=1415350&postnum=1540527 . What I was wondering is is there a quick way of "appending that" to the end of the all the stuff your hack does so in effect when clicking on the "Thanks" button it first runs the hack code and then would run the newreply stuff?

furst
04-02-2006, 07:35 AM
I scanned through many pages and could not find a concrete answer. Does this work if you use it with the [hide] hack? That is, if pressing the thank you button increases the thankers post count, does it also reveal the hidden portion of the post?

bashy
04-02-2006, 08:02 AM
Hi Abe...

Yeah, i have the latest version :)

I believe this was fixed. Do you have the latest version?

dai-kun
04-02-2006, 10:12 PM
is it possible to show the Number of Thanks and if you thank them or not instead of all the usernames? i have over 50k thanks total on my board and it crashes my mysql .

RMS-Chef
04-03-2006, 12:52 AM
is it possible to show the Number of Thanks and if you thank them or not instead of all the usernames? i have over 50k thanks total on my board and it crashes my mysql .
Just my top 10 thanked posters alone have more than 50k thanks and I don't have crash issues. What kind of number of users do you have on at once and what do you have for hardware?

What I would love to see if it was not too resource intensive is a new column on FORUMDISPLAY that shows the thread's number of thanks.

dai-kun
04-03-2006, 01:07 AM
* CPU: Pentium 4 2.8GHz (with HyperThreading)
* RAM: 2 GB DDR 2700
* Storage: 30 GB IDE, 73 GB IDE backup
* Debian Linux version: 2.4.29
* Apache version: 1.3.31
* PHP version: 4.3.10

about 200 users at once.

When I have the hack enabled, my load is about 10, sometimes 20 and even 30.

furst
04-04-2006, 09:58 AM
Instead of choosing which forumids you want to exclude, is there any way to choose only the forums that you want to include? Another command maybe?

Abe1
04-04-2006, 11:44 AM
Instead of choosing which forumids you want to exclude, is there any way to choose only the forums that you want to include? Another command maybe?
It would be much harder to implement.

Tyegurl
04-08-2006, 12:14 AM
ummmm i have the first post on every page installed. but the option in the post thanks hack doesn't show on the first post. and yes i did go through and do the whole 1|2|3 but stilll doesn't show....any suggestions?

Abe1
04-08-2006, 11:57 PM
ummmm i have the first post on every page installed. but the option in the post thanks hack doesn't show on the first post. and yes i did go through and do the whole 1|2|3 but stilll doesn't show....any suggestions?
I would have to have a look at your ACP.

Tyegurl
04-09-2006, 12:04 AM
I would have to have a look at your ACP.


pm sent be my guest :) that would be great of you

Tracer Gun Kata
04-12-2006, 02:47 PM
Abe1 .. the most recent upgrade.. could you advise what bugs were corrected. I have posted about problems thanking users with characters like apostrophe's etc in there name.. I am wondering if you fixed this?

No, I didn't fix this. I'm going to look at this now.

No, I didn't fix this. I'm going to look at this now.

Any further success in this direction Abe1?

Tyegurl
04-12-2006, 06:03 PM
well i thought i would post the solution to my problem...if anyone else was having the same one....i couldn't see the groan or thank you on any of my first posts due to the hack/mod i am using...i had to create a new postbit in order for my first post to remain on top on every page....well i hadn't edited this postbit i created in order for my groan and thanks to be shown....duh forgot about that one!

Abe1
04-12-2006, 08:26 PM
.



Any further success in this direction Abe1?
I was unable to find something the first time I looked.

Tuan Ly
04-18-2006, 12:03 AM
I am coming back after 1 month, and I see that you have got 5 new releases in one month. All these for [FIXED]. You are a very good supporter ;)

Abe1
04-18-2006, 02:23 AM
I am coming back after 1 month, and I see that you have got 5 new releases in one month. All these for [FIXED]. You are a very good supporter ;)
Thanks :) I'm releasing another new version in a few min. This one will have an ADDED.

Abe1
04-18-2006, 02:37 AM
Version 4.0 (4/17/06):

[ADDED] AJAX technology so your users don't have to refresh the page they are viewing!


Do to the many changes I made in the templates and plug-ins for AJAX I have jumped to version 4.0. There are no new template edits so to upgrade you only have to upload the XML.

AJAX now runs for the 3 options. Adding thanks by clicking the button, removing your thanks, and removing all thanks.

The thanks button and box with all users who gave thanks will appearer, update, or disappear accordingly with out you having you refresh.

Abe1
04-18-2006, 02:50 AM
Any one who download in the passed few min, please re-download. The new templates where not getting cached.

mfizzel
04-18-2006, 03:15 AM
WOOO HOOOO :banana:

nix
04-18-2006, 03:40 AM
WOOO HOOOO :banana:
What he siad. Love the ajax add on!

RMS-Chef
04-18-2006, 03:56 AM
Version 4.0 (4/17/06):

[ADDED] AJAX technology so your users don't have to refresh the page they are viewing!



Would I expect any added server load for this new feature?
I have threads with hundereds and even a few with X,XXX thanks and my server load is starting to worry me as it is so I am being careful what I add and/or change these days. Just want to make sure if this new update would tend to cause more or less server load then the previous version?

ForeverForums
04-18-2006, 03:59 AM
installed it, then uninstalled and went back to 3.3 due to....

when someone would reply they would get taken to a blank white page...however if they pressed stop then then "back" and refresh the page their reply would show up.

anyone else having this same issue ?

mholtum
04-18-2006, 04:11 AM
Hmm.. I have been running this mod for quite some time without issue. Now that I have upgraded to the new version, I see no thank you button and all my edits are in place.

Hmm

bairy
04-18-2006, 09:40 AM
Would I expect any added server load for this new feature?

AJAX will prevent a page refresh when the button is pressed.
There will still be a little overhead while the database is updated, but it won't have to regenerate the entire page, which will save a lot.


Brilliant addition Abe, well done :D

Abe1
04-18-2006, 12:17 PM
Would I expect any added server load for this new feature?
I have threads with hundereds and even a few with X,XXX thanks and my server load is starting to worry me as it is so I am being careful what I add and/or change these days. Just want to make sure if this new update would tend to cause more or less server load then the previous version?
Well said Bairy.

This hack does not refresh anything automatically so it doesn't waist server resources. The only time query are run is when a user clicks 'thanks'. And now, there are less queries then before since the whole page doesn't have to refresh saving you about 10-15 queries.

EvilHawk
04-18-2006, 12:35 PM
Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.

Abe1
04-18-2006, 12:39 PM
installed it, then uninstalled and went back to 3.3 due to....

when someone would reply they would get taken to a blank white page...however if they pressed stop then then "back" and refresh the page their reply would show up.

anyone else having this same issue ?
Will look into.

Abe1
04-18-2006, 12:40 PM
Hmm.. I have been running this mod for quite some time without issue. Now that I have upgraded to the new version, I see no thank you button and all my edits are in place.

Hmm
There are many template changes. If you edited any of the templates, you must revert them.

Abe1
04-18-2006, 12:42 PM
Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.
Thanks. Will look into.

Abe1
04-18-2006, 02:17 PM
Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.
I tested both and both seem to be working normaly.

Abe1
04-18-2006, 02:25 PM
Version 4.1 (4/18/06):

[FIXED] Crashing of 'quick reply' when using Firefox.

glorify
04-18-2006, 02:51 PM
Will the AJAX version work for 3.5.0?

mfizzel
04-18-2006, 02:53 PM
Version 4.1 (4/18/06):

[FIXED] Crashing of 'quick reply' when using Firefox.


seriously, you're the man, my members reported this bug this morning and I check here and you already have a fix!

Another thing fixed is that members thanked in over 1,000 posts now show correctly - before it just said 'thanked in 1 post'

Abe1
04-18-2006, 03:13 PM
Will the AJAX version work for 3.5.0?
I dont see why not.

EvilHawk
04-18-2006, 04:13 PM
I tested both and both seem to be working normaly.

You are right, i have reverted the post thank you templates and everything works fine! Sorry for the false alarm! :confused:

firstrebel
04-18-2006, 05:11 PM
There are many template changes. If you edited any of the templates, you must revert them.
I am confused. I have been running 3.3 and your other instruction for upgrade is to just reimport the product. Can you please clarify.

Thanks.

Bob

Abe1
04-18-2006, 06:04 PM
I am confused. I have been running 3.3 and your other instruction for upgrade is to just reimport the product. Can you please clarify.

Thanks.

Bob
There are NO differant template edits that have to be made by YOU, UNLESS you made changes to the templates that come with the hack. If you edited any of the templates like post_thanks_postbit then you must revert it so you can gane the new functions. There where many changed with the templates that come with the hack.

mholtum
04-18-2006, 06:25 PM
I dont know what the hell is up. All the edits are the same as they used to be, the postbit template has all the edits, and the button wont show up! ARGH it worked fine before!

Abe1
04-18-2006, 06:27 PM
I dont know what the hell is up. All the edits are the same as they used to be, the postbit template has all the edits, and the button wont show up! ARGH it worked fine before!
Go make sure you reverted all edited templates that belong to this hack.

mholtum
04-18-2006, 06:28 PM
I checked they have not been edited. and cant be reverted..

Abe1
04-18-2006, 06:29 PM
I checked they have not been edited. and cant be reverted..
Is there a way I can check your APC? I need tmeplates and plugins.

mholtum
04-18-2006, 06:34 PM
weird.. Now they all of a sudden are showing up! Sweet

slamdog
04-18-2006, 06:43 PM
i just follwed the upgrade instruction. i get a database error, lose the button and all the previous thanks.....

Abe1
04-18-2006, 06:45 PM
i just follwed the upgrade instruction. i get a database error, lose the button and all the previous thanks.....
All you did was upload the XML?

slamdog
04-18-2006, 07:09 PM
yep, thats all i did


Database error in vBulletin 3.5.4:

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',
'0',
'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',
'1',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'post_thanks'
),
(
'post_thanks_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
120,
0,
1,
'post_thanks'
),
(
'post_thanks_poster_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
130,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Tuesday, April 18th 2006 @ 04:09:09 PM
Script : http://www.dvderotica.net/forums/admincp/plugin.php
Referrer : http://www.dvderotica.net/forums/admincp/plugin.php?do=productadd
IP Address : xx.xx.xx.xx
Username : Slamdog
Classname : vB_Database

Abe1
04-18-2006, 07:10 PM
yep, thats all i did


Database error in vBulletin 3.5.4:

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',
'0',
'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',
'1',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'post_thanks'
),
(
'post_thanks_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
120,
0,
1,
'post_thanks'
),
(
'post_thanks_poster_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
130,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Tuesday, April 18th 2006 @ 04:09:09 PM
Script : http://www.dvderotica.net/forums/admincp/plugin.php
Referrer : http://www.dvderotica.net/forums/admincp/plugin.php?do=productadd
IP Address : xx.xx.xx.xx
Username : Slamdog
Classname : vB_Database
Are you upgrading from the vb 3.0 version?

slamdog
04-18-2006, 07:20 PM
no, version 3.4

Abe1
04-18-2006, 07:21 PM
no, version 3.4
Is there a way I can check out your ACP?

slamdog
04-18-2006, 07:34 PM
of course... details in pm.

i'm just very suprised about it deciding not to work. i have the html tags enabled as well at present to see why it is turning off and which templates are failing.

redlabour
04-18-2006, 07:50 PM
Same at me - the Button is showing up but every Click on a Thanks Button brings me back to my Portal now. :(

Only uploaded the new *.xml

It only tries to get this URL : http://www.politikstube.de/forum/#38033 on Button. After 2 seconds it switches to Portal.

But the URL from Posting is : http://www.politikstube.de/forum/showpost.php?p=38033&postcount=4

Abe1
04-18-2006, 07:57 PM
of course... details in pm.

i'm just very suprised about it deciding not to work. i have the html tags enabled as well at present to see why it is turning off and which templates are failing.
Took care of you. You still had some settings from vb3.0. Everything works now.

redlabour
04-18-2006, 07:59 PM
Hi Abe1, did you have Time to look for my Problem described above ?

Abe1
04-18-2006, 07:59 PM
Same at me - the Button is showing up but every Click on a Thanks Button brings me back to my Portal now. :(

Only uploaded the new *.xml

It only tries to get this URL : http://www.politikstube.de/forum/#38033 on Button. After 2 seconds it switches to Portal.

But the URL from Posting is : http://www.politikstube.de/forum/showpost.php?p=38033&postcount=4
I may know why. Can I get access to your ACP? I'm not sure why the link would mess up so I have to test it on your site.

Abe1
04-18-2006, 08:00 PM
Hi Abe1, did you have Time to look for my Problem described above ?
Calm down! Give me a sec to post :)

redlabour
04-18-2006, 08:10 PM
I think this will be a Problem for you to navigate through a german AdminCP. Are you sure ? ;)

redlabour
04-18-2006, 08:13 PM
You have PM ! ;)

Abe1
04-18-2006, 08:22 PM
You have PM ! ;)
Just PMed you back. Taken care of for now. I will try to come up with a better solution though.

stinger2
04-18-2006, 10:07 PM
hi Abe1
same problem here like mholtum
i had your version 3.4 and it worked perfectly.....when i imported the xml file for 4.1 ...suddenly the button disappeard.......(like mholtum)

i imported the xml for 3.4 back and every thing is normal again...

i checked it also with my test board (in my pc) ..same result...

there is some thing with xml file i think....

dai-kun
04-19-2006, 05:32 AM
i thanks for ur hard work, everything works good for me :D

dinodonk
04-19-2006, 08:39 AM
can we limit/control the thanked user display??
i am afraid there's lot of user thank in big forum... how if more than 5000 user thanks?

htrshgytrs
04-20-2006, 02:22 AM
Same at me - the Button is showing up but every Click on a Thanks Button brings me back to my Portal now.

Only uploaded the new *.xml

It only tries to get this URL : http://www.politikstube.de/forum/#38033 on Button. After 2 seconds it switches to Portal.

But the URL from Posting is : http://www.politikstube.de/forum/sho...33&postcount=4


I may know why. Can I get access to your ACP? I'm not sure why the link would mess up so I have to test it on your site.

I'm having this exact problem, links are shown as above. Thanks are applied correctly, however the user is then redirected to the home page.

Did you find a fix/cause?

cheers
Steve

redlabour
04-20-2006, 11:41 AM
Abe1 - after you fixed this by me my Users found out a new Bug. The Counters of "Thank yous" are back to zero after your fix and now not every Thanks is counted.

Za4a Tuner
04-20-2006, 10:19 PM
I got some probs with the hack.

i had version 2.0 gold running @ my board,
and now i did an update to 4.0 and even 4.1 .

1. "Bug"
There is no Thanks-Button shown @ the postbit

2. "Bug"
At the memberinfos in the postbit there are even the old thanks shown (Thanks: 5),
but when i klick in the member.php (public profile) the link =>
Find all thanked posts by "username"
no thanked posts will be found!
Above is shown => "Total Thanks: 5 "

dai-kun
04-20-2006, 11:03 PM
Bug? Or incompatible hack somewhere?
When you post your thank, the username is added to the thanks list. When you click on it, it directs to the member profile like it should (http://domain.com/forum/member.php?u=1).
After you refresh the page, the usernames in the thanks list change to (http://domain.com/forum/\"member.php?u=1\")

Abe1
04-21-2006, 05:01 AM
hi Abe1
same problem here like mholtum
i had your version 3.4 and it worked perfectly.....when i imported the xml file for 4.1 ...suddenly the button disappeard.......(like mholtum)

i imported the xml for 3.4 back and every thing is normal again...

i checked it also with my test board (in my pc) ..same result...

there is some thing with xml file i think....
Make sure you revert any templates you edited that belong to Post Thanks Hack.

Abe1
04-21-2006, 05:04 AM
I got some probs with the hack.

i had version 2.0 gold running @ my board,
and now i did an update to 4.0 and even 4.1 .

1. "Bug"
There is no Thanks-Button shown @ the postbit

2. "Bug"
At the memberinfos in the postbit there are even the old thanks shown (Thanks: 5),
but when i klick in the member.php (public profile) the link =>
Find all thanked posts by "username"
no thanked posts will be found!
Above is shown => "Total Thanks: 5 "
There where template changes since 2.0 until now. You should look at them and correct them in your edits.

Abe1
04-21-2006, 05:06 AM
I'm having this exact problem, links are shown as above. Thanks are applied correctly, however the user is then redirected to the home page.

Did you find a fix/cause?

cheers
Steve
I cam eup with a temp fix for him. I removed all the 'href=' from the links.

Abe1
04-21-2006, 05:06 AM
Bug? Or incompatible hack somewhere?
When you post your thank, the username is added to the thanks list. When you click on it, it directs to the member profile like it should (http://domain.com/forum/member.php?u=1).
After you refresh the page, the usernames in the thanks list change to (http://domain.com/forum/\"member.php?u=1\")
I'll have to look into that.

Abe1
04-21-2006, 05:07 AM
Abe1 - after you fixed this by me my Users found out a new Bug. The Counters of "Thank yous" are back to zero after your fix and now not every Thanks is counted.
User the recounters.

Abe1
04-21-2006, 05:08 AM
can we limit/control the thanked user display??
i am afraid there's lot of user thank in big forum... how if more than 5000 user thanks?
I'll see what I can do.

stinger2
04-21-2006, 06:22 PM
Make sure you revert any templates you edited that belong to Post Thanks Hack.
thanks for the excellant support

template were reverted in my test forum(local host)which is an exact copy of the live......(i did not do it in live forum as i have other modification)
and since i had version 3.4 before....which works perfectly till now....

i went again to local (pc) removed the hack all together...reverted all 3 tempates member info..postbit...and navbar
and installed the hack again....same result

with the xml file from 3.4 the button is there (in postbit) but with xml from 4.1 it does not show up.....

i compared both xml but could not figure out why....

i only notice this difference regarding the buttom

version 3.4
<template name="post_thanks_button" templatetype="template" date="1139322375" username="Abe" version="3.5.3"><![CDATA[<if condition="$vboptions[post_thanks_button]">

version 4.1
<template name="post_thanks_button" templatetype="template" date="1145329668" username="Abe" version="3.5.4"><![CDATA[<script type="text/javascript">

i dont know if this is the reason?

Abe1
04-21-2006, 06:48 PM
thanks for the excellant support

template were reverted in my test forum(local host)which is an exact copy of the live......(i did not do it in live forum as i have other modification)
and since i had version 3.4 before....which works perfectly till now....

i went again to local (pc) removed the hack all together...reverted all 3 tempates member info..postbit...and navbar
and installed the hack again....same result

with the xml file from 3.4 the button is there (in postbit) but with xml from 4.1 it does not show up.....

i compared both xml but could not figure out why....

i only notice this difference regarding the buttom

version 3.4


version 4.1


i dont know if this is the reason?
I'm not sure. I would have to take a look. There is a huge change in the templates. The button itself is not even pulled from the post_thanks_button template. It's now pulled from the post_thanks_button_image template and put into the post_thanks_button template.

stinger2
04-21-2006, 07:21 PM
the only way that i can show the button is when i replace in postbit under
<!-- controls -->


$post_thanks_button
with
$post_thanks_button_image

but at that time the button is non clickable

Abe1
04-21-2006, 07:45 PM
the only way that i can show the button is when i replace in postbit under
<!-- controls -->



with


but at that time the button is non clickable
$post_thanks_button_image is in the post_thanks_button template. I would ahve to see your acp to see why it doesn't work.

NeutralizeR
04-21-2006, 10:12 PM
Uncached template post_thanks_box while viewing a pm.

Za4a Tuner
04-21-2006, 10:55 PM
There where template changes since 2.0 until now. You should look at them and correct them in your edits.Hy Abe1,
i did the changes before i updated ->
and i did them now again =>
but the button want appear!

my way now:
first i did all all the templateschanges undone (reset of the templates: postbit, memberinfo and navbar),
and then i put the code of this hack (install.txt) back to the templates!

But i get no button to klick,
and the Link (Find all thanked posts by "username") is still "broken".

stinger2
04-22-2006, 08:23 AM
$post_thanks_button_image is in the post_thanks_button template. I would ahve to see your acp to see why it doesn't work.

thanks Abe1......but i sstill use 3.4 in the live forum......i did not do the upgrade there...i am testing it in my PC ......

i can copy what ever you like from my ACP in the pc for you........i dont know how to give you access there...

mfizzel
04-22-2006, 05:21 PM
Abe, everything works great with the new version but my members have discovered a new error - the counter which displays how many posts they've been thanked in is not updating.

for ex. the member that brought this to my attention, I thanked his post, refreshed the page and he had still been thanked in the same amount of posts...

make sense?

saba
04-22-2006, 05:38 PM
does it work with the hide hack

Abe1
04-23-2006, 01:18 AM
Uncached template post_thanks_box while viewing a pm.
Will fix.

Abe1
04-23-2006, 01:20 AM
Hy Abe1,
i did the changes before i updated ->
and i did them now again =>
but the button want appear!

my way now:
first i did all all the templateschanges undone (reset of the templates: postbit, memberinfo and navbar),
and then i put the code of this hack (install.txt) back to the templates!

But i get no button to klick,
and the Link (Find all thanked posts by "username") is still "broken".
I'd have to look at your ACP.

Abe1
04-23-2006, 01:21 AM
thanks Abe1......but i sstill use 3.4 in the live forum......i did not do the upgrade there...i am testing it in my PC ......

i can copy what ever you like from my ACP in the pc for you........i dont know how to give you access there...
If you gave me your IP address I would be able to get in.

Abe1
04-23-2006, 01:23 AM
Abe, everything works great with the new version but my members have discovered a new error - the counter which displays how many posts they've been thanked in is not updating.

for ex. the member that brought this to my attention, I thanked his post, refreshed the page and he had still been thanked in the same amount of posts...

make sense?
Will look into.

Abe1
04-23-2006, 01:23 AM
does it work with the hide hack
I didn't come up with an update for that hack yet. I'm sre if you refresh it should work.

chexx
04-23-2006, 11:46 AM
Hi Abe,
cool pice...

Worked fine on a fresh 3.5.4 installation, but I had a problem when switching on the "Add Template Name in HTML Comments" feature. Got some strange errors in my browser and tracked them down to the "$post_thanks_button_image" template which gets included within a client script. The vb added comments around the template messed up in my browser...

As I'm new to vb - also new to web development so the comments help me alot - I solved this by changing two PlugIns


"Hook Location : postbit_display_start":
find: fetch_template('post_thanks_button_image')
repl: fetch_template('post_thanks_button_image',0,false)

"Hook Location : showthread_start":
find: fetch_template("post_thanks_button_image")
repl: fetch_template("post_thanks_button_image",0,false)


With this the "$post_thanks_button_image" template gets included w/o the comments, so this works fine for me. Did this on my local board, so side effects won't harm. Just wanted to say thank's and let you know...

bashy
04-23-2006, 12:21 PM
I have just updated to the latest version as it was showing green....
Now its totally screwed my forum, When i click the thanks button it puts the whole forum in the the post that i am thanking?

I have to refresh the page to get rid of it and there is no thanks for the post showing on the post

Abe1
04-23-2006, 12:48 PM
Hi Abe,
cool pice...

Worked fine on a fresh 3.5.4 installation, but I had a problem when switching on the "Add Template Name in HTML Comments" feature. Got some strange errors in my browser and tracked them down to the "$post_thanks_button_image" template which gets included within a client script. The vb added comments around the template messed up in my browser...

As I'm new to vb - also new to web development so the comments help me alot - I solved this by changing two PlugIns


"Hook Location : postbit_display_start":
find: fetch_template('post_thanks_button_image')
repl: fetch_template('post_thanks_button_image',0,false)

"Hook Location : showthread_start":
find: fetch_template("post_thanks_button_image")
repl: fetch_template("post_thanks_button_image",0,false)


With this the "$post_thanks_button_image" template gets included w/o the comments, so this works fine for me. Did this on my local board, so side effects won't harm. Just wanted to say thank's and let you know...
I know about this problem. I'm about to releace an update with it fixed.

Abe1
04-23-2006, 12:49 PM
I have just updated to the latest version as it was showing green....
Now its totally screwed my forum, When i click the thanks button it puts the whole forum in the the post that i am thanking?

I have to refresh the page to get rid of it and there is no thanks for the post showing on the post
Try the update i'm about to release. If still bad, I'll have to look at your forum.

Abe1
04-23-2006, 12:52 PM
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)


I believe this takes care of all current bugs. Please report here again if I didn't fix one.

I hope to add the 'limit/control how many thanks to show' will hopefully be added to a later version.

redlabour
04-23-2006, 01:04 PM
Works great at me now.

bashy
04-23-2006, 01:23 PM
Still the same Abe,
I will take the liberties and pm you admin if thats ok :)

Try the update i'm about to release. If still bad, I'll have to look at your forum.

stinger2
04-23-2006, 02:18 PM
If you gave me your IP address I would be able to get in.


thanks Abe1

just read your comment and saw the update.........so i just imported 4.2 xml
and the button is showing perfectly now....

just for testing ..i reimported 4.1..button gone......reimported 4.2 button shows........

so i suppose the last fix had to do with it.....

thank you very much for the excellant support

Za4a Tuner
04-23-2006, 11:21 PM
Hy Abe1,
thanks a lot for the new release => it works great!
Now the thanks-button does appear ;)

And my "reported bug" with the broken link in the "public profil" ... forget it :D
i had some bad days -> and didn't recognized, that the testuser in the testvb don't HAVE any thanks to show :D

? "clicked install for the update" ;)

efil
04-24-2006, 06:31 PM
hi,
i did installed the Hack and it's working great.

my problem is that when i push the thanks button i get ?????????????? signs instead of "the following user say thank you for this useful post..."

just after i do refresh i get the sentence in hebrew.

https://vborg.vbsupport.ru/external/2006/04/6.gif


please help.

YLP1
04-25-2006, 08:39 PM
I installed the latest version of the Thank You, Groan and the can't have groan and thank you mods.

I reverted all the mod templates (vb version is 3.5.4). All works except for the issue with the IE errors and the Thank you button on removing the thanks:

When I click on the thank you, no redirection occurs,the Thank You button is gone, the groan button is present and I receive an IE error (see graphic 1_1.gif).

I have to refresh my page in order to see the thank you given (see graphic 21.gif)

When I try to remove a thank you via the your thanks link.... no action is taken but I do receive an IE error (see graphic 3_1.gif for IE error and graphic that shows the Thank You still there after clicking "remove your thanks" link)

I am able to add a groan and remove a groan with no errors or IE errors.

I don't know what I did to break this but I did do a uninstall and reinstall but get the same issue.

Please advise on how I can fix this.

Thank you in advance.

Abe1
04-25-2006, 08:58 PM
I installed the latest version of the Thank You, Groan and the can't have groan and thank you mods.

I reverted all the mod templates (vb version is 3.5.4). All works except for the issue with the IE errors and the Thank you button on removing the thanks:

When I click on the thank you, no redirection occurs,the Thank You button is gone, the groan button is present and I receive an IE error (see graphic 1_1.gif).

I have to refresh my page in order to see the thank you given (see graphic 21.gif)

When I try to remove a thank you via the your thanks link.... no action is taken but I do receive an IE error (see graphic 3_1.gif for IE error and graphic that shows the Thank You still there after clicking "remove your thanks" link)

I am able to add a groan and remove a groan with no errors or IE errors.

I don't know what I did to break this but I did do a uninstall and reinstall but get the same issue.

Please advise on how I can fix this.

Thank you in advance.
I think I know why you would get the error. It has to do with the hack that blocks someone from thanking and groaning. I didn't release an update for it yet. I hope to in the near future.

YLP1
04-25-2006, 09:48 PM
Ok Dokey..... Should I unstall the can't use thank you with groan or ???

Thanks again for the awesome mod.

Abe1
04-25-2006, 10:29 PM
Ok Dokey..... Should I unstall the can't use thank you with groan or ???

Thanks again for the awesome mod.
Yes. I would disable it for now.

efil
04-26-2006, 03:23 AM
hi,
about the post i made before,

i think i know how to solve it,

can some one send me the mod before this:

Version 4.0 (4/17/06):

* [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!

i think that without it i will see the hebrew lang with no need to refresh.

efil.

fn9mm
04-26-2006, 06:19 AM
the 4.1 update made the button disappear on my forum, so i had to revert back to 3.4 (missed the 4.0, sry)
the 4.2 fix doesn't help either, still no button
templates are ok, 'Add Template Name in HTML Comments' setting is off
ajax is enabled,...
damn

Abe1
04-26-2006, 02:24 PM
the 4.1 update made the button disappear on my forum, so i had to revert back to 3.4 (missed the 4.0, sry)
the 4.2 fix doesn't help either, still no button
templates are ok, 'Add Template Name in HTML Comments' setting is off
ajax is enabled,...
damn
I'd have to look at your ACP.

robgeo
04-27-2006, 02:27 AM
THis is great. Should cut down on the clutter...:banana:

RFViet
04-27-2006, 04:25 PM
I want the post_thanks to be a regular post , what can i do ??

efil
04-29-2006, 04:05 AM
hi,
about the post i made before,

i think i know how to solve it,

can some one send me the mod before this:

Version 4.0 (4/17/06):

* [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!

i think that without it i will see the hebrew lang with no need to refresh.

please...

Valter
04-29-2006, 02:10 PM
IDEA!

What about new column on thread listing where number of thanks hits in initial post of thread will be shown?

Photoshoped:
https://vborg.vbsupport.ru/

RS_Jelle
04-29-2006, 06:43 PM
I want the post_thanks to be a regular post , what can i do ??
AdminCP => vBulletin Options => vBulletin Options => Post Thank You Hack => Post Count

Set that option to Yes ;)

Set this to YES if you want the post count of the user who gave thanks to go up.

crazykid13045
04-29-2006, 08:10 PM
i would like to know if theys edits in the zip need to be done

template changes between 2_0GOLD and 2_1.txt

template changes between 2_5 and 2_6.txt

template changes between 2_6 and 2_7.txt

i have the version 4.2 of this hack?

stinger2
04-29-2006, 09:09 PM
IDEA!

What about new column on thread listing where number of thanks hits in initial post of thread will be shown?

Photoshoped:
https://vborg.vbsupport.ru/

thats a very nice idea........it will give a purpose for members to see the result......

Abe1
04-30-2006, 01:07 AM
IDEA!

What about new column on thread listing where number of thanks hits in initial post of thread will be shown?

Photoshoped:
http://img205.imageshack.us/img205/9571/ideapostthanks6ox.gif
Nice Idea. What would the link in the numbers be to though?

I would have to add another column to the thread table to get these stats also.

Abe1
04-30-2006, 01:08 AM
i would like to know if theys edits in the zip need to be done

template changes between 2_0GOLD and 2_1.txt

template changes between 2_5 and 2_6.txt

template changes between 2_6 and 2_7.txt

i have the version 4.2 of this hack?
Only if you are upgrading.

RS_Jelle
04-30-2006, 10:53 AM
It's a good idea, but another column in thread table isn't the best thing. Maybe you can make more than one version of this hack (and keep them in the same thread ofcourse).

And maybe you can also keep providing version 3.4 for people who don't like the AJAX feature? I'm using it and I like it a lot, but I can imagine that some people would like to use the original version without AJAX. There aren't any known bugs in it, so I think it would be a good idea to keep it avaiable for download :)

Abe1
04-30-2006, 11:48 AM
It's a good idea, but another column in thread table isn't the best thing. Maybe you can make more than one version of this hack (and keep them in the same thread ofcourse).

And maybe you can also keep providing version 3.4 for people who don't like the AJAX feature? I'm using it and I like it a lot, but I can imagine that some people would like to use the original version without AJAX. There aren't any known bugs in it, so I think it would be a good idea to keep it avaiable for download :)
Next release should have a feature to turn AJAX on and off.

Valter
04-30-2006, 08:58 PM
Nice Idea. What would the link in the numbers be to though?

I would have to add another column to the thread table to get these stats also.
The first post in thread (which is thanked x times). :)

Ability to enable/disable column would be great also.

Hornstar
04-30-2006, 09:16 PM
What features does the thanks system have with ajax? and what is the refresh time? is this server intensive on a large forum? and maybe an option for us to set the refresh time to what we like.

Thanks

Abe1
04-30-2006, 09:18 PM
What features does the thanks system have with ajax? and what is the refresh time? is this server intensive on a large forum? and maybe an option for us to set the refresh time to what we like.

Thanks
When a user clicks 'thanks', the page does NOT refresh but, it removes the button and adds the user to the thank list.

Bubble #5
05-04-2006, 05:13 PM
Hi Abe :) We have version 2.5 installed. How hard would it be to update to the current version? We're worried mostly about template changes...

If we're reading this right then after 2.7 there are no other template changes, correct? So we would go 2.5 to 2.6, and 2.6 to 2.7 and that should be it correct?

Abe1
05-04-2006, 06:08 PM
Hi Abe :) We have version 2.5 installed. How hard would it be to update to the current version? We're worried mostly about template changes...

If we're reading this right then after 2.7 there are no other template changes, correct? So we would go 2.5 to 2.6, and 2.6 to 2.7 and that should be it correct?
Yes. Go from 2.5 to 2.6, 2.6 to 2.7 and there where no template changes since then.

C_P
05-04-2006, 06:16 PM
You know, if all hacks were done by Abe, we would all be up to date, supported, and happy. Abe1 you do a great job with your hacks bud. I hate callingthem hacks, I'll call them Add ons.

Bubble #5
05-04-2006, 06:25 PM
Yes. Go from 2.5 to 2.6, 2.6 to 2.7 and there where no template changes since then.
OK thank you Abe :)

And we agree with C_P above. We wish all coders were as nice and great as Abe is :) There is another coder who when you ask a simple straight forward question to, all she does is reply back with rude comments :( One of the reasons why we support Abe so much is because he is a great coder and he is also POLITE all of the time to everyone :)

Thanks Abe, it is much appreciated :banana:

Abe1
05-04-2006, 09:21 PM
Thanks a lot guys.

Just a side point, maybe vb.org should install Post Thanks Hack.

Bubble #5
05-04-2006, 09:30 PM
Yep, I think it should be standard equipment on vB, just like polls are ;)

Abe1
05-05-2006, 12:36 AM
Version 4.3 (5/4/06):

[FIXED] Optimized a lot of the templates.
[ADDED] Easy integration with my Post Groan Hack.

DementedMindz
05-05-2006, 12:44 AM
just overwrite the product for update?

Abe1
05-05-2006, 12:45 AM
just overwrite the product for update?
Yup.

DementedMindz
05-05-2006, 12:49 AM
thank you

TomasDR
05-05-2006, 02:04 AM
I recently installed this and had v4.2 and everything worked fine. I just upgraded to v4.3.

Now when I someone thanks a post there is just a grey bar, the Thanks part does not appear unless they refresh their browser. Before it appeared immediately without the need for a refresh.

PS. I just downgraded back to 4.2 and the Thanks space again appears immediately without the need to refresh.

Abe1
05-05-2006, 02:48 AM
I recently installed this and had v4.2 and everything worked fine. I just upgraded to v4.3.

Now when I someone thanks a post there is just a grey bar, the Thanks part does not appear unless they refresh their browser. Before it appeared immediately without the need for a refresh.

PS. I just downgraded back to 4.2 and the Thanks space again appears immediately without the need to refresh.
That is interesting. Any other info you can give me about the problem? Anyone else having this problem?

TomasDR
05-05-2006, 02:58 AM
That is interesting. Any other info you can give me about the problem? Anyone else having this problem?

I tested it with IE, Firefox, and Opera. With IE you see a grey bar (see attachment) but with F/O the only thing that happens is the Thanks button disappears, the posts don't even seperate like with IE. All three browsers work fine with 4.2. Of course if you refresh the page using v4.3 everything looks fine with all three browsers.

efil
05-05-2006, 03:37 AM
Next release should have a feature to turn AJAX on and off.

did you insert this feature to 4.3 ?


efi.

Abe1
05-05-2006, 11:57 AM
did you insert this feature to 4.3 ?


efi.
Sorry, forgot to add yet.

Valter
05-05-2006, 11:59 AM
Sorry, forgot to add yet.

This one too ;) (https://vborg.vbsupport.ru/showpost.php?p=962979&postcount=690)

Abe1
05-05-2006, 11:59 AM
I tested it with IE, Firefox, and Opera. With IE you see a grey bar (see attachment) but with F/O the only thing that happens is the Thanks button disappears, the posts don't even seperate like with IE. All three browsers work fine with 4.2. Of course if you refresh the page using v4.3 everything looks fine with all three browsers.
I have no idea why this would happen. Is there any way I can see your APC? I would need templates and plugins.

efil
05-05-2006, 12:05 PM
Sorry, forgot to add yet.

pity, i have been waiting for it.

can you send me the mod before this:

Version 4.0 (4/17/06):

* [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!


i can not use AJAX


efil.

Abe1
05-05-2006, 12:22 PM
pity, i have been waiting for it.

can you send me the mod before this:

Version 4.0 (4/17/06):

* [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!


i can not use AJAX


efil.
here

efil
05-05-2006, 12:26 PM
thank you!

Abe1
05-05-2006, 01:10 PM
I tested it with IE, Firefox, and Opera. With IE you see a grey bar (see attachment) but with F/O the only thing that happens is the Thanks button disappears, the posts don't even seperate like with IE. All three browsers work fine with 4.2. Of course if you refresh the page using v4.3 everything looks fine with all three browsers.
Did you edit any of the templates? There were some major template edits. Make sure you revert the templates.

Abe1
05-05-2006, 01:10 PM
This one too ;) (https://vborg.vbsupport.ru/showpost.php?p=962979&postcount=690)
This one would take a while. I need some thinking behind it.

TomasDR
05-05-2006, 04:07 PM
Did you edit any of the templates? There were some major template edits. Make sure you revert the templates.

I just had installed your hack for the first time a little over a week ago, v4.2. When I came on the other day I noticed your upgrade so I downloaded it. I even checked your template edits against each other, since they were the same I did nothing except upload the product with overwrite on.

The only thing that is slightly different is I also have vBookie installed.
https://vborg.vbsupport.ru/showthread.php?t=94128

And that hack requires the template edit
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>


In the templates postbit AND postbit_lagacy right where you require the addition of:

<!-- 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_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

So mine reads:

$vbphrase[posts]: $post[posts]
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>
<!-- Start Post Thank You Hack -->
....


As for access to my ACP that would be ok but I do run a graphic adult site.

Abe1
05-05-2006, 04:30 PM
I just had installed your hack for the first time a little over a week ago, v4.2. When I came on the other day I noticed your upgrade so I downloaded it. I even checked your template edits against each other, since they were the same I did nothing except upload the product with overwrite on.

The only thing that is slightly different is I also have vBookie installed.
https://vborg.vbsupport.ru/showthread.php?t=94128

And that hack requires the template edit
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>


In the templates postbit AND postbit_lagacy right where you require the addition of:

<!-- 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_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

So mine reads:

$vbphrase[posts]: $post[posts]
<if condition="$vboptions['vbookiecashon']">
<br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
</if>
<!-- Start Post Thank You Hack -->
....


As for access to my ACP that would be ok but I do run a graphic adult site.
I mean did you edit any of THIS HACK templates? Not the actual edits I say to make.

TomasDR
05-05-2006, 04:59 PM
I mean did you edit any of THIS HACK templates? Not the actual edits I say to make.

No not at all, actually when you were asking for more information I was going back and forth litterally just uploading the product with overwrite on.

RFViet
05-05-2006, 05:37 PM
AdminCP => vBulletin Options => vBulletin Options => Post Thank You Hack => Post Count

Set that option to Yes ;)

I know that, but I want to be real post !!! like the way it was in vB3.07

Abe1
05-05-2006, 06:00 PM
No not at all, actually when you were asking for more information I was going back and forth litterally just uploading the product with overwrite on.
I would have to look at your APC to figure out the problem.

Abe1
05-05-2006, 06:01 PM
I know that, but I want to be real post !!! like the way it was in vB3.07
If you want it a real post, then you dont need this hack. Just tell your users to post Thank You.

What do you mean by 'like it was in 3.0.7'? It was the same way as now.

vktechnology
05-06-2006, 12:41 AM
I have error when press thank button


Fatal error: Using $this when not in object context in /home/palungjit/board/showthread.php(88) : eval()'d code on line 137


what should i do ?

vktechnology
05-06-2006, 12:44 AM
I have same problem.....
" the Thanks part does not appear unless they refresh their browser."

cavyspirit
05-06-2006, 01:36 AM
I'd like to add one more (well, two, because I want the same thing for groan, also) queries in the memberlist area.

I'd like a query that shows all thanks (and groans) given by user.

Find all Thanked posts by Username (exists)
Find all Thanks given by Username (would like)

&

Find all Groaned at posts by Username (exists)
Find all Groans made by Username (would like)

That would be just great!! :)

cavyspirit
05-06-2006, 03:10 AM
I like having the Memberinfo sorted a bit differently...

cavyspirit
05-06-2006, 06:27 AM
Spoke too soon. The 'Remove All' feature on both Thanks and Groans isn't working for me.

meera
05-06-2006, 06:46 PM
I have error when press thank button


Fatal error: Using $this when not in object context in /home/palungjit/board/showthread.php(88) : eval()'d code on line 137


what should i do ?

I am also having this same problem.. please help :surprised:

bonjurkes
05-06-2006, 07:28 PM
is there a change to integrate this to hide hack? So when a user press thank you they can see hidden post?

Abe1
05-07-2006, 03:26 AM
Version 4.4 (5/7/06):

[FIXED] Bug with AJAX if you had the date showing.

vktechnology
05-07-2006, 07:15 AM
Confirm FIXED..
Thank you Master Coder Abe1

YLP1
05-08-2006, 07:25 PM
Hi all, I had disabled the groan modification pending the update. Does this new update automatically make use of the "groan" mod or do I need to reinstall it for it work with the Thank You mod?

Thanks in advance.

Abe1
05-08-2006, 09:10 PM
Hi all, I had disabled the groan modification pending the update. Does this new update automatically make use of the "groan" mod or do I need to reinstall it for it work with the Thank You mod?

Thanks in advance.
Update the groan hack also.

oricon
05-09-2006, 06:27 AM
...done...

Traxdata
05-09-2006, 07:59 AM
Great idea, great hack. Thank you!

vktechnology
05-10-2006, 05:07 PM
Uses AJAX technology so your users don't have to refresh when they thank.
--------------------
very cool feature

Yorixz
05-10-2006, 06:26 PM
Wonderful hack, really something I've been looking for.

I've got a few small problems though, because I'm trying to keep my forum a bit minimalistic (my taste ;)) I've been trying to put the list of users who thanked into a popup menu, similiar to the one you get if you click on a username.

To do this I've added a new button besides the "Reputation" one which needs to be clicked to see this menu.

The code I've used for this:
After "$post[iplogged]"<!-- Start Modified Post Thank You Hack -->
$post_thanks
<!-- End Modified Post Thank You Hack -->

And in the template post_thanks_box I replaced the non-<script> content with
<!-- Start Modified Post Thank You Hack -->
<!-- post $post[postid] info menu -->

<div class="vbmenu_popup" id="infomenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="userinfo" id="post_thanks_box_$post[postid]">
$post_thanks_box
</td>
</tr>
</table>
</div>

<span id="infomenu_$post[postid]"><a href=""><img class="inlineimg" src="$stylevar[imgdir_button]/info.gif" alt="Post Info" border="0" /><script type="text/javascript"> vbmenu_register("infomenu_$post[postid]", true); </script></span>
<!-- End Modified Post Thank You Hack -->In addition I've also removed the $spacer's out of the 'post_thanks_postbit_legacy' template.

It's working fairly well, I've got a few problems that I couldn't find a solution for though:
How can I 'extend' the hack some so I'll able to hide the info.gif image if there are no users who thanked for a post.
And how can I make sure the list will be updated when a user clicks the "Thanks" button? I'm afraid I destroyed the AJAX somewhere but can't figure out where it was.

Thanks a lot for your help, hopefully there are also other users interested in this.

Edit; reduced the template edits by one, still hoping for someone to help me fixing the bugs!

bashy
05-10-2006, 06:31 PM
Do you have a demo of your extra bit or a screener please,
Do you think you could do the same for the post groan?

Pehaps you can release yours as an add on for these 2 hacks..

Its just that my post bit is looking a tad full ya see and getting rid of the
thanks and groans amounts would be a godsend :)

Wonderful hack, really something I've been looking for.

I've got a few small problems though, because I'm trying to keep my forum a bit minimalistic (my taste ;)) I've been trying to put the list of users who thanked into a popup menu, similiar to the one you get if you click on a username.

To do this I've added a new button besides the "Reputation" one which needs to be clicked to see this menu.

The code I've used for this:
After "$post[iplogged]"<span id="infomenu_$post[postid]"><a href=""><img class="inlineimg" src="$stylevar[imgdir_button]/info.gif" alt="Post Info" border="0" /><script type="text/javascript"> vbmenu_register("infomenu_$post[postid]", true); </script></span>

After "<!-- / post #$post[postid] -->"<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->

And in the template post_thanks_box I replaced the non-script content with <!-- post $post[postid] info menu -->
<div class="vbmenu_popup" id="infomenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="userinfo" id="post_thanks_box_$post[postid]">
$post_thanks_box
</td>
</tr>
</table>
</div>
<!-- / post $post[postid] info menu -->In addition I've also removed the $spacer's out of the 'post_thanks_postbit_legacy' template.

It's working fairly well, I've got a few problems that I couldn't find a solution for though:
How can I 'extend' the hack some so I'll able to hide the info.gif image if there are no users who thanked for a post.
And how can I make sure the list will be updated when a user clicks the "Thanks" button? I'm afraid I destroyed the AJAX somewhere but can't figure out where it was.

Thanks a lot for your help, hopefully there are also other users interested in this.

Yorixz
05-10-2006, 06:39 PM
As soon as I've made sure all bugs are gone I'll definitely release it here (if Abe allows me, which shouldn't be too much of a problem as it's only a template edit).

You can find somewhat of a "demo" here: http://otfans.net/showthread.php?p=347708. Logon with vBtest / test

bashy
05-10-2006, 06:44 PM
wow...that is 100% brill m8...
look forward to the release if its allowed :)

Thanks for the login!

Abe1
05-11-2006, 12:06 PM
As soon as I've made sure all bugs are gone I'll definitely release it here (if Abe allows me, which shouldn't be too much of a problem as it's only a template edit).

You can find somewhat of a "demo" here: http://otfans.net/showthread.php?p=347708. Logon with vBtest / test
I have no problems with anyone releasing add-ons to my hacks.

Yorixz
05-11-2006, 12:21 PM
I'm glad to hear that, could you also help me out some with the two problems I'm experiencing (which I posted a way up), thanks a lot.

bashy
05-13-2006, 04:49 PM
Hi Yorixz I am not seeing a post_thanks_box template, i have a post_thanks_groan template though....?

Yorixz
05-13-2006, 08:55 PM
I haven't got the Groan Hack installed so I don't know if/what templates it's overwriting. The post_thanks_box template is the one that has all the Javascript of the AJAX in it and at the bottom one line of HTML.

mktrilogy
05-14-2006, 01:53 AM
im kinDA congfused, when u say

Do the template edits

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_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------





i am using ------ Find and Replace in Templates (be careful!)-----

shoud i ------ Search for Text then =------- replace with text?

Meaning the value that u given should be replace or just add it to the variable ?

sample

$vbphrase[posts]: $post[posts] replace by <!-- 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_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->



OR


$vbphrase[posts]: $post[posts]

then i just insert below this


<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->


Sorry for the stupid question :)