Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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

Category: New Posting Features - Version: 4.0.x Rating:
Released: 04-25-2010 Last Update: 04-26-2011 Installs: 182
DB Changes Uses Plugins Auto-Templates
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.
  • Canned replies can be shared - For Examples, Administrators could have permission to create/share/use canned replies; and moderators permission to view/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
  • 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
Donations:
  • If you want to donate please click 'Support Developer'

Download Now

File Type: zip vb_cannedreplies_v4.1.2.zip (7.9 KB, 580 views)

Screenshots

File Type: jpg 4_list.jpg (84.9 KB, 0 views)
File Type: jpg 4_newthread.jpg (64.3 KB, 0 views)
File Type: jpg 4_permissions.jpg (26.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
BCP Hung

Comments
  #172  
Old 08-20-2011, 06:51 PM
Andyrew Andyrew is offline
 
Join Date: Aug 2005
Location: UK
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
If you want to avoid the <br> problem, just add a space at the end of each row.
Is an editor issue which adds html <br> automatically when you have empty rows on your text or use some BB codes.
How do you stop this br code appearing, where are you supposed to add the spaces. I have added spaces in the canned reply but it makes no difference.
Reply With Quote
  #173  
Old 08-20-2011, 11:37 PM
mmackinnon mmackinnon is offline
 
Join Date: Jun 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yah same here, everything working but for the BR issue
Reply With Quote
  #174  
Old 08-21-2011, 01:48 AM
Jman423's Avatar
Jman423 Jman423 is offline
 
Join Date: Jan 2008
Location: Tampa, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is also working for me, but as others mentioned, the <br> is still showing up whether or not there is a space at the end of each line.

Thank you for fixing it... deleting a few extra characters is better than the way it worked before.
Reply With Quote
  #175  
Old 08-21-2011, 10:19 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, for the <br> issue, this appears to correct it. Edit the /clientscript/cannedreplies.js file (the updated one in my post or xtremecoders' zip file) and replace everything with:

Code:
function insertCannedReply(text)
{
	text = text.replace(/\n/g, "");
	text = text.replace(/<br>/g, "\n");

	if (document.getElementById("vB_Editor_001"))
	{
		CKEDITOR.instances.vB_Editor_001_editor.insertHtml(text);
	}
	else 
	{
		CKEDITOR.instances.vB_Editor_QR_editor.insertHtml(text);
	}
}
Reply With Quote
4 благодарности(ей) от:
chriske, DonosOdD, Jman423, Sunka
  #176  
Old 08-21-2011, 10:59 AM
Andyrew Andyrew is offline
 
Join Date: Aug 2005
Location: UK
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Eric, works perfect now. :up:
Reply With Quote
  #177  
Old 08-21-2011, 11:05 AM
inigo inigo is offline
 
Join Date: May 2010
Location: Spain
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eric View Post
Ok, for the <br> issue, this appears to correct it. Edit the /clientscript/cannedreplies.js file (the updated one in my post or xtremecoders' zip file) and replace everything with:

Code:
function insertCannedReply(text)
{
	text = text.replace(/\n/g, "");
	text = text.replace(/<br>/g, "\n");

	if (document.getElementById("vB_Editor_001"))
	{
		CKEDITOR.instances.vB_Editor_001_editor.insertHtml(text);
	}
	else 
	{
		CKEDITOR.instances.vB_Editor_QR_editor.insertHtml(text);
	}
}
Works great for me! 4.1.5 p1

Thanks!!!!!!!!!!!!
Reply With Quote
  #178  
Old 08-21-2011, 01:40 PM
Igel1 Igel1 is offline
 
Join Date: May 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But as empty lines are inserted
better that way

Code:
function insertCannedReply(text)
{
	text = text.replace(/\\"/ig, "\"");
	text = text.replace(/ \<br\>/ig, "");

	if (document.getElementById("vB_Editor_001"))
	{
		CKEDITOR.instances.vB_Editor_001_editor.insertHtml(text);
	}
	else 
	{
		CKEDITOR.instances.vB_Editor_QR_editor.insertHtml(text);
	}
}
So BB code also works without <br>
Reply With Quote
3 благодарности(ей) от:
DonosOdD, Jman423, Sunka
  #179  
Old 08-21-2011, 02:38 PM
Jman423's Avatar
Jman423 Jman423 is offline
 
Join Date: Jan 2008
Location: Tampa, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Igel1 View Post
But as empty lines are inserted
better that way

Code:
function insertCannedReply(text)
{
	text = text.replace(/\\"/ig, "\"");
	text = text.replace(/ \<br\>/ig, "");

	if (document.getElementById("vB_Editor_001"))
	{
		CKEDITOR.instances.vB_Editor_001_editor.insertHtml(text);
	}
	else 
	{
		CKEDITOR.instances.vB_Editor_QR_editor.insertHtml(text);
	}
}
So BB code also works without <br>
This worked for me, thanks.
Reply With Quote
  #180  
Old 08-22-2011, 04:45 AM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it works perfect, thank you so much.
Reply With Quote
  #181  
Old 08-22-2011, 04:56 AM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Eric, the same problem with Canned Replies, is it the same problem with Post Templates? https://vborg.vbsupport.ru/showthread.php?t=242246
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 04:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07259 seconds
  • Memory Usage 2,350KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete