View Full Version : Post Thank You Hack 1.10
Click here for vBulletin 3.5 version
Post Thank You Hack 1.10
About this hack:
One of the biggest problems on forums as you may know is 'posts boosting'. There are users who LOVE to say 'thanks' when ever they can. How can it hurt? Their post count goes up, they have nothing to loose.
There are also users who really like to express their thanks to post but don't like posting a post that looks like they're post boosting.
Then comes the moderators who have to delete people?s thanks yous so a thread can look readable with out the thanks yous thrown around.
Finally comes the posters of these useful posts. They have no idea how many people really likes their posts if only some people say 'thanks'.
What this hack does is fix ALL these problems - except those users who like post boosting. This places a button called 'thanks.' When a user clicks on it, it places his username in a box right under the post saying that so-and-so says 'thanks' for the post. Every-one who clicks is placed in one box.
By giving your users the extra feature, you forum will look allot nice and organized. It is a granted liking by ALL the members of your forum.
The hack has been tested VERY well, including 5 weeks of beta testing, but I'm only human I can't guaranty there are no problems.
There is a similar hack called 'Automatic Thank You Hack'. That hack only lets you thank the first post of a thread and not just any post. The options in this hack doesn't compare to my hack. It's also unsupportive and was release for an older version of vBulletin.
Features:
Comes with easy installer/updater/uninstaller file
Places an easy to use button next to the edit button
Separate looks for postbit and postbit_legacy
Places all Thank Yous into one small box
[NEW]Uses only ONE query every time you view a showthread page!
Users can't thank twice
Users can't thank their own post
Guests don't see 'thanks' button
Counts how many thanks a user gives
Counts how many thanks a post gets
Shows how many thanks a user gave in every post of his
Shows how many thanks a user gave in profile
Shows how many thanks a user got
Shows how many posts or a user are thanked
Shows info in profile
Search for a users thanked posts
Search for all thanked posts
Administrator can remove all Thank Yous from a single post
Turn on and off hack
Turn on and off hack for only some forums
Option to turn off hack for all but the first post of a thread
Option to turn off hack for all but the first post of a thread in specific forums
Option to turn off hack view of date for specific or all forums
[NEW]Option to add to post count when someone clicks 'thanks'.
[NEW]Option to give a user who receives thanks reputation points.
Ban Usergroups
Ban Users
Update Counters in ACP (found in 'Import & Maintenance')
Uses Phrases
Guaranteed to be liked by ALL users on your forum!
Installation information on hack:
Files edited: 3
Templates edited: 4
New Phrases: 44 (installer installs them)
New Templates: 2 (installer installs them)
Queries: 15 excluding phase and template queries (installer installs it)
Files to upload: 4
Time to install: between 5-10 minutes
Updates:
Version 1.0 (12/28/04):
Release
Version 1.01 (1/10/05):
[FIX]Templates stay when you upgrade your forum
Version 1.02 (2/22/05):
[NEW]Installer Has Installer for After You Upgrade Your Forum
[NEW]Search for a users thanked posts
[NEW]Search for all thanked posts
Version 1.03 (2/23/05):
[FIX]Turn hack on for only first posts of threads now works
Version 1.10 (5/9/05):
[FIX]Compatibility for vBulletin 3.0.7
[FIX]Reduced the amount of queries need to run this hack every time you view a showthread page to only ONE query. No more 1 to 2 queries per post that comes up.
[FIX]I cached the templates used to save 1 query.
[NEW]Option to add to post count when someone clicks 'thanks'.
[NEW]Option to give a user who receives thanks reputation points.
Please post your comments or suggestions for this hack. I read ALL posts.
MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.
Pictures:
Showing the 'thanks' button
Showing post after 'thanks' (admin view)
Showing post after 'thanks' with legacy posts (admin view)
Stats in member?s profile
Hacks settings
Update counts view
I'll try to get some updated pictures up soon.
alexhalliday
12-28-2004, 01:50 PM
I'll have a go at installing this on my test board, sounds like a brilliant idea.
Too many "Thanks for the info" posts
TwinsX2Dad
12-28-2004, 01:54 PM
Nice hack - I have the 0.6 Beta installed. What do we need to do to upgrade from it?
Nice hack - I have the 0.6 Beta installed. What do we need to do to upgrade from it?
Download this and there is an updater from 0.6 to 1.0.
There is also only one file edit you have to do. And no template edits.
One more thing, don't forget to click 'install'.
Geographic2
12-28-2004, 02:25 PM
Thanks. :lick:
gembels
12-28-2004, 04:28 PM
acontrol panel no phrase ?
acontrol panel no phrase ?
oh man. I must have messed un something with the phrases. Let me look.
gembels
12-28-2004, 04:32 PM
Import & Maintenance phrase include the sub of it.. :)
wow so fast reply..
Import & Maintenance phrase include the sub of it.. :)
wow so fast reply..
you used the update right?
gembels
12-28-2004, 04:38 PM
you used the update right?
yes.. i do update from 0.5 to 0.6 and now i do 0.6 to 1.0.. but the phrase on admincp especially on Import do was lost the phrase..
yes.. i do update from 0.5 to 0.6 and now i do 0.6 to 1.0.. but the phrase on admincp especially on Import do was lost the phrase..
Ok. So far i know it's a problem with the update. I need to find out if the fresh install also doesn't so the phrases. I'll check it out now.
gembels
12-28-2004, 04:43 PM
and also.. check http://www.gembels.com/portal/forums/showthread.php?t=8 it was doesn't look every posting have thanks icon.. u really write like that this is the bugs or what.. thanks for the advanced
and after i update the the cyle database all phrase come lost .. sorry my english not well.. that will display like Posts/: 12/0 the phrase gone.. maybe that the problem exactly.. first i upgrade they have the phrase
and also.. check http://www.gembels.com/portal/forums/showthread.php?t=8 it was doesn't look every posting have thanks icon.. u really write like that this is the bugs or what.. thanks for the advanced
There is no bug. The only problem is the updater putting in the phrases that were changed. I will try to fix that asap. There is no problem with free installs.
I don't know what you mean by button not always showing. It wont show if it's your post.
gembels
12-28-2004, 04:57 PM
yeah.. u can say that.. but the problem come to me.. take a look the attach image :ermm:
OK Guys. The updater has been fixed. Anyone who used the updater download the file again and upload the installer file. Run it and click 'update from 0.6 to 1.0. Don't do the file edit.
gembels
12-28-2004, 05:14 PM
thanks.. i just uninstall it but do not change any uninstall instruction until done.. then i do install and now all done.. fixed.. thanks bro.. two thumbs up for u.. check installed !
greetz from gembels indonesian society
Bison
12-28-2004, 08:37 PM
OK Guys. The updater has been fixed. Anyone who used the updater download the file again and upload the installer file. Run it and click 'update from 0.6 to 1.0. Don't do the file edit.
Very nice piece of work Abe1 ... thank you!
*** Installed ***
This mod is very thoughtfull... great work :D
I have just installed it and will check it this week.
red_baron2000
12-28-2004, 10:58 PM
thank you for the update ..on my way to try this version cheers:)
bubbasmurf
12-29-2004, 10:21 PM
I'm not getting the thanks button next to the edit button to show up, everything else is ok. I put the Button Image in my images/buttons folder.
I dont know what went wrong.
I'm not getting the thanks button next to the edit button to show up, everything else is ok. I put the Button Image in my images/buttons folder.
I dont know what went wrong.
Did you do the file and template edits?
VB-Fanatiker
12-29-2004, 11:49 PM
Great Hack! :classic: :classic:
I can't upgrade my Board because of thousend hacks. Will this work with vb 3.0 too? Somebody with 3.0 just done it?
Thanks!
Great Hack! :classic: :classic:
I can't upgrade my Board because of thousend hacks. Will this work with vb 3.0 too? Somebody with 3.0 just done it?
Thanks!
As far as I know there should be no problem. I didn't test it on it but the features are basic and should work on any 3.x.
VB-Fanatiker
12-29-2004, 11:53 PM
As far as I know there should be no problem. I didn't test it on it but the features are basic and should work on any 3.x.
THANK YOU! I need this hack and I test it now. If it works I'll tell you.
Best regards of germany
EDIT: It works perfectly with vB 3.0
VB-Fanatiker clicks INSTALL
bubbasmurf
12-30-2004, 07:11 AM
Did you do the file and template edits?
Yes did all the file and template edits, I will uninstall and try again to check everything.
mindbuster
12-31-2004, 11:26 PM
Cool hack, though on my new upcoming forums it would have the opposite effect, it's a forum for a mmorpg game, with a hall of fame forum, so when someone ingame get's a good loot and make a thread about it, everyone go in and say "Gratz" to him, then he would click "Thanks" on all the "Gratz" replies, meaning all who said "Gratz" to him would get alot of "Thanks" :rolleyes: ending up with alot of "Gratz" instead of "Thanks".
But, very usefull anyway, i can just make it as a "Gratz Hack" instead, and only have it in that one hall of fame forum, then the guy getting a good loot ingame would get alot of "Gratz" counts, standing out as a heavy looter, this would encourage ppl to post their loots in the hall of fame. :smoke:
On my TODO list :wink:
mindbuster
01-01-2005, 12:02 AM
Ok, i downloaded the zip, but the instructions.txt doesnt say anything about which files needing editing :ermm:
Slapp3r
01-01-2005, 11:22 AM
Thanks *clicks install*
Slapp3r
01-01-2005, 11:37 AM
I cannot see the button how do i do file and template edits thanks for the help
mindbuster
01-02-2005, 11:27 AM
Anyone got instructions on file/template edits ?
Anyone got instructions on file/template edits ?
Yes. It was in the installer. When you go step by step, there is one page that tells you the file edits and another that tells you the template edits.
If you ran the installer already and didn't do the edits, there is option in the installer to jump to the file edits.
calvinnguyen
01-03-2005, 07:00 AM
just install, thanks Abe1
mindbuster
01-03-2005, 11:54 AM
Yes. It was in the installer. When you go step by step, there is one page that tells you the file edits and another that tells you the template edits.
If you ran the installer already and didn't do the edits, there is option in the installer to jump to the file edits.
Ahh, so thats why i couldnt find it :o
I like reading through the whole hack before installing :squareeyed:
MikaK
01-04-2005, 05:27 PM
*install* All seems ok.=M=
Intex
01-08-2005, 11:28 AM
Nice hack. I've installed it but have one small issue. As the style on my website is very different, the postbit_legacy template is very different. I've got my own image in place, so all I need is the actual link which allows the user to create the thanks post.
In your instructions it's this:
$post_thanks
Which creates the main button and link and as I can't use that, I just need the link itself :).
Thanks
Edit: Fixed Myself :).
For anyone that has a problem after upgrading to vbulletin 3.0.5. Simply run the installer again and all will then work as intended :)
Everytime a new person hits the tnaks button, do this make a new post or does it edit the same thankyou post everytime
Can have a url of this in action :)
Cheers
Chet
Intex
01-09-2005, 08:05 AM
The link for the thanks action is:
<a href="/forum/post_thanks.php?do=post_thanks&p=$post[postid]"></a>
Everytime a new person hits the tnaks button, do this make a new post or does it edit the same thankyou post everytime
Can have a url of this in action :)
Cheers
Chet
Intex
01-09-2005, 08:07 AM
OK, I've got everything work now except the admincp settings don't appear. I can see the Post Thanks options in the main vbulletin options, but when I select it, there's no options below.
I can see the option info in the phrases. Any ideas?
OK, I've got everything work now except the admincp settings don't appear. I can see the Post Thanks options in the main vbulletin options, but when I select it, there's no options below.
I can see the option info in the phrases. Any ideas?
No clue. Try running the installer again.
For anyone that has a problem after upgrading to vbulletin 3.0.5. Simply run the installer again and all will then work as intended :)
I realized there was a problem with the templates when you upgrade. I should be comming out with minor upadte soon to fix that problem for future updates.
Okiewan
01-09-2005, 01:43 PM
Database error in vBulletin 4.0.2:
Invalid SQL: INSERT INTO settinggroup VALUES ('post_thanks', 1234, 0)
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Ideas? I do have your Post Award hack installed (and love it!)
Ideas? I do have your Post Award hack installed (and love it!)
you have vbulletin 4.0.2??????
Intex
01-09-2005, 03:28 PM
Abe - It looks like it's because the queries didn't run properly to me. I tried running one of the ones from the install file directly in phpadmin:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)");
Produced the following error:
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 9
STR: ->
SQL: $DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
SQL-query :
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
MySQL said:
#1064 - 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 '$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES
All the queries where the syntax is using 'INSERT INTO' produce the same problem and these are all related to the settings. The other queries which ALTER tables, such as the 'user' and 'post' run successfully and they're working because it's tracking the amount of thank you's someone has.
Can you see what's wrong with the syntax? I'm running 3.0.1 and mySQL 3.23.49.
Okiewan
01-09-2005, 03:46 PM
you have vbulletin 4.0.2?????? LOL... yeah that was a joke for a another board admin. Guess I should change it back. :nervous:
Abe - It looks like it's because the queries didn't run properly to me. I tried running one of the ones from the install file directly in phpadmin:
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)");
Produced the following error:
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 9
STR: ->
SQL: $DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
SQL-query :
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
MySQL said:
#1064 - 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 '$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES
All the queries where the syntax is using 'INSERT INTO' produce the same problem and these are all related to the settings. The other queries which ALTER tables, such as the 'user' and 'post' run successfully and they're working because it's tracking the amount of thank you's someone has.
Can you see what's wrong with the syntax? I'm running 3.0.1 and mySQL 3.23.49.
I have no copy of v3.0.1. So I can't try. I'll try to fix this in my minor update in a few days.
Ideas? I do have your Post Award hack installed (and love it!)
I'll try to fix this for next version. I hope some time this week.
dacho
01-10-2005, 09:29 AM
did user can 10X to himself ?
if so, how can i repair that ?
did user can 10X to himself ?
if so, how can i repair that ?
A user can't thank him self.
Version 1.01 released.
Tiny update. When you upgrade your forum, the templates stay.
Intex
01-10-2005, 06:15 PM
Thanks Abi1, getting that working would be appreciated, then I can release the hack.
I have no copy of v3.0.1. So I can't try. I'll try to fix this in my minor update in a few days.
Thanks Abi1, getting that working would be appreciated, then I can release the hack.
I sent you a PM about this error.
Just ran the update to 1.01 and the hack stopped working .. click on "thanks" and nothing happens !?
Just ran the update to 1.01 and the hack stopped working .. click on "thanks" and nothing happens !?
do you a template that is not a child of templateid 1?
For now you can add these templates.
post_thanks_postbit
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" style="padding:0px">
<if condition="$nb == 1"><strong><phrase 1="User Says" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount] Users Say" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
</td>
<if condition="$bbuserinfo[usergroupid] == 6"><td class="alt2" style="padding:0px" align="right">
<a href="post_thanks.php?do=post_thanks_remove&p=$post[postid]">$vbphrase[post_thanks_remove]</a>
</td></if>
</tr>
<tr><td class="alt1" colspan="2"><div>$liste_user</div></td></tr>
</table>
</div>
$spacer_close
post_thanks_postbit_legacy
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$nb == 1"><strong><phrase 1="User Says" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount] Users Say" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
<if condition="$bbuserinfo[usergroupid] == 6"><br><a href="post_thanks.php?do=post_thanks_remove&p=$post[postid]">$vbphrase[post_thanks_remove]</a></if>
</td>
<td class="alt1">
<div>$liste_user</div>
</td>
</tr>
</table>
</div>
$spacer_close
Thanks Abe1 .. that worked.
Great support
Thanks Abe1 .. that worked.
Great support
Thanks.
I hope to come up wait a sollution for the install soon. Anyone else that has a problems with the templats not installing should add them manualy. Look up 2 posts.
PcCopat
02-03-2005, 09:23 AM
can i use this hack with hide hack? can the member who thanks for the post, see the hidden content? u see, i thank for the post and c the hidden content? is this possible? i know it is, cause i saw this in other boards. sorry for my english. it's not so good.
mindbuster
02-04-2005, 11:45 PM
How could i make it so the person getting thanked would recieve reputation too ?
Like one added reputation for each thank you he gets ?
The Realist
02-15-2005, 02:10 PM
Im not getting the thank you box to show under the posts?
Any ideas?
WORKING NOW:
Deinstalled hack, reinstalled and noticed the install file does not install the templates so I manually added them.
Thanks.
Eternal2u
02-21-2005, 12:44 PM
not getting any errors..
seems as tho i don't have the admin control over this mod, but i have the thank you edited intot he template and working fine in all forums..but i only want it for one section..
just the admin part is not working..it shows the post thank you hack int eh vbull options bit, but when i goto it it has a bar that says the mod name, and nothing underneath like it should be..
help please.
not getting any errors..
seems as tho i don't have the admin control over this mod, but i have the thank you edited intot he template and working fine in all forums..but i only want it for one section..
just the admin part is not working..it shows the post thank you hack int eh vbull options bit, but when i goto it it has a bar that says the mod name, and nothing underneath like it should be..
help please.
You have to explain more.
H@K@N
02-21-2005, 08:30 PM
*clicks install*
Abe1 :
I have installed this nice hack. but i want to activate it only for the first Post.
If i change in the Admin Section the : Only First Post to yes, it is still showing the Thank_you Button in all Post. If i switch to No, nothing happens.
Is there something wrong, or should i add all my Forum id's into : Individual Forums to Have for Only First Post ?
th@nks and gr33tz
*clicks install*
Abe1 :
I have installed this nice hack. but i want to activate it only for the first Post.
If i change in the Admin Section the : Only First Post to yes, it is still showing the Thank_you Button in all Post. If i switch to No, nothing happens.
Is there something wrong, or should i add all my Forum id's into : Individual Forums to Have for Only First Post ?
th@nks and gr33tz
Nope. That should do it. If you make the option to show only thanks by first posts, it should only show at the first posts. I have no idea why it doesn't work. Do you have other info that might help me figure it out?
H@K@N
02-21-2005, 08:55 PM
No clou, what info i can give you else, i have tried to make some other settings, but it is still showing on all Post, except the own Posts, there i cannot see the Button.
Can i redo the installtion of that hack ? Do i need to uninstall all changes to get it working for a reinstall ?
th@nks
chooah
02-21-2005, 10:42 PM
for some reason I'm getting the same problem...but everything else works absolutely fine, this is an amazing hack
chooah
02-21-2005, 11:32 PM
by the way i think a good extension to this would be, when a user presses the thanks button, it asks if they wish to place a comment, if so, they type in a comment....in order to view that users comment, you simply press thier name in the list of users that gave thanks (which has become a hyperlink)...or somethin like that :)
No clou, what info i can give you else, i have tried to make some other settings, but it is still showing on all Post, except the own Posts, there i cannot see the Button.
Can i redo the installtion of that hack ? Do i need to uninstall all changes to get it working for a reinstall ?
th@nks
Can I ask you one thing? Are you testing this on a test forum? or installed it on your forum? If you are testing it, remember, the 'thank you' button doesn't show if it's your own post.
Version 1.02 released.
Long awaited search feature is now in action. You can search for one user thanked posts or all thanked posts.
Also, there is an option ou should use after you upgrade your forum that way you get back the templates.
Download zip and follow the upgrade instructions.
H@K@N
02-22-2005, 02:49 PM
Can I ask you one thing? Are you testing this on a test forum? or installed it on your forum? If you are testing it, remember, the 'thank you' button doesn't show if it's your own post.
Hello Abe1,
i am using it on my Production System, and as i mentioned in my Post, that all Post have a Thank you button, except of my own, indepent on the Setting in ACP ....
Will try to update to 1.0.2, to see if its working then ....
gr33tz
Hello Abe1,
i am using it on my Production System, and as i mentioned in my Post, that all Post have a Thank you button, except of my own, indepent on the Setting in ACP ....
Will try to update to 1.0.2, to see if its working then ....
gr33tz
GREAT! That is what suppose to happen! You can't thank your own post so the button wont show. Look at the discription of this hack to see the other times the button wont show.
H@K@N
02-22-2005, 04:55 PM
GREAT! That is what suppose to happen! You can't thank your own post so the button wont show. Look at the discription of this hack to see the other times the button wont show.
Sorry Ab1, maybe i couldn't explain well :
If i change in Admincp the setting : post_thanks_forum_first_all = 1
Normally only the first Post has to be a Button Thank You, ok if its my Post, than no button appear thats clear.
But with this setting, ALL post have a thank_you Button, but my own Posts didn't have a button thats also clear.
The main question is, why i have on all other Posts a Thank you button, even i put the setting to only first Post ...
Ok lets try to figure it out :
If i enter a Forum Id, into : Individual Forums to Have for Only First Post
than its working, only first post in that Forum Id have the thansk button.
If i want to use it on all Forums, normally this field should be blank, isn't it ?
If i keep this field blank, all Post on all Forums have a Than_You Button.
gr33tz
Sorry Ab1, maybe i couldn't explain well :
If i change in Admincp the setting : post_thanks_forum_first_all = 1
Normally only the first Post has to be a Button Thank You, ok if its my Post, than no button appear thats clear.
But with this setting, ALL post have a thank_you Button, but my own Posts didn't have a button thats also clear.
The main question is, why i have on all other Posts a Thank you button, even i put the setting to only first Post ...
Ok lets try to figure it out :
If i enter a Forum Id, into : Individual Forums to Have for Only First Post
than its working, only first post in that Forum Id have the thansk button.
If i want to use it on all Forums, normally this field should be blank, isn't it ?
If i keep this field blank, all Post on all Forums have a Than_You Button.
gr33tz
OK. Let me see if I got this,
When you set the option 'Make the thank you button for only the first posts in topics,' it still still shows the button for all posts.
If this is the case, I'll try to look tonight at the code but I thought it was working.
H@K@N
02-22-2005, 05:08 PM
Yes thats the case, indepent of Setting in ACP for only in first Post, the Hack is showing it in ALL Posts ... ( except my own )
In the meanwhile i made the Upgrade into 1.0.2 with the Upgrade procedure ... just 4 info.
It is working if i set it to only first post, and give a Forum Id in the setting below, than only in that Forum, the first Post have a Button.
th@nks 4 checking
Gohan
02-22-2005, 05:09 PM
1.0.0 work fine :D, I don't need it
Turn hack on for only first posts of threads now works.
You can either download 1.03 and folow the instruction in the installer or just follow these instructions:
in the file /includes/functions_showthread.php
Find:
if ($vboptions['post_thanks_first_all'] == '1' AND $post[postcount] != 1)
and replace with:
if ($vboptions['post_thanks_forum_first_all'] == '1' && $post[postcount] != 1)
H@K@N
02-23-2005, 01:30 PM
Th@nks Abe1 now its working ....
just wondering, if i made somethign wrong, because the others mentioned that the hack is working :-)
gr33tz
Eternal2u
02-23-2005, 01:33 PM
http://gamesxposed.com/showthread.php?t=36681&page=1&pp=20
ok here is my explnation..the bove link shows that the thank you hack is working fine to the public..
however the admin panel options were supose to have with this mod is non-exsitent..
screenshot of it..
http://gamesxposed.com/upload/images39/thankyou%20%20not.1109172793.jpg
now if thats not enough explnation..well fuc i'm gona run into a wall full speed
Th@nks Abe1 now its working ....
just wondering, if i made somethign wrong, because the others mentioned that the hack is working :-)
gr33tz
Nope, this option wasn't working for anyone.
http://gamesxposed.com/showthread.php?t=36681&page=1&pp=20
ok here is my explnation..the bove link shows that the thank you hack is working fine to the public..
however the admin panel options were supose to have with this mod is non-exsitent..
screenshot of it..
http://gamesxposed.com/upload/images39/thankyou%20%20not.1109172793.jpg
now if thats not enough explnation..well fuc i'm gona run into a wall full speed
try running these quaruies:
INSERT INTO setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0);
INSERT INTO setting VALUES ('post_thanks_forum_off', 'post_thanks', '', '', '', 20, 0, 0);
INSERT INTO setting VALUES ('post_thanks_forum_first_all', 'post_thanks', '0','0', 'yesno', 30, 0, 0);
INSERT INTO setting VALUES ('post_thanks_forum_first','post_thanks', '', '','', 40, 0, 0);
INSERT INTO setting VALUES ('post_thanks_date_all','post_thanks', '1','1', 'yesno', 50, 0, 0);
INSERT INTO setting VALUES ('post_thanks_date_forum','post_thanks', '','', '', 60, 0, 0);
INSERT INTO setting VALUES ('post_thanks_usergroup_using', 'post_thanks', '', '', '', 70, 0, 0);
INSERT INTO setting VALUES ('post_thanks_user_useing', 'post_thanks', '', '', '', 80, 0, 0);
Eternal2u
02-24-2005, 09:12 AM
tghere already in there..
giving me duplicate error trying to run them.
could it being 3.0.7 have any affect?
tghere already in there..
giving me duplicate error trying to run them.
could it being 3.0.7 have any affect?
Not that i know of. I'm running it on 3.0.7 normaly.
I was able to install on 3.0.7 with out any problems.
xtreme-mobile
02-24-2005, 04:20 PM
does this work on vb 3.06
does this work on vb 3.06
It should. I don't see any reason why not.
xtreme-mobile
02-24-2005, 04:24 PM
ok i may try it :)
xtreme-mobile
02-24-2005, 04:51 PM
this is what i get when i click start installation
Database error in vBulletin 3.0.6:
Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'post_thanks_update_post_thanks_counters', 'Post Thank You Counters', '2')
mysql error: Duplicate entry 'post_thanks_update_post_thanks_counters-0-2' for key 2
mysql error number: 1062
Date: Thursday 24th of February 2005 11:50:00 AM
Script: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?step=dophrases
Referer: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php
Username: admin
IP Address: xxx.xxx.xxx.xx
this is what i get when i click start installation
Database error in vBulletin 3.0.6:
Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'post_thanks_update_post_thanks_counters', 'Post Thank You Counters', '2')
mysql error: Duplicate entry 'post_thanks_update_post_thanks_counters-0-2' for key 2
mysql error number: 1062
Date: Thursday 24th of February 2005 11:50:00 AM
Script: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?step=dophrases
Referer: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php
Username: admin
IP Address: xxx.xxx.xxx.xx
did you install twice? or any part of it?
can you try to uninstall then install?
xtreme-mobile
02-24-2005, 04:55 PM
ill click uninstall and try again
do i just upload the files then just siomply click start the installation?
ill click uninstall and try again
do i just upload the files then just siomply click start the installation?
yes. nothing else
xtreme-mobile
02-24-2005, 05:00 PM
k ill put everything back to norm and try again
xtreme-mobile
02-24-2005, 05:33 PM
getting errors now when uninstalling
Phrases Removed Successfully
Database error in vBulletin 3.0.6:
Invalid SQL: ALTER TABLE `user` DROP `post_thanks_user_amount`
mysql error: Can't DROP 'post_thanks_user_amount'. Check that column/key exists
mysql error number: 1091
Date: Thursday 24th of February 2005 12:25:45 PM
Script: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?do=uninstall&step=3
Referer: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?do=uninstall&step=2
Username: admin
and it wont let me upload my showthread to my ftp anymore it says exceeded its disk limit???
xtreme-mobile
02-24-2005, 05:36 PM
ok am getting somewhere with the re-installation but i think my showthread file is corrupted i cant download it to edit it again
xtreme-mobile
02-24-2005, 05:39 PM
have managed to download my show thread.php but its blank and ive lost the original :(
The-Aeon
02-27-2005, 10:48 AM
great hack :) I installed it.
I would click the Thank Button but I can't find it ;)
I have made a little language modifikation for my german board, I moded only one phrase and two templates.
you can see it on the image i attached. When you give me the permission, Abe1m, i could post that little mod :)
sorry for my bad english, i hope its not the worsed one ;)
great hack :) I installed it.
I would click the Thank Button but I can't find it ;)
I have made a little language modifikation for my german board, I moded only one phrase and two templates.
you can see it on the image i attached. When you give me the permission, Abe1m, i could post that little mod :)
sorry for my bad english, i hope its not the worsed one ;)
Sure you can post it. But I can't give any support for it.
dacho
03-07-2005, 10:21 AM
if user want to see who "10X" him ?
if user want to see who "10X" him ?
Go to your public profile and click to see the thanks that you were given.
LEAD_WEIGHT
03-10-2005, 12:59 AM
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
This is what i get for an error? any clues cause I will reinstall and follow the instructions agian. :disappointed:
vb3.0.7
If possible could u place the pic of section of edits here cause if I am doing my copy & paste wrong then I do not know what going on. I installed uninstalled in twice and get the same error. :o
or I can post my screenshots of my edits.
Post Thank You Hack version 1.03
upload
--------------------------------------------------------------------
post_thanks.php -> root dir ??? Forum Directory or public_html Dir.
post_thanks_acp.php -> /admincp/ this ok understood
post_thanks_install.php -> /admincp/ this ok understood
post_thanks.gif -> /images/buttons/ this ok understood
--------------------------------------------------------------------
http://www.theundergroundsource.com/forums/
LEAD_WEIGHT
03-12-2005, 12:34 AM
I found the problem it had to do with edits with extra spaces :p
mindbuster
03-12-2005, 06:44 AM
How could i implement this with uShop/uCash ?
I want to give the thanked person a small amount of uCash for each "thanks" he gets.
junkiesnetwork
03-15-2005, 02:29 AM
Yeah, thats what we want to do as well.. (ushop).. any way that's possible?
Timan
03-15-2005, 11:16 AM
Hello, awesome mod, one quick question, is there a way to edit the actual link of the thank you button, I'm trying to have it as text rather than a graphic.
y2ksa
03-15-2005, 12:08 PM
great hack m8 thank you
Hello, awesome mod, one quick question, is there a way to edit the actual link of the thank you button, I'm trying to have it as text rather than a graphic.
The link is in the PHP.
How could i implement this with uShop/uCash ?
I want to give the thanked person a small amount of uCash for each "thanks" he gets.
I'm not familer with ushop. I may a look at though some day.
xtreme-mobile
03-18-2005, 07:09 PM
im having probs getting this to work :(
when ive uploaded the files etc and go to the installation bit i get the following error
Database error in vBulletin 3.0.6:
Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'post_thanks_update_post_thanks_counters', 'Post Thank You Counters', '2')
mysql error: Duplicate entry 'post_thanks_update_post_thanks_counters-0-2' for key 2
mysql error number: 1062
Date: Friday 18th of March 2005 02:07:00 PM
Script: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?step=dophrases
Referer: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php
Username: admin
IP Address: xx.xxx.xxx.xxx
any ideas?
im having probs getting this to work :(
when ive uploaded the files etc and go to the installation bit i get the following error
Database error in vBulletin 3.0.6:
Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'post_thanks_update_post_thanks_counters', 'Post Thank You Counters', '2')
mysql error: Duplicate entry 'post_thanks_update_post_thanks_counters-0-2' for key 2
mysql error number: 1062
Date: Friday 18th of March 2005 02:07:00 PM
Script: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php?step=dophrases
Referer: http://www.extreme-mobile.com/forums/admincp/post_thanks_install.php
Username: admin
IP Address: xx.xxx.xxx.xxx
any ideas?
It seems like you tried running this script twice. Try to run the uninstaller then the installer again.
Lionel
03-21-2005, 10:31 PM
My problem is that none of the settings are displaying in the setting group in vboptions. And they are all in DB.
Reason: the order of mysql structure is not the same as the inserts.
so your group title got inserted in value
INSERT INTO setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0);
Can you please post a fix for me about the proper order of the inserts?
posting a screenshot
My problem is that none of the settings are displaying in the setting group in vboptions. And they are all in DB.
Reason: the order of mysql structure is not the same as the inserts.
so your group title got inserted in value
INSERT INTO setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0);
Can you please post a fix for me about the proper order of the inserts?
posting a screenshot
Your order doesn't look the same as everyone elses. I'll try to set up a fix for this in my next release. For not, use phpmyadmin and switch the values of what it says in the 'default value' and what it says is the 'oder value'. Edit for ALL 8 post_thanks options.
Lionel
03-21-2005, 11:08 PM
with all the 0 and 1 at least tell me what they are.
with all the 0 and 1 at least tell me what they are.
Thouse should be in the defualt values.
Lionel
03-21-2005, 11:12 PM
so basically I just worry about group title, option code and display order? The rest does not matter if I put 0 or 1, right?
so basically I just worry about group title, option code and display order? The rest does not matter if I put 0 or 1, right?
Correct. The main thing is to get the order going 10,20,30,40...
Or any number. Just make sure NOT '0'. If it's zero, it wont show.
chooah
03-22-2005, 07:26 AM
installed the update, when i search for a users thanked posts it blanks, and still the thanks icon is not exclusive to the first post (I have it setup in AdminCP so it should only show in the first post...) ... anyone else sharing this experience?
Lionel
03-23-2005, 02:48 AM
The counter in the first line does not seem to update, both as per attached image and as per your screenshot:
Posts/Compliments: 444/0
and the user has been thanked already.
The counter in the first line does not seem to update, both as per attached image and as per your screenshot:
Posts/Compliments: 444/0
and the user has been thanked already.
444/0 =
444 = his posts
0 = the amount of times he GAVE thanks
The next line says how many times he was thanked.
mikey86
03-25-2005, 02:30 AM
doe sthis hide the link aswell?
doe sthis hide the link aswell?
No it doesn't.
I modified this hack quite a bit and now i'm using it at my website :) thanks Abe ;)
* Polo clicks install...
teedizz
04-06-2005, 11:37 PM
Abe1...is there anyway to make it to where if someone clicks the Thanks icon that it kinda counts as a post? Reason being I run a forum where alot of stuff is hidden with the [*hide][*/hide] codes & I want it to where if someone clicks the thanks icon it shows whats behind the hide code instead of having to reply & see whats behind the hide code itself. Is this possible & if so how can this be done. Thank you bro
Abe1...is there anyway to make it to where if someone clicks the Thanks icon that it kinda counts as a post? Reason being I run a forum where alot of stuff is hidden with the [*hide][*/hide] codes & I want it to where if someone clicks the thanks icon it shows whats behind the hide code instead of having to reply & see whats behind the hide code itself. Is this possible & if so how can this be done. Thank you bro
i can easaly make the post count go up but that wont make it like he has a pos in the thread.
eXtremeTim
04-08-2005, 03:47 AM
Hey just a note. Might want to rework the showthread part. It will add one query per post. Meaning if 100 posts are showed on the page this hack adds 100 queries.
teedizz
04-08-2005, 04:12 AM
i can easaly make the post count go up but that wont make it like he has a pos in the thread.
Is there anyway to do it? I really dont care about the post count going up, Just a simple click of the Thank you button & then whutever is behind the [*hide][*/hide] code appears. Can this be done?
eXtremeTim
04-08-2005, 04:23 AM
Also if you take the url for thanking in a post such as http://www.extremechatforums.com/forums/post_thanks.php?do=post_thanks&p=415 and change the number you can thank yourself. I took it and changed it to http://www.extremechatforums.com/forums/post_thanks.php?do=post_thanks&p=425 which was the postid for the announcement I just made and was able to thank myself without any problems. Might want to get that fixed as well. Users shouldn't be able to thank themselves. That would just lead to abuse of the system.
Is there anyway to do it? I really dont care about the post count going up, Just a simple click of the Thank you button & then whutever is behind the [*hide][*/hide] code appears. Can this be done?
I'm sure it can. But I have no idea what your code looks like and it would be a whole separate hack.
Hey just a note. Might want to rework the showthread part. It will add one query per post. Meaning if 100 posts are showed on the page this hack adds 100 queries.
I have learned more about PHP since I wrote this hack. I may soon re-write parts of it.
Also if you take the url for thanking in a post such as http://www.extremechatforums.com/forums/post_thanks.php?do=post_thanks&p=415 and change the number you can thank yourself. I took it and changed it to http://www.extremechatforums.com/forums/post_thanks.php?do=post_thanks&p=425 which was the postid for the announcement I just made and was able to thank myself without any problems. Might want to get that fixed as well. Users shouldn't be able to thank themselves. That would just lead to abuse of the system.
Thans for posting the out. I did put stops to a few of thouse tricks but when I realease again I should have all these little things fixed.
eXtremeTim
04-08-2005, 05:12 PM
Sounds good. If you need any help hit me up.
teedizz
04-08-2005, 07:03 PM
I'm sure it can. But I have no idea what your code looks like and it would be a whole separate hack.
Is there something that I can send you so you can look at it & tell me what I can do?
Eternal2u
04-11-2005, 03:25 AM
A Way to cheat the system and thank yourself....this is my lil exploit for this mod..
Also i include a quick fix at the end of it..that is working on my forums...
Take the URL http://yourwebsite.com/post_thanks.php?do=post_thanks&p=
Then you add the post number. You can find this by waving your cursor over the link at the upper left hand corner of the post...the number like #129 for example..
Or just click on the #129 and in the big long line like this http://www.yourwebsite.com/forum/showpost.php?p=637918&postcount=129 the bold number is what you would take and put at the end of the url posted above..
so basicially if i wanted to thank myself i would do the following url on the website if it was installed..
http://yourwebsite.com/post_thanks.php?do=post_thanks&p=637918
Now the bold number is the number of my post and would allow me to thank myself..
So erm author..might wanna fix this in your next version..
And a quick fix for those of you having probs with your users cheating it..
/*
moved this here....
if ($bbuserinfo['userid'] == $userid) {
echo "++++ off retard";
exit;
}
*/
I've just re-installed this hack and have a problem with the button alignment.
How can I bring it into line ?
I've just re-installed this hack and have a problem with the button alignment.
How can I bring it into line ?
I'd have to see the postbit template.
I'd have to see the postbit template.
Thanks Abe1
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<br />
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="28" align="left" valign="top" class="pbitcat"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50" height="28" alt="" /></td>
<td width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" valign="middle"><div class="smallfont" align="center">$post[icon] <strong>$post[title]</strong></div></td>
<td width="28" height="28" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="28" height="28" alt=" " border="0" /></td>
</tr>
</table>
<!-- End top category table setup -->
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $scrolltothis>
<div class="normal" style="float:$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> </if>
<if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> </if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> </if>
$post[iplogged]
</div>
<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> is $post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<div class="smallfont"><a href="mc_nominate.php?$session[sessionurl]do=nominate&memberid=$post[userid]">$vbphrase[mc_nominate_now]</a></div>
</td>
<td width="100%"> </td>
<td valign="top" nowrap="nowrap">
<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]/$vbphrase[post_thanks_thanks]: $post[posts]/$post[post_thanks_user_amount]
<br>
<if condition="$userinfo[post_thanks_thanked_times] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Time" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$userinfo[post_thanks_thanked_posts] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</div>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
</td>
<if condition="$bbuserinfo[petSHO]==0">
<td valign="top">
$post[mypet]
</td>
</if>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1">
<!-- message, attachments, sig -->
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong><if condition="$forum['allowcategories'] AND $thread['category'] AND $post['postid'] == $thread['firstpostid']">$thread[category] - </if>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div>$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
<div align="$stylevar[right]">
<!-- controls -->
<!-- post thank you hack -->
$post_thanks_button
<!-- end post thank you hack -->
<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" align="middle" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" align="middle" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" align="middle" border="0" /></a>
</if>
<if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" align="middle" border="0" /></a>
</if>
<!-- / controls -->
</div>
<!-- message, attachments, sig -->
</td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- bottom table setup -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image:url($stylevar[imgdir_misc]/dist_btm_table.gif)">
<tr>
<td width="100%" height="14" align="left" valign="top" class="btmcat"> </td>
</tr>
</table>
<!-- End bottom table setup -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<!-- post thank you hack -->
$post_thanks
<!-- end post thank you hack -->
Open: includes/functions_showthread.php
Find:
eval('$post_thanks_button = "<a href=\"post_thanks.php?do=post_thanks&p=$post[postid]\"><img src=\"$stylevar[imgdir_button]/post_thanks.gif\" alt=\"$vbphrase[post_thanks_thanks]\" border=\"0\" ></a>";');
Replace with:
eval('$post_thanks_button = "<a href=\"post_thanks.php?do=post_thanks&p=$post[postid]\"><img src=\"$stylevar[imgdir_button]/post_thanks.gif\" alt=\"$vbphrase[post_thanks_thanks]\" border=\"0\" align=\"middle\" ></a>";');
Thanks for the quick response Abe1 .. that solved the problem.
snake-boy
04-17-2005, 01:57 PM
This has to be one of the most fantastic hacks I have ever seen! I absolutely LOVE it. Thank you so much for creating this useful hack.
Clicks INSTALL
-snake
PS, Installed flawlessly in to 3.0.7.
-=Sniper=-
04-24-2005, 11:06 AM
any chance of posting the .psd file? I want to change the text to helpful.
thanks
-=Sniper=-
04-24-2005, 02:36 PM
ok, anyone figured out how to fix the nospace / extra space problem.
heres the problem, if the thanked post is the last one, there is no space above the thanks post bit. Also theres a extra space added under it.
http://www.hardwareforums.com/showthread.php?p=31917
thanks
EDIT: I changed the style so theres no need :) though I'd still be interested to know how its done...
-=Sniper=-
04-24-2005, 05:29 PM
Hey, I'm not sure if its during the new install or update, I had no options displaying in control panel, so I used the script to insert again, but got a error! so looking at the entries in phpmyadmin I found the values were in the wrong place.
the values for "disaply order" are in the "default value" field, vice versa.
the values for "group title" are in the "value" field
the values for "option code" are in the "group title" field
and the value for "values" are in the "option code" field!
use this in phpmyadmin to update, if you have this problem. (change setting to your prefix_setting).
UPDATE `setting` SET `varname` = 'post_thanks_date_all', `value` = '1', `optioncode` = 'yesno', `displayorder` = 50, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_date_all';
UPDATE `setting` SET `varname` = 'post_thanks_date_forum', `value` = '', `optioncode` = '', `displayorder` = 60, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_date_forum';
UPDATE `setting` SET `varname` = 'post_thanks_forum_first', `value` = '', `optioncode` = '', `displayorder` = 40, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_first';
UPDATE `setting` SET `varname` = 'post_thanks_forum_first_all', `value` = '0', `optioncode` = 'yesno', `displayorder` = 30, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_first_all';
UPDATE `setting` SET `varname` = 'post_thanks_forum_off', `value` = '', `optioncode` = '', `displayorder` = 20, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_off';
UPDATE `setting` SET `varname` = 'post_thanks_on_off', `value` = '1', `optioncode` = 'yesno', `displayorder` = 10, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_on_off';
UPDATE `setting` SET `varname` = 'post_thanks_usergroup_using', `value` = '', `optioncode` = '', `displayorder` = 70, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_usergroup_using';
UPDATE `setting` SET `varname` = 'post_thanks_user_useing', `value` = '', `optioncode` = '', `displayorder` = 80, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_user_useing';
smacklan
04-27-2005, 02:38 PM
When I try to run the uninstall I get the following:
Warning: Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening '/home/strength/public_html/forum/admincp/post_thanks_install.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Need help!
Hey, I'm not sure if its during the new install or update, I had no options displaying in control panel, so I used the script to insert again, but got a error! so looking at the entries in phpmyadmin I found the values were in the wrong place.
the values for "disaply order" are in the "default value" field, vice versa.
the values for "group title" are in the "value" field
the values for "option code" are in the "group title" field
and the value for "values" are in the "option code" field!
use this in phpmyadmin to update, if you have this problem. (change setting to your prefix_setting).
UPDATE `setting` SET `varname` = 'post_thanks_date_all', `value` = '1', `optioncode` = 'yesno', `displayorder` = 50, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_date_all';
UPDATE `setting` SET `varname` = 'post_thanks_date_forum', `value` = '', `optioncode` = '', `displayorder` = 60, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_date_forum';
UPDATE `setting` SET `varname` = 'post_thanks_forum_first', `value` = '', `optioncode` = '', `displayorder` = 40, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_first';
UPDATE `setting` SET `varname` = 'post_thanks_forum_first_all', `value` = '0', `optioncode` = 'yesno', `displayorder` = 30, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_first_all';
UPDATE `setting` SET `varname` = 'post_thanks_forum_off', `value` = '', `optioncode` = '', `displayorder` = 20, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_forum_off';
UPDATE `setting` SET `varname` = 'post_thanks_on_off', `value` = '1', `optioncode` = 'yesno', `displayorder` = 10, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_on_off';
UPDATE `setting` SET `varname` = 'post_thanks_usergroup_using', `value` = '', `optioncode` = '', `displayorder` = 70, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_usergroup_using';
UPDATE `setting` SET `varname` = 'post_thanks_user_useing', `value` = '', `optioncode` = '', `displayorder` = 80, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE `varname` = 'post_thanks_user_useing';
I think something was changed in recent vb releases. I'm going to add the field names to my next release.
When I try to run the uninstall I get the following:
Warning: Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening '/home/strength/public_html/forum/admincp/post_thanks_install.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Need help!
I've got no clue.
-=Sniper=-
04-27-2005, 03:02 PM
suggestions for a page which displays
Most Thanked Post | Most Thanked User | Most Thanks Given
(or top 10 for each)
suggestions for a page which displays
Most Thanked Post | Most Thanked User | Most Thanks Given
(or top 10 for each)
When I have a chance, I'll be making one for CMPS Portal.
When I have a chance, I'll be making one for CMPS Portal.
Awesome, I'm interested too...
Martin CX
04-27-2005, 09:02 PM
I get no AdminCP controls? As you can see in the screenshot there is nothing there?
It doesn't turn up in the left navbar either, though that isn't a major problem as I can just type in the URL for the post_thanks_acp.php.
Please, what went wrong?
Bubble #5
04-30-2005, 02:50 AM
We are using 3.07 but our memberinfo appears to be different :(.
The instructions for this mod say:
In Template MEMBERINFO: Find:
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
However that does not exsist :(
The closest that we have is:
<td width="40%" class="infoleft">$vbphrase[total_posts]</td>
<td width="60%" class="inforight"><strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)</td>
How should we alter that so that the mod works correctly? Thanks.
JohnBee
05-01-2005, 03:09 PM
I am freaking out with this hack!
I was running the older 1.02 ver at some point.
I updated it but the hack never really worked up tp snuff when someone clicks the
thank you button it doesn show the thanks panel but then everyone else gets
a thank you button under that thread.
also, it shows the button in forums that are not suppose to show thanks.
I know I have some code from older version still mixed in, I did the uninstall
but with all the changes I don't know which order to run things anymore!
is there another way to clean out every bit of code from every version from
my forums and start fresh?
Bubble #5
05-01-2005, 03:18 PM
Hi John. Sadly I don't think this hack is being supported anymore :( My question has been sitting there for several days now (as of this post) with no response :( Regarding your question, don't you have backups of before you installed the hack? If not, then I would work backwards and make sure that everything is removed from the install. For example; if it says "add xxx after yyy" then make sure that xxx is no longer in your code...
JohnBee
05-01-2005, 04:31 PM
Well I am happy to say that I worked through it on my own.
What I had to do was gather every Post thank you hack I had (4) starting from v.02
and did an install uninstall in backwards order.
In the end I found the bots of code that were plaguing my forums in some of the
earlier versions, when I was finished I took a deep breath and installed v 1.03 fresh.
I thought the installed was botched when I went out to my AdminCP /forum manager
and couldn't find the Post thank you hack controls there, but just before I was going
to strip everything off I thought I should through a peek in the vb control settings.
and there I found the >new< Post Thank You Hack settings :D
So now after some quick testing everything seems to work properly now. :)
I do kind of miss the individual forum controls though instead of the new system
with forum ID's.
To bad there is no more support on this hack :(
Hi John. Sadly I don't think this hack is being supported anymore :( My question has been sitting there for several days now (as of this post) with no response :( Regarding your question, don't you have backups of before you installed the hack? If not, then I would work backwards and make sure that everything is removed from the install. For example; if it says "add xxx after yyy" then make sure that xxx is no longer in your code...
Sorry, I was away for Passover. I hope in the next few days to look into this problem. There seems to be a few problems with 3.0.7 and I hope to have them all figured out. I only work on my hacks in my free time and hope to clear some time for it in the next few days.
Well I am happy to say that I worked through it on my own.
What I had to do was gather every Post thank you hack I had (4) starting from v.02
and did an install uninstall in backwards order.
In the end I found the bots of code that were plaguing my forums in some of the
earlier versions, when I was finished I took a deep breath and installed v 1.03 fresh.
I thought the installed was botched when I went out to my AdminCP /forum manager
and couldn't find the Post thank you hack controls there, but just before I was going
to strip everything off I thought I should through a peek in the vb control settings.
and there I found the >new< Post Thank You Hack settings :D
So now after some quick testing everything seems to work properly now. :)
I do kind of miss the individual forum controls though instead of the new system
with forum ID's.
To bad there is no more support on this hack :(
Like i said it my first post, I'm still supporting it. I changed the vb version to 3.0.6 until I sort out a few things.
Bubble #5
05-02-2005, 01:53 PM
I hope in the next few days to look into this problem.
Thank you Abe1. We truly do appreciate the help :)
JohnBee
05-02-2005, 02:00 PM
Yes I agree with Bubble no.5
thank you for staying with it. We need more people to stick with the hacks
around here some potentially greats mods go south due to loss of interest
or suppport :9
Good to see your sticking with it.
Watson
05-02-2005, 02:00 PM
My options dont show up when going to AdminCP>VB Options>Thank You Hack>
The only options there are to save or reset
And as I aint got the options in the Admin CP yet, I am able to limit this hack to only certain forums?? Also is there anyway for the thanks to be added in just 1 thank you at the bottom of the 1st post, again dunno if all this is in the options as I cant get in to see them
Watson
05-07-2005, 12:21 AM
anyone able to help on this??
anyone able to help on this??
Yes. Read my posts a drop earlier. I'm going to try to fix this as soon as I have time.
Watson
05-09-2005, 12:04 AM
ahh, sorry mate :)
Cheers for that
Watson
-=Sniper=-
05-09-2005, 02:00 PM
thanks will be updating later.
The biggest thing about this update is that when you now view a page that has posts, this hack no longer makes one or two queries per post it shows for this hack. Now, there is only ONE query for time you access a showthread page. To explain better, if you go to a page that has 30 posts showing, you would be executing about 45 queries. Now you just execute about 15 queries!
Because of this, I have added one more column to the post_thanks table. The last step of the update process will update the table so it can be compatible with this update. It may take a few minutes for that process.
Also, I added a file edit that will cash the templates used so 1 query gets saved.
If anyone had problems with the settings, it should all be fixed now. Either run an uninstall and then install or just run the update.
I also added options to give reputation to users who got thanked or give a post count to users who give thanks.
Ill try to gate some better pictures in a day or two.
Also, Im going to try to release an add-on to CMPS portal that gives stats.
nexialys
05-09-2005, 02:08 PM
hum.. would be better to have a list of forumid where the hack is activated, instead of the opposite... a site with 100 forums and only one or two to activate the tool will have pain to make the list...
hum.. would be better to have a list of forumid where the hack is activated, instead of the opposite... a site with 100 forums and only one or two to activate the tool will have pain to make the list...
I'll see what i can do for next version.
-=Sniper=-
05-09-2005, 02:43 PM
I get this
Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209
Paul M
05-09-2005, 02:56 PM
Why is this a whole new thread - it's only an upgrade from 1.03 to 1.10 ?
I get this
Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209
What happend if you find:
foreach ($post_thanks_cash AS $thanks)
and replace with
@foreach ($post_thanks_cash AS $thanks)
What happend if you find:
foreach ($post_thanks_cash AS $thanks)
and replace with
@foreach ($post_thanks_cash AS $thanks)
forget trying this. I'm going to give you some thing else to do.
-=Sniper=-
05-09-2005, 03:06 PM
I get this
parse error, unexpected T_FOREACH in /includes/functions_showthread.php on line 209
Find:
foreach ($post_thanks_cash AS $thanks)
{
if ($thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
{
$post_thanks_already ++;
}
}
and replace with this:
if ($post_thanks_cash)
{
foreach ($post_thanks_cash AS $thanks)
{
if ($thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
{
$post_thanks_already ++;
}
}
}
Let me know if you get the error in a later place and if you only get the error on pages that dont have any thanks.
-=Sniper=-
05-09-2005, 03:16 PM
ok its working :) thanks
also during the upgrade process all my settings were reset :( had to redo them, could you avoide the problem in the future updates?
demo: http://www.hardwareforums.com/showthread.php?t=5319
thanks for the excellent hack.
ok its working :) thanks
also during the upgrade process all my settings were reset :( had to redo them, could you avoide the problem in the future updates?
demo: http://www.hardwareforums.com/showthread.php?t=5319
thanks for the excellent hack.
You only needed that correction for one spot? I'm not going to implement it unless I see others have the problem also. I don't know why you got the error.
I gave a warning when you first clicked 'upgrade' that the settigns are being reset and that you should remeber what they are. In the future, I 'hope' I wont have to reset them again.
I'm glad you like it :)
-=Sniper=-
05-09-2005, 03:30 PM
yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.
on mine I have it it like this
<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>
even with one thanks it says "1 users"
btw: did the upgrade have any effect on the templates? changes?
yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.
on mine I have it it like this
<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>
even with one thanks it says "1 users"
btw: did the upgrade have any effect on the templates? changes?
in includes/functions_showthread.php
find all the times
$number_rows
and replace with
$nb
I'll update the zip download in a min. Also, anyone else who installed v1.10 alreadyshould do this.
Zip updated. Anyone who downloaded and installed already, just follow the instructions in the previus post.
Watson
05-09-2005, 04:01 PM
Thanks for this, will give it a shot when I got my forums back online, doing some maint, and upgrading
konstance
05-09-2005, 04:06 PM
When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:
Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209
Please advise what to do about that.
thanks!
snake-boy
05-09-2005, 04:24 PM
Tried to upgrade as instructed, and when posting a message I get "error in functions_showthread.php"
Now clicking on any post gives me:
Database error in vBulletin 3.0.7:
Invalid SQL: SELECT * FROM award AS award ORDER BY awardid ASC
mysql error: Unknown column 'awardid' in 'order clause'
mysql error number: 1054
Got no errors during the install process, made the file changes with no probems as directed by the installer.
Help?
-snake
When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:
Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209
Please advise what to do about that.
thanks!Find:
foreach ($post_thanks_cash AS $thanks)
{
if ($thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
{
$post_thanks_already ++;
}
}
and replace with this:
if ($post_thanks_cash)
{
foreach ($post_thanks_cash AS $thanks)
{
if ($thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
{
$post_thanks_already ++;
}
}
}
I just updated the zip again with this last fix. Everything should work fine now (I hope).
konstance
05-09-2005, 04:38 PM
Thanks Abe1, it works fine now.
Tried to upgrade as instructed, and when posting a message I get "error in functions_showthread.php"
Now clicking on any post gives me:
Database error in vBulletin 3.0.7:
Invalid SQL: SELECT * FROM award AS award ORDER BY awardid ASC
mysql error: Unknown column 'awardid' in 'order clause'
mysql error number: 1054
Got no errors during the install process, made the file changes with no probems as directed by the installer.
Help?
-snake
You may have edited my hack over another hack. The table 'award' has nothing to do with this hack.
snake-boy
05-09-2005, 06:11 PM
I have this hack installed as well:
hxxp://www.vbulletin.org/forum/showthread.php?t=61108
I don't understand how yours could be installed 'over' this one. I had both installed and working perfectly before this upgrade, now I'm stranded with a shut board. :(
I have tried uninstalling the Thank You hack and reinstalling it from scratch (with the fix you added above). Result stays the same. Clicking on any post gives the error above. Creating a new post, clicking on submit gives the error, but the post DOES appear in the forum if I refresh the forum page, but clicking on the post goes back to this error.
Could you please take a look at the details of the awards hacks and determine if your installer is destroying anything unintentionally. I can't be the only one with both these hacks installed, and it's bound to create a compatibility problem for others too.
Please assist me further.
thanks you
-snake
I have this hack installed as well:
hxxp://www.vbulletin.org/forum/showthread.php?t=61108
I don't understand how yours could be installed 'over' this one. I had both installed and working perfectly before this upgrade, now I'm stranded with a shut board. :(
I have tried uninstalling the Thank You hack and reinstalling it from scratch (with the fix you added above). Result stays the same. Clicking on any post gives the error above. Creating a new post, clicking on submit gives the error, but the post DOES appear in the forum if I refresh the forum page, but clicking on the post goes back to this error.
Could you please take a look at the details of the awards hacks and determine if your installer is destroying anything unintentionally. I can't be the only one with both these hacks installed, and it's bound to create a compatibility problem for others too.
Please assist me further.
thanks you
-snake
I took a look. I think the best would be to get a fresh functions_showthread.php and do both of these hacks file edits. It seems that this error your getting is comming from the award not the thanks.
BigIke
05-09-2005, 06:30 PM
Nice work Abe. My members love the addition.
Nice work Abe. My members love the addition.
Glad to hear that. Just dont forget to click 'install'. Also, the best part about this update is the speed increase when viewing threads. On my forum, I cut the queries down from about 47 to about 15. The speed the page was created went down like 60-70%!
-=Sniper=-
05-09-2005, 06:56 PM
in includes/functions_showthread.php
find all the times
$number_rows
and replace with
$nb
I'll update the zip download in a min. Also, anyone else who installed v1.10 alreadyshould do this.
on doing so the thanked_postbit no longer shows, under the thanked post.
on doing so the thanked_postbit no longer shows, under the thanked post.
You have to edit in 3 spots. Make sure you did all 3.
snake-boy
05-09-2005, 07:05 PM
Ok, I tried copying over a fresh copy and making the changes as specified, but it does not help at all, as I am still getting the same error each time.
I appreciate your help, but could you please suggest anything else I could try. I'm getting really despirate now :( I wish I had the php knowledge to be able to be of more help, but I don't know how to do much more than is specfied in the instructions.
Please help.
thank you
-snake
Ok, I tried copying over a fresh copy and making the changes as specified, but it does not help at all, as I am still getting the same error each time.
I appreciate your help, but could you please suggest anything else I could try. I'm getting really despirate now :( I wish I had the php knowledge to be able to be of more help, but I don't know how to do much more than is specfied in the instructions.
Please help.
thank you
-snake
I hope this helps. Let me disect your error.
Invalid SQL: SELECT * FROM award AS award ORDER BY awardid ASC
mysql error: Unknown column 'awardid' in 'order clause'
Unknown column 'awardid' in 'order clause' can only mean that there is no column in the award table that is called awardid.
This seems to be a problem with the award system and you should try re-installing it or something like that. I'm sure if you remove the award hack code from the file you shouldn't get any errors. As you saw when you removed all of my hack you were still getting errors.
If you have phpmyadmin, I can look at your database at see what is missing fromt he award system. You'd have to send me a PM with the info on how to get in.
Other wise, there is nothing I can do.
-=Sniper=-
05-09-2005, 08:40 PM
You have to edit in 3 spots. Make sure you did all 3.
thanks
datainternet
05-09-2005, 09:17 PM
Hi,
First of all: This is really a great hack.
I have only a small (template) problem and I hope you can help me.
I attached 2 screenshots so you can better see how the situation is.
https://vborg.vbsupport.ru/external/2005/05/16.jpg
This is the situation when a user thanked a Post of another user in the thread.
https://vborg.vbsupport.ru/external/2005/05/16.jpg
This is the situation when a user thanked a Post of another user in the end of the thread. This is the last post.
You see there is missing a border-line.
I have no idea how to solve this problem. Hope you have more ideas.
It would be really great when you could help me with this little problem and so make the hack perfect for me :).
MFG datainternet
Hi,
First of all: This is really a great hack.
I have only a small (template) problem and I hope you can help me.
I attached 2 screenshots so you can better see how the situation is.
https://vborg.vbsupport.ru/attachment.php?attachmentid=26192&stc=1
This is the situation when a user thanked a Post of another user in the thread.
https://vborg.vbsupport.ru/attachment.php?attachmentid=26193&stc=1
This is the situation when a user thanked a Post of another user in the end of the thread. This is the last post.
You see there is missing a border-line.
I have no idea how to solve this problem. Hope you have more ideas.
It would be really great when you could help me with this little problem and so make the hack perfect for me :).
MFG datainternet
Nothing to do with me. It seems to be a vB problem with legacy. Go look, if you dont have any thanks on the bottom, there is still something connected that shouldn't be.
eXtremeTim
05-09-2005, 11:07 PM
Good to see this new version out. I will see about upgrading tonight.
Upgraded with no problems on 3.0.6 .. great hack :)
Watson
05-10-2005, 07:28 AM
I still get no options whatsoever, done a fresh install on this, and my Admin options are empty :(
mgurain
05-10-2005, 11:40 AM
Hello Abe1 ,,
Very nice hack !! I am interested in installation, but before that I would like to know :
1. What vb files will be changed by the hack ? because I am always saving a backup copy of the files which I depend on to do any modification required by a hack,
and by installing your hack without knowing the changed files I will loose consistency of my files !!
2. I need a psd of thanks button to change the text to my language :)
thanks in advance,,
I still get no options whatsoever, done a fresh install on this, and my Admin options are empty :(
Sorry, I've got no clue. I'd have to see your database.
Hello Abe1 ,,
Very nice hack !! I am interested in installation, but before that I would like to know :
1. What vb files will be changed by the hack ? because I am always saving a backup copy of the files which I depend on to do any modification required by a hack,
and by installing your hack without knowing the changed files I will loose consistency of my files !!
2. I need a psd of thanks button to change the text to my language :)
thanks in advance,,
1) My installer doesn't actully change the files. You have to do it but it lets you know what to do. Anyways, the files are:
showthread.php
admincp/index.php
includes/functions_showthread.php
2) Sorry, I dont have one.
mgurain
05-10-2005, 01:47 PM
thanks for your clarification.
I asked the question because I installed a hack that did change a file without me knowing, so I am now carefull of installers :)
I managed to create my own image,,
thanks,,
mgurain
05-10-2005, 02:39 PM
hello,,
I installed the hack but errors occured when using it !
knowing that I am already installing (Yet Another Award System) if it causes the error as somebody said !
Every thing is ok even the thanks comes and my click on it counted, but :
when I click on it this error message appears :
There seems to have been a slight problem with the منتدى شبكة الجارودية الثقافية database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 3.0.7:
Invalid SQL:
UPDATE user
SET reputation = + reputation
WHERE userid = 1
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 '+ reputation
WHERE userid = 1' at line 2
mysql error number: 1064
Date: Tuesday 10th of May 2005 10:28:46 AM
Script: http://forum.aljarodiah.net/post_thanks.php?do=post_thanks&p=79030
Referer: http://forum.aljarodiah.net/showthread.php?t=7019
Username: خادم لأهل البيت
IP Address: 212.138.47.21
any help please,,
smacklan
05-10-2005, 03:22 PM
I am getting the exact same MySQL error message and condition on my board since I upgraded.
Yeppes...me too:
Database error in vBulletin 3.0.7:
Invalid SQL:
UPDATE vb3_user
SET reputation = + reputation
WHERE userid = 3
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 '+ reputation
WHERE userid = 3' at line 2
mysql error number: 1064
Hi, sorry for the error.
Upload the attached file over writing the current one in the root dir of your forum.
(I also updated the zip.)
smacklan
05-10-2005, 06:29 PM
That did the trick Abe...thanks!! **Installed** :up:
mgurain
05-10-2005, 08:59 PM
That did the trick Abe...thanks!! **Installed** :up:
Thanks a lot Abe1
Hoang Tu Ao Den
05-11-2005, 01:23 AM
I'm very interested in the Post Thank You Mod . However, I want know if there is modification to that Mod or another Mod that can do the following:
1. Do what the Post Thank You Mod do.
2. There's a hidden text tag that we can use, we user use this tag, a picture will appeared showing the text is hidden.
3. In order to see the text, user has to be registered longer than 30 days or have the reputation of xxx or more , or ... has 50 post or more.
Thank you.
I'm very interested in the Post Thank You Mod . However, I want know if there is modification to that Mod or another Mod that can do the following:
1. Do what the Post Thank You Mod do.
2. There's a hidden text tag that we can use, we user use this tag, a picture will appeared showing the text is hidden.
3. In order to see the text, user has to be registered longer than 30 days or have the reputation of xxx or more , or ... has 50 post or more.
Thank you.
2 and 3 have nothing to do with 1. You got to put in a mod request. Not here.
Thanks a lot Abe1
Just dont forget to click 'install' so you can be notified about updates.
Whew...finally figured it out. Thanks anyway.
Vaelen
05-18-2005, 06:42 AM
Thanks
hehe, ;)
Watson
05-18-2005, 12:44 PM
just tried this again, and again still no admin options :(
Dead like a stick in the water for me, lost interest in this, tried it half a dozen times
Hoang Tu Ao Den
05-29-2005, 11:11 PM
Sorry if I confused you guys earlier,
Is there anyway to combine Post Thanks You Hack with Lock Down hack, or Hide hacks ?
( User can only see the hidden content only after clicking the Thank You button).
Waiting for the reply.
Thanks
Sorry if I confused you guys earlier,
Is there anyway to combine Post Thanks You Hack with Lock Down hack, or Hide hacks ?
( User can only see the hidden content only after clicking the Thank You button).
Waiting for the reply.
Thanks
Sorry, not familur with the hack. I'm not doing any work on this hack until vB comes out with 3.5 so it should be a few weeks.
xtreme-mobile
05-31-2005, 07:29 PM
hi
can anyone help me
ive installed the ahck but when it got to the TEMLPLATE edits the text i had to find in the postbit etc could not be found, what do you do if it says the code im looking for does not exist?
many thanks
dean
xtreme-mobile
06-01-2005, 06:42 PM
any one :(
any one :(
Can you PM me your postbit template? (please put it in "html" tags)
SCRIPT3R
06-02-2005, 10:46 PM
[NEW]Option to give a user who receives thanks reputation points.
i think i'm blind 'cause i can't find this option anywhere (need to turn it off)... can someone guide me. :)
i think i'm blind 'cause i can't find this option anywhere (need to turn it off)... can someone guide me. :)
It's built-in to be off but there are all the options in the 'vbulletin options' in the user cp.
SCRIPT3R
06-03-2005, 02:45 AM
It's built-in to be off but there are all the options in the 'vbulletin options' in the user cp.
i figured there was an option somewhere, but didn't notice it in your screenshots posted here. i'll look again and look for it int he CP options. soo far it's getting a good response though at one of my forums. thnx.
michael5472
06-05-2005, 02:29 PM
amazing such a cool idea "thanks" :D
Here is small fix you can do so that the usernames will show in alphbetical order.
(This is done over what you had placed while installing the hack.)
Open includes/functions_showthread.php
Find:
$post_thanks_cashe = $DB_site->query("SELECT * FROM ". TABLE_PREFIX ."post_thanks WHERE threadid='$post[threadid]'");
Replace with:
$post_thanks_cashe = $DB_site->query("SELECT * FROM ". TABLE_PREFIX ."post_thanks WHERE threadid='$post[threadid]' ORDER BY username");
H@K@N
06-07-2005, 07:22 PM
Hi @ll,
after i switched to php 5.04 i am getting a blank page when i clicking on Th@nks, but the thank is accepted.
What could be the reason ?
th@nks
Hi @ll,
after i switched to php 5.04 i am getting a blank page when i clicking on Th@nks, but the thank is accepted.
What could be the reason ?
th@nks
No clue. I'd have to test on php 5.04 to find out. As far as I know, vBulletin doesn't fully support php5.
H@K@N
06-07-2005, 07:32 PM
i knew, but everything except 2 hacks is working ...
If i click on the Thanks Button, i have as Url following on the blank Page :
http://www.aslanlar.de/post_thanks.php?do=post_thanks&p=112033
so system is accepting the click on thanks, but its not jumping to the thread back.
gr33tz
i knew, but everything except 2 hacks is working ...
If i click on the Thanks Button, i have as Url following on the blank Page :
http://www.aslanlar.de/post_thanks.php?do=post_thanks&p=112033
so system is accepting the click on thanks, but its not jumping to the thread back.
gr33tz
The jumping back is a vBulletin jumping function. maybe turn off the hack until vB comes out with 3.5 and I release a version of this hack using the plug-in/hook system.
H@K@N
06-07-2005, 07:57 PM
Ok thx then i will wait, but one remark 4 your conclusion.
The Hack Delete Post with one Button in Postbit, located here: https://vborg.vbsupport.ru/showthread.php?t=70684
is working, because it also uses the jumping back function ...
gr33tz
SCRIPT3R
06-26-2005, 07:18 PM
getting the following error when someone tried to THANK a deleted user.
Database error in vBulletin 3.0.3:
Invalid SQL:
UPDATE user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times
WHERE userid =
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
mysql error number: 1064
Date: Wednesday 22nd of June 2005 12:38:18 AM
Script: http://www.hookupboard.com/forums/post_thanks.php?do=post_thanks&p=584191
Referer: http://www.hookupboard.com/forums/showthread.php?t=35183
Username: xxx
IP Address: xxx
getting the following error when someone tried to THANK a deleted user.
Thanks. I will try to fix for my vb3.5 upgrade.
vNPowers
06-27-2005, 11:38 AM
Thanks, Nice
1nf3rn0
06-28-2005, 10:23 PM
getting this error when i click on the thanks button everything goes thru and shows properly, but as it says thankl you for saying thanks, it shows the below error...other than that, that is the only problem...dont know why or how...i have added maybe 2 other hacks which would be the welcome panel hack and the who visited today (24 hour option) hack...if you can help thank you...if not im lookin more into it now!
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290
getting this error when i click on the thanks button everything goes thru and shows properly, but as it says thankl you for saying thanks, it shows the below error...other than that, that is the only problem...dont know why or how...i have added maybe 2 other hacks which would be the welcome panel hack and the who visited today (24 hour option) hack...if you can help thank you...if not im lookin more into it now!
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290
Did you download the latest zip file?
1nf3rn0
07-01-2005, 04:03 PM
Did you download the latest zip file?
yes sir i did...and thank you for the reply and the support...i really love this hack but i disabled fo rthe time being because of the erros...but yes, i did dload the latest version and reinstalled and i know i did it right....i check and dbl checked, and triple checked then quadruple checked...lol....just cant figure out this lil error...
mindbuster
07-02-2005, 03:21 PM
I'm not familer with ushop. I may a look at though some day.
Bump :D
How do I upgrade from 1.0? What's the best (safest method)?
thx in advance
1nf3rn0
07-02-2005, 05:59 PM
How do I upgrade from 1.0? What's the best (safest method)?
thx in advance
you should be able to dload the latest version and then add the install file to your admincp and run that bad boy, within that you should see where it says "upgrade to1.x"...hope that helps...in other words...its all in the new installer file!
How do I upgrade from 1.0? What's the best (safest method)?
thx in advance
I think the best would be to run the update for each one at a time. Here are the versions you missed. Just upload the install file and run it. Then do it to the next version. and finaly to the last version.
BlackRabbit
07-04-2005, 05:58 PM
getting this error when i click on the thanks button everything goes thru and shows properly, but as it says thankl you for saying thanks, it shows the below error...other than that, that is the only problem...dont know why or how...i have added maybe 2 other hacks which would be the welcome panel hack and the who visited today (24 hour option) hack...if you can help thank you...if not im lookin more into it now!
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290
Yep.. me too.. getting the same error here as well.. please fix it please.. :)
BR ;)
paul41598
07-06-2005, 12:27 PM
The search feature doesnt work in this hack? Or for me at least. Everytime I thank someone, then go back to view all my thanked posts from my user profile, it says
"Sorry - no matches. Please try some different terms"
Any ideas?
I rebuilt all the counters and it still does it
The search feature doesnt work in this hack? Or for me at least. Everytime I thank someone, then go back to view all my thanked posts from my user profile, it says
"Sorry - no matches. Please try some different terms"
Any ideas?
I rebuilt all the counters and it still does it
"View all thanked posts" to is see what posts you GOT thanked in. NOT which posts YOU thanked people.
It's bacily there because users wanted to see where they were thanked.
You want a feature to see were YOU thanked? Ask me for it. I'm just about to come out with the vb3.5 upgrade and if you want this feature in, let me know.
1nf3rn0
07-07-2005, 04:29 PM
getting this error when i click on the thanks button everything goes thru and shows properly, but as it says thankl you for saying thanks, it shows the below error...other than that, that is the only problem...dont know why or how...i have added maybe 2 other hacks which would be the welcome panel hack and the who visited today (24 hour option) hack...if you can help thank you...if not im lookin more into it now!
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290
any ideas Abe1?...glad i'm no tthe only one gettin this error...
any ideas Abe1?...glad i'm no tthe only one gettin this error...
I dont get it but I may know why. It doesn't cause any real problems now, does it?
1nf3rn0
07-07-2005, 06:24 PM
sure doesn't bro....just displays it at the top very quickly when it redirects you to the post...but nothing is harmed and no other errors
sure doesn't bro....just displays it at the top very quickly when it redirects you to the post...but nothing is harmed and no other errors
So i'm not looking into it one bit now. If when I release for vb3.5 you still get an error like that, then i'll try to fix it. I'm just not trying to fix trival bugs in this version any more.
1nf3rn0
07-07-2005, 07:40 PM
thx for the support!
uninstalled!
paul41598
07-07-2005, 09:40 PM
"View all thanked posts" to is see what posts you GOT thanked in. NOT which posts YOU thanked people.
It's bacily there because users wanted to see where they were thanked.
You want a feature to see were YOU thanked? Ask me for it. I'm just about to come out with the vb3.5 upgrade and if you want this feature in, let me know.
Can you adapt this small feature to 3.0.7, since I prob wont upgrade any time soon? Or can you charge for it? Let me know via pm or not. Thanks
Can you adapt this small feature to 3.0.7, since I prob wont upgrade any time soon? Or can you charge for it? Let me know via pm or not. Thanks
I thought about this feature last and realized that i wont be able to do it to easly. It would require me comparing every post to your thanked posts. I dont see me adding it now or in the near future.
I am using this hack as agree button. If anybody agree with the post he can hit "I agree".
Since some users accidentally hit this button /instead of reply button/, they would like to correct it themself.
Is there any way to implement this? Also I can only remove all votes, not only one.
Thank you
I am using this hack as agree button. If anybody agree with the post he can hit "I agree".
Since some users accidentally hit this button /instead of reply button/, they would like to correct it themself.
Is there any way to implement this? Also I can only remove all votes, not only one.
Thank you
I will try to implement this into my vb3.5 version.
maharajah
07-11-2005, 12:21 PM
I dont get the "The following users have thanked" box under the thanked post.
All changes have been made properly.
I dont get the "The following users have thanked" box under the thanked post.
All changes have been made properly.
Were the templates installed? Are there any thanks on the post?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.