Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #142  
Old 11-09-2008, 04:51 PM
Samsine Samsine is offline
 
Join Date: Sep 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for making this wunderfull Hack
Reply With Quote
  #143  
Old 11-09-2008, 06:40 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One problem: when you choose a canned reply, it removes all the line breaks/ space between paragraphs.

Can this be fixed, or how can I fix it?

Thanks!
Reply With Quote
  #144  
Old 12-01-2008, 07:33 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
PHP Code:
<if condition="is_member_of($bbuserinfo,5)"><font size=1><b>canned reply 1:</b></if>

<if 
condition="is_member_of($bbuserinfo,6)"><font size=1><b>canned reply 1:</b><b>canned reply 2:</b></if> 
can this mode be made in the cannedreplies.php?

I'm clutching at straws as i'm no coder
Reply With Quote
  #145  
Old 12-13-2008, 02:19 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
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.

Except for this bug, this is a great mod.
Reply With Quote
  #146  
Old 12-14-2008, 06:42 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
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>";
} }
Reply With Quote
  #147  
Old 12-15-2008, 08:47 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #148  
Old 12-15-2008, 12:24 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
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.
Reply With Quote
  #149  
Old 12-15-2008, 01:45 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bananalive, Fantastic!!!! works with both html and bbcode and leaves all ', ", ?, / as they should be....well done, what a weight off!
Reply With Quote
  #150  
Old 12-15-2008, 11:07 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #151  
Old 12-16-2008, 03:59 AM
LordNinja LordNinja is offline
 
Join Date: Jul 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestion:

Can you make a mod like this, but admins can define canned replies for usergroups?

-> add a canned reply -> select which usergroup(s) can use it

It would be useful for define canned replies for moderators like "post closed", "post sticked" etc. like the "multi-moderations" on Invision.

Or if you know a mod like it for vBulletin, please point me out.

Thanks
Reply With Quote
Reply


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 02:08 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.05363 seconds
  • Memory Usage 2,328KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (2)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