![]() |
Automatic 'Thank you' Hack
Total hack's description : http://www.vbulletindev.net/forums/h...hack&hackid=49
Site : http://www.vbulletindev.net/forums You can set in wanted forums with this hack, an option which displays in a special post of a thread, the list of members who clicked the 'Thank you' button. So, instead of having a lot of posts saying : 'Great', 'Big thx :D' ... you only have one post. The postbit (legacy or not) automatically adapts itself too. The phrase to thank the thread creator change if there is one user or more which clicks the button, so the verb is always correct There is an other option too in Forum manager, to set if you want to see at which date the 'Thank you' button was clicked by the member. Hack requested by boofo Eventual bugs :Correct with it |
[high]* Giveit2u43 clicks "Thank You" Button ;)[/high]
|
How do you delete a thanks post? There's no edit button on its post and also doesnt show when you click delete posts in thread tools =|
|
Also, does et ajoutez en dessous mean add after?
|
im hving problems with it repeating the thanks (username) twice in the thanks bot post.
|
I had the same problem. I just deleted the second phrase in the new postbit.
|
I had a problem when I click on the botton I got this message:
Any ideas about this error? And How I can fixed it? MAny thanks CALVIn, you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. ======================== Also I don't understand this intruction: Don't forget to add a prefix to table's name if you use one in your config.php : What's exactly I have to do inside my config.php |
interesting one
/me asks: what will come next? |
/me installed
|
Hey, buddy, looks good. ;)
Can you make a button that says Thank you! instead of Thanks it! ? ;) |
@dirtymerc vbmenu_register("postmenu_494851", true); : For the phrase repeated twice, it's the problem I had with conditional in templates, but when I fix it in PHP files, it seems to work, I look at it
Yes, ajoutes en dessous, mean add under An edit button, no and I don't will do it, you don't choose if a user thanks or not ;) I look for other problems too |
How about the button that says Thank you! ?
|
To remove the sentence repeated twice, replace the thanks_postbit with :
PHP Code:
And the thanks_postbit_legacy with : PHP Code:
@calvin : where do you get this no_permission screen ? If you have it when you click the button Thanks, it's coz you are not logged in Prefix : look in your config.php, $prefix=... you have to add in my SQL queries, the prefix before tables name I update the zip Edit boofo : I do your button now ;) |
I saw this on an ipb the other day and thought how useful it would be to have on this site
|
Zip updated
Boofo, the new button is in the zip ;) |
I forgot to ask, sorry. If a user clicks the button more than once on other visitis to the site, it won't add their name again will it? It should only show the first time they click it. Does it already do this?
|
Yes boofo it already does this
If a user clicked twice (or more) the button, after the first time, he will get an error message saying he has already thanked for this thread. Unregistered members can not thank too |
Thank you very much. Wouldn't it be easier if the thank you button didn't show up for unergistered users, also?
|
If you want ;)
Just add a conditional in the showthread template on this button so PHP Code:
|
LOL I was going to do that but I didn't know if you wanted to updated the install file with it, too. Excellent job, my friend. Clciking install and installing. ;)
|
How do we set the thank you button to only show up on the forums it is turned on for? Right now, it shows up on all forums. ;)
|
In the showthread template :
Replace Code:
<td class="smallfont" align="right"><a href="newreply.php?do=thanks&threadid=$thread[threadid]"> Code:
<if condition="$forum[showthanks]==1"><td class="smallfont" align="right"><a href="newreply.php?do=thanks&threadid=$thread[threadid]"> |
Yeah, I just figured that out before coming up here to tell you. ;)
Only, this is what I used and it seems to work fine. HTML Code:
<if condition="$forum['showthanks']"> |
Is there a way to add this:
Quote:
|
this is a great hack.
how about adding the total pple who thank the thread starter? something like: 5 Users already said Thank You!: username1, username2, username3, username4, username5 it would fit better for my forum. Thanks for your work! |
I don't want to work on vBulletin now ;)
But I'll look for these 2 things (title for boofo, really not hard, and for you counter vitrox, not harder ) |
When you are ready to work on vBulletin again, I have a couple things to talk to you about. PM me when you are aready. ;)
|
I'll have a really hard night this evening, and will not be able to work tomorrow, I think I'll stay at bed all the day ! :p
Monday, I look for this ;) |
PM me Monday and we'll talk then. Hope you feel better. ;)
|
Hi thank you for the hack everything works great so far :)
I'd like to point a few things........ 1 if you delete a thread with a thank you post the thank you talbe doen not get deleted in the db. Can you add the function to remove the db entry if a thread get deleted? 2 ability to bump a post when a user say thank you 3 admin should be able to delete thank you post 4 like other have requested I would like to see a counter of the totla user that said thank you :) Apart of that great job! Mone' |
Quote:
$tableprefix = ' '; Do I add this line in like as below: BUT WHEN I RUN IT STILL GIVE ME ERROR. I am really don't know how to run sql Error SQL-query : $tableprefix = ' ' 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 '$tableprefix = ' '' at line 3 ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL; $tableprefix = ''; CREATE TABLE `thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `threadid` INT(10) NOT NULL ); |
Quote:
|
Quote:
|
Just run the query as it is and you will be allright.
|
Quote:
Error SQL-query : ALTER TABLE `forum` ADD `showthanks` INT( 1 ) DEFAULT '0' NOT NULL MySQL said: #1060 - Duplicate column name 'showthanks' ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL; CREATE TABLE `thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `threadid` INT(10) NOT NULL ); |
I run success for SQL queries on my database, but I don't understand for this line:
Don't forget to add a prefix to table's name if you use one in your config.php Look in config.php I see this: $tableprefix = ''; What do I need to do? because right now when I click on the " thank you" button to test. It give me this message: Calvin, you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. |
Just run these 3 queries and don't worry about the table_prefix. You don't have one. ;)
Quote:
|
I have already run it. And following all intruction that he gave. But when I test to click on a button "Thank you" , It said I did't have permision like that message previous posts.
|
Quote:
Quote:
|
Quote:
|
All times are GMT. The time now is 05:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|