Description:
This mod allows each user to store standard replies which they can quickly access upon creating a reply, thread, pm or infraction.
[Demo here - registered members have permissions to use canned replies]
Features:
Adding and editing canned replies is fully integrated into the User CP with vBulletin Editor. [+] Quick Link -> User Control Panel; Then scroll down page and you will see 'Edit your Canned Replies' url to canned replies is http://www.your-forum.com/cannedreplies.php
Permissions can be set per usergroup
(AdminCP -> Usergroups -> Usergroup Manager -> {Select Usergroup} -> Can use Canned Replies)
(AdminCP -> Usergroups -> Usergroup Manager -> {Select Usergroup} -> Maximum Canned Replies Per User)
Quickly Reply with Standard Message either in Quick Reply [+] or Advanced Reply [+]
Can also be used in NewThread [+] User Infractions [+] and PM System
Suggestions: If you have a suggestion about this modification, please get in touch here Donations: If you want to donate please click 'Support Developer'
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Is it possible to set some the permissions of the actual canned replies?, i want some of the canned replies available to the moderators only (usergroup id 5) but all of the replies available to admin, is it possible? perhaps using something like
Thanks, it works. Though It has some issues when using --> ' <-- in canned posts. the slash \ is being added when actually using the canned post in a thread thread.
Example:
Quote:
It\'s
we\'ll
you\'ll
And the list goes on .
Yes, same here. Please correct this bug. This bug causes the need to edit every canned reply after posting, which kinda defeats the purpose of canned replies.
Yes, same here. Please correct this bug. This bug causes the need to edit every canned reply after posting, which kinda defeats the purpose of canned replies.
Except for this bug, this is a great mod.
Name: Canned Replies
Hook Location: global_start
Code:
if ($permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']) {
if (THIS_SCRIPT == 'newreply' OR THIS_SCRIPT == 'newthread' OR THIS_SCRIPT == 'infraction' OR THIS_SCRIPT == 'private' OR THIS_SCRIPT == 'showthread') {
$userid = $vbulletin->userinfo['userid'];
$crtest .= "$vbphrase[cannedreplies]: <br />";
$crtest .= "<select onchange=\"insertAtCaret(this.options[this.selectedIndex].value)\">";
$crtest .= "<option value=\"\"></option>";
$crs = $db->query_read("SELECT id, title, reply FROM " . TABLE_PREFIX . "cannedreplies WHERE userid=$userid ORDER BY title ASC");
while($row = $db->fetch_array($crs)) {
$row[reply] = preg_replace("#(\r\n|\n|\r)#s", "\r\n <br>", addslashes($row[reply]));
$row[reply] = str_replace('\"', '"', $row[reply]);
$row[reply] = str_replace("\'", ''', $row[reply]);
$crtest .= "<option value=\"$row[reply]\">$row[title]</option>";
}
$crtest .= "</select>";
} }
Bananalive, nice to see you back and thanks for taking the time to look at this, for some reason it now removes " and ' although doesn't cause a parse error!
Bananalive, nice to see you back and thanks for taking the time to look at this, for some reason it now removes " and ' although doesn't cause a parse error!
EDIT: it also removes ?
Sorry it's because vBulletin has converted special characters into their symbol. Import attached product file.