Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Canned Replies - User Saved Text for Replies, Threads, PMs & Infractions Details »»
Canned Replies - User Saved Text for Replies, Threads, PMs & Infractions
Version: 2.5.6, by bananalive bananalive is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 08-01-2008 Last Update: 03-23-2009 Installs: 188
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.


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
Installation:
  1. Follow instructions included in .zip
  2. Click Install
Future Features:
  • Request new features in comments
Modification Conflicts:
  • Icons for UserCP uses different usercp_shell so auto-insert link plugin doesn't work in UserCP. Click here to see manual template edits needed.
Translations: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.
Благодарность от:
caoducanh9x

Comments
  #212  
Old 04-28-2009, 10:42 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is weird. I have never noticed that before.
Reply With Quote
  #213  
Old 05-02-2009, 02:57 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
i thought that but i use both firefox and IE and when quoting a post using the quote button or typing anything in the reply box it will be entirely replaced by the canned reply when you click canned reply,

Like i said if its a pain don't waste your time over it!
I've tested this in firefox:

template cr_js:
Code:
<script language="javascript" type="text/javascript">
function storeCaret (textEl) {
	if (textEl.createTextRange) 
		textEl.caretPos = document.selection.createRange().duplicate();
		}
function insertAtCaret (text) {
text = text.replace(/\\"/ig, "\"");
var textb = text;
text = text.replace(/ \<br\>/ig, "");
var o = document.getElementById("{$editorid}_iframe");
if (o) {
document.getElementById("{$editorid}_iframe").contentWindow.document.body.innerHTML += textb;
}
	if (document.vbform.message.createTextRange && document.vbform.message.caretPos) {
		var caretPos = document.vbform.message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		}
       	else
			document.vbform.message.value += text;
     
     document.vbform.message.focus();
     setCursorPosition(document.vbform.message,document.vbform.message.value.lastIndexOf(text)+3,1);
     }
function setCursorPosition(oInput,oStart,oEnd) {
   	       if( oInput.setSelectionRange ) {
    	         oInput.setSelectionRange(oStart,oEnd);
             } 
             else if( oInput.createTextRange ) {
                var range = oInput.createTextRange();
                range.collapse(true);
                range.moveEnd('character',oEnd);
                range.moveStart('character',oStart);
                range.select();
             }
       }
function showOutput(){
if (o) {
document.getElementById("{$editorid}_iframe").contentWindow.document.body.innerHTML += textb;
}
document.getElementById('msgOutput').innerHTML += document.vbform.message.value;
}
</script>
Reply With Quote
  #214  
Old 05-02-2009, 07:54 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just added that to a test style and tried it out in IE 7 - Worked like a charm!

Thanks very much for looking in to it and solving the issue, answering posts just became a whole lot easier
Reply With Quote
  #215  
Old 05-05-2009, 09:10 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
Just added that to a test style and tried it out in IE 7 - Worked like a charm!

Thanks very much for looking in to it and solving the issue, answering posts just became a whole lot easier
Bananalive, i can confirm this works with IE7, Firefox, Google Chrome, it also works with these OS's Ubuntu, Windows and MAC.

Again, thanks for taking the time to create this fix!
Reply With Quote
  #216  
Old 05-05-2009, 06:53 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
Bananalive, i can confirm this works with IE7, Firefox, Google Chrome, it also works with these OS's Ubuntu, Windows and MAC.

Again, thanks for taking the time to create this fix!
Same here, thanks for the fix Banana.
Reply With Quote
  #217  
Old 05-12-2009, 06:40 PM
Arbit3r Arbit3r is offline
 
Join Date: Dec 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know if this works for 3.8.x? Im getting this error when trying to set permissions.



Code:
Database error in vBulletin 3.8.2:

Invalid SQL:
UPDATE vb_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = '<!-- Order=\"1\" -->Administrators',
	`description` = '',
	`usertitle` = 'Administrator',
	`opentag` = '<B><font color=\"red\">',
	`closetag` = '</font></B>',
	`passwordexpires` = '180',
	`passwordhistory` = '360',
	`cannedreplies` = '1',
	`maxcr` = '8',
	`ecdownloadpermissions` = '32767',
	`ecexcludecatlist` = '',
	`ecdownloadsmaxuploadtotal` = '-1',
	`ecdownloadsmaxdailydl` = '-1',
	`ecdownloadsmaxdailyfiles` = '-1',
	`ecdownloaddelaygrp` = '-1',
	`moderatepm_permissions` = '4',
	`pmquota` = '5000',
	`pmpermissions` = '7',
	`pmsendmax` = '5',
	`pmthrottlequantity` = '0',
	`forumpermissions` = '16777215',
	`genericpermissions` = '2147483583',
	`attachlimit` = '0',
	`calendarpermissions` = '63',
	`wolpermissions` = '31',
	`adminpermissions` = '3',
	`genericpermissions2` = '1',
	`genericoptions` = '63',
	`profilepicmaxwidth` = '350',
	`profilepicmaxheight` = '400',
	`profilepicmaxsize` = '999999999',
	`avatarmaxwidth` = '100',
	`avatarmaxheight` = '100',
	`avatarmaxsize` = '999999999',
	`signaturepermissions` = '245759',
	`sigpicmaxwidth` = '650',
	`sigpicmaxheight` = '200',
	`sigpicmaxsize` = '999999999',
	`sigmaxrawchars` = '0',
	`sigmaxchars` = '0',
	`sigmaxlines` = '0',
	`sigmaxsizebbcode` = '7',
	`sigmaximages` = '0',
	`albumpermissions` = '255',
	`albumpicmaxwidth` = '600',
	`albumpicmaxheight` = '600',
	`albumpicmaxsize` = '100000',
	`albummaxpics` = '100',
	`albummaxsize` = '0',
	`usercsspermissions` = '63',
	`visitormessagepermissions` = '63',
	`socialgrouppermissions` = '65535',
	`maximumsocialgroups` = '5',
	`groupiconmaxsize` = '999999999',
	`mgc_cb_evo_permissions` = '0',
	`mgc_cb_evo_nbmsg_show` = '',
	`mgc_cb_evo_nbmsg_perday_show` = '',
	`arcadepermissions` = '255',
	`minpoststoplay` = '0',
	`minreptoplay` = '-1000',
	`minreglengthtoplay` = '0'
WHERE usergroupid=6;

MySQL Error   : Unknown column 'mgc_cb_evo_permissions' in 'field list'
Error Number  : 1054
Request Date  : Tuesday, May 12th 2009 @ 09:34:48 PM
Error Date    : Tuesday, May 12th 2009 @ 09:34:48 PM
Script        : http://movie-forumz.org/admincp/usergroup.php?do=update
Referrer      : http://movie-forumz.org/admincp/usergroup.php?do=edit&usergroupid=6
IP Address    : 82.33.12.57
Username      : ***
Classname     : vB_Database_MySQLi
MySQL Version : 5.0.51a-24+lenny1
Reply With Quote
  #218  
Old 05-14-2009, 10:42 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arbit3r View Post
Anyone know if this works for 3.8.x? Im getting this error when trying to set permissions.



Code:
Database error in vBulletin 3.8.2:

Invalid SQL:
UPDATE vb_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = '<!-- Order=\"1\" -->Administrators',
	`description` = '',
	`usertitle` = 'Administrator',
	`opentag` = '<B><font color=\"red\">',
	`closetag` = '</font></B>',
	`passwordexpires` = '180',
	`passwordhistory` = '360',
	`cannedreplies` = '1',
	`maxcr` = '8',
	`ecdownloadpermissions` = '32767',
	`ecexcludecatlist` = '',
	`ecdownloadsmaxuploadtotal` = '-1',
	`ecdownloadsmaxdailydl` = '-1',
	`ecdownloadsmaxdailyfiles` = '-1',
	`ecdownloaddelaygrp` = '-1',
	`moderatepm_permissions` = '4',
	`pmquota` = '5000',
	`pmpermissions` = '7',
	`pmsendmax` = '5',
	`pmthrottlequantity` = '0',
	`forumpermissions` = '16777215',
	`genericpermissions` = '2147483583',
	`attachlimit` = '0',
	`calendarpermissions` = '63',
	`wolpermissions` = '31',
	`adminpermissions` = '3',
	`genericpermissions2` = '1',
	`genericoptions` = '63',
	`profilepicmaxwidth` = '350',
	`profilepicmaxheight` = '400',
	`profilepicmaxsize` = '999999999',
	`avatarmaxwidth` = '100',
	`avatarmaxheight` = '100',
	`avatarmaxsize` = '999999999',
	`signaturepermissions` = '245759',
	`sigpicmaxwidth` = '650',
	`sigpicmaxheight` = '200',
	`sigpicmaxsize` = '999999999',
	`sigmaxrawchars` = '0',
	`sigmaxchars` = '0',
	`sigmaxlines` = '0',
	`sigmaxsizebbcode` = '7',
	`sigmaximages` = '0',
	`albumpermissions` = '255',
	`albumpicmaxwidth` = '600',
	`albumpicmaxheight` = '600',
	`albumpicmaxsize` = '100000',
	`albummaxpics` = '100',
	`albummaxsize` = '0',
	`usercsspermissions` = '63',
	`visitormessagepermissions` = '63',
	`socialgrouppermissions` = '65535',
	`maximumsocialgroups` = '5',
	`groupiconmaxsize` = '999999999',
	`mgc_cb_evo_permissions` = '0',
	`mgc_cb_evo_nbmsg_show` = '',
	`mgc_cb_evo_nbmsg_perday_show` = '',
	`arcadepermissions` = '255',
	`minpoststoplay` = '0',
	`minreptoplay` = '-1000',
	`minreglengthtoplay` = '0'
WHERE usergroupid=6;

MySQL Error   : Unknown column 'mgc_cb_evo_permissions' in 'field list'
Error Number  : 1054
Request Date  : Tuesday, May 12th 2009 @ 09:34:48 PM
Error Date    : Tuesday, May 12th 2009 @ 09:34:48 PM
Script        : http://movie-forumz.org/admincp/usergroup.php?do=update
Referrer      : http://movie-forumz.org/admincp/usergroup.php?do=edit&usergroupid=6
IP Address    : 82.33.12.57
Username      : ***
Classname     : vB_Database_MySQLi
MySQL Version : 5.0.51a-24+lenny1
Error with mgc chatbox
Reply With Quote
  #219  
Old 05-16-2009, 03:36 PM
Arbit3r Arbit3r is offline
 
Join Date: Dec 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, i did not see that down there. I've been having allot of issues with that MGC chatbox. Thanks for the help.
Reply With Quote
  #220  
Old 05-18-2009, 09:18 PM
Arbit3r Arbit3r is offline
 
Join Date: Dec 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another question. I seem to be having issues with "Shared Canned Replies" When a canned reply is selected that has been added by another user or "Shared" nothing comes up in the text box and the drop down menu becomes blank.

Any help appreciated.

-Raf
Reply With Quote
  #221  
Old 05-19-2009, 04:58 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arbit3r View Post
Another question. I seem to be having issues with "Shared Canned Replies" When a canned reply is selected that has been added by another user or "Shared" nothing comes up in the text box and the drop down menu becomes blank.


Any help appreciated.


-Raf
Shared replies are shared by using {shared}, whichever user shares them everyone who has access to use canned replies can use them, any personal canned replies not shared remain hidden from everyone else.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05332 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete