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
  #122  
Old 10-20-2008, 10:52 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, nice hack i'm using it on 3.7.3 without problems, one request if you would, i would want to create a set of canned responses for my mods to use and a set for my admin, i dont want the mods to be able to set their own i want us all singing from the same sheet as it were!

Is there a way to store the canned responses and perhaps set an IF condition somewhere something like
PHP Code:
<if condition="is_member_of($bbuserinfo,2)">....cannedreplies 
i'm no coder and i copied that if condition from something else, but is it possible?

If you can supply the code and where to put it i am capable of that!
Reply With Quote
  #123  
Old 10-21-2008, 11:07 AM
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 hack i'm using it on 3.7.3 without problems, one request if you would, i would want to create a set of canned responses for my mods to use and a set for my admin, i dont want the mods to be able to set their own i want us all singing from the same sheet as it were!

Is there a way to store the canned responses and perhaps set an IF condition somewhere something like
PHP Code:
<if condition="is_member_of($bbuserinfo,2)">....cannedreplies 
i'm no coder and i copied that if condition from something else, but is it possible?

If you can supply the code and where to put it i am capable of that!
Try this... (it makes everyone share canned replies)

Give yourself full canned replies permissions.

Give your mods the following permissions:
Can use Canned Replies: Yes
Maximum Canned Replies per User: 0
Find and delete in plugin 'Canned Replies'
PHP Code:
WHERE userid=$userid 
This will achieve:
  • You (Administrators) can add/ edit/ use canned replies
  • Moderators can view/use canned replies
Reply With Quote
  #124  
Old 10-21-2008, 12:39 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 bananalive View Post
Try this... (it makes everyone share canned replies)

Give yourself full canned replies permissions.

Give your mods the following permissions:
Can use Canned Replies: Yes
Maximum Canned Replies per User: 0
Find and delete in plugin 'Canned Replies'
PHP Code:
WHERE userid=$userid 
This will achieve:
  • You (Administrators) can add/ edit/ use canned replies
  • Moderators can view/use canned replies
Thanks for the prompt reply, i looked at the plugin(s) and the one called Canned replies i couldn't find your suggestion but found this
PHP Code:
 "cannedreplies WHERE userid=$userid ORDER BY title ASC"
is it the entire line or this one
PHP Code:
$userid $vbulletin->userinfo['userid']; 
is this the one you meant?
Reply With Quote
  #125  
Old 10-21-2008, 02:03 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
Thanks for the prompt reply, i looked at the plugin(s) and the one called Canned replies i couldn't find your suggestion but found this
PHP Code:
 "cannedreplies WHERE userid=$userid ORDER BY title ASC"
is it the entire line
Not the entire line just remove the words WHERE userid=$userid from it

The whole plugin should become

PHP 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') {
$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 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]);
        
$crtest .= "<option value=\"$row[reply]\">$row[title]</option>";
    }
$crtest .= "</select>";
} } 
Reply With Quote
  #126  
Old 10-21-2008, 02:13 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Flippin' 'eck you're quick!, thanks for that.
Reply With Quote
  #127  
Old 10-21-2008, 09:34 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to have canned replies for infractions, which are the same for all staff, plus I would like to have personal canned replies for PM's. Is this possible?
Reply With Quote
  #128  
Old 10-22-2008, 02:58 AM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice feature thanks. needed it
Reply With Quote
  #129  
Old 10-22-2008, 07:44 AM
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get general Error ..

I cannot add canned replies !!

look to this screen shout in attach

one filde hiden
Reply With Quote
  #130  
Old 10-22-2008, 03:00 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
I would like to have canned replies for infractions, which are the same for all staff, plus I would like to have personal canned replies for PM's. Is this possible?
Not at the moment.
Quote:
Originally Posted by hdrmut View Post
I get general Error ..

I cannot add canned replies !!

look to this screen shout in attach

one filde hiden
try adding $vBeditTemplate[clientscript] at beginning of template cr_edit
Reply With Quote
  #131  
Old 10-22-2008, 03:14 PM
hdrmut hdrmut is offline
 
Join Date: Aug 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post


try adding $vBeditTemplate[clientscript] at beginning of template cr_edit

Not fixing

Problem same
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 08:22 PM.


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.09722 seconds
  • Memory Usage 2,348KB
  • 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
  • (8)bbcode_php
  • (6)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