Version: 1.00, by filburt1
Developer Last Online: May 2007
Version: 2.3.x
Rating:
Released: 03-19-2003
Last Update: Never
Installs: 24
No support by the author.
This hack allows members to reply to messages with "canned text" (prewritten messages). This is useful for moderators and helpful members who find that they are constantly answering the same question over and over again.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I had the problems of no permission to access the canned text but did what Boofo said to just click Save in the Admin Options and it worked without any alteration to the hack. Just FYI
Works great. Excellent idea Filburt1. I had a problem initially. I couldn't see the canned text drop-down and had the permission denied message when selecting the link for the Canned Text in the usercp.
I read a little further on and noticed that the reason was because you needed to visit the admincp and just save the options to activate everything. Once I'd done this - everything worked fine. May be a good idea to update the instructions to help others .
Today at 11:57 AM hellsatan said this in Post #95 I'll vouch for that Bob
Nice filby
Satan
You're only saying that because it's true.
Test time! Ok, Chris, you should know this one, then. How do I edit the javascript to allow me to add the canned text to a message instead of it replacing a message in a reply?
Test time! Ok, Chris, you should know this one, then. How do I edit the javascript to allow me to add the canned text to a message instead of it replacing a message in a reply?
You guys are going to be kicking yourselves: Changing the code so that the canned text is added to the message instead of replacing the message only requires the addition of ONE CHARACTER to ONE LINE of code.
In the newreply template, find:
PHP Code:
if (number != 0) document.vbform.message.value = cannedtext[number];
Change it to:
PHP Code:
if (number != 0) document.vbform.message.value += cannedtext[number];
Just goes to show you that nine hundred-ninety-nine times out of a thousand, the answer is simpler than we expect it to be...
Now I have a question of my own: Any idea how I can add the canned text drop-down to my newthread.php, so that my users can use their canned text when posting a new thread?
Thank you very much, reismarktq2. That works a lot better than it did. Any idea how to reset the drop down after we pick a canned text from the listing so we can add more than one per message if needed?
By the way, I have it in the newthread also. Basically just do the same thing in newthread as you did in the newreply and it will work.