Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
Boilerplates for postsVersion: 3.1 Date 06-04-2014
Compatibility: SMF 2.0.7
Author: Dodo
Translation: Jorin/Dodo/Bugo
This modification allows to define boilerplates within the admin control panel and enhances the editor with a drop-down list. The chosen boilerplates from this list will be inserted into the editors textfield.
Features:
- Easy configuration within admin control panel
- permissions for each user group
- activate/deactivate within admin control panel
- build groups in drop down list
- BBC and HTML (if allowed) in boilerplates
- Multiple lines support
Languages:
- English
- English-UTF8
- German
- German-UTF8
- Russian
- Russian-UTF8
Please feel free to translate the MOD and contact me for adding.
Configuration:The configuration page for the
Boilerplates for posts modification can be found here: "Admin -> Forum -> Posts and Topics -> Boilerplates".
Notice:You have to uninstall older versions first!
Before you can use the modification while posting, you have to enable the modification.
After installation only the admin can use the drop down list. If other groups should use this as well, go to "Admin -> Members -> Permissions -> General Permissions".
Before the boardmoderators can use the modification you have to enable the option "Enable for boardmoderators".
Support:Support, comments and bug report will be found here: Support (http://www.simplemachines.org/community/index.php?topic=345030.0)
Deutscher Support: SMFPortal.de (http://www.smfportal.de)
Thanks:Thanks to the team of SMFPortal.de and the customizers of simplemachines.org for their support.
Special thanks to Jorin (SMFPortal.de) and Bugo for the translations, to Din1031 (Customizer) for help with the editorcode and to Ruediger (SMFPortal.de) and Dismal Shadow for testing.
V3.1:!Fixed a bug concerning HTML entities.
*Converts boilerplates on the fly between HTML and BBC, so the right markup is inserted.
*Added compatibility with SMF 2.0.7.
-Versions older than SMF 2.0.7 aren't supported any longer. For SMF 1.1.x support please use V3.0.
V3.0:+Multiple lines support!
+More comfort while configurating.
!Fixed a bug in editor.js (2.0 RC3, 2.0 RC4). Now the selectedindex will be changed correctly.
!Fixed a bug in editor.js (2.0 RC3, 2.0 RC4). Separators cannot be focused any longer.
*New configuration design! (Admin.template.php)
*Rewritten permissionssystem!
*Optimized code.
*Installation updated to RC4 and 1.1.12!
-Older versions of SMF 2.0 than RC3 are not supported any longer!
-Non-global permissions will be deleted while installation!
V2.0.3:+Added sessioncheck! (ManagePosts.php, Admin.template.php)
*Installation updated to RC3!
V2.0.2:!Fixed a bug in Generic.Controls.template.php (2.0 RC2) that could broke the editor!
!Fixed a bug in editor.js (2.0 RC2) that inserts HTML code wrong!
!Fixed a bug while installation! (2.0 RC1.2, PersonalMessage.template.php)
!Fixed two bug in Admin.templte.php (2.0 RC1.2)!
!Fixed a bug in PersonalMessage.template.php and Post.template.php (2.0 RC1.2)!
!Fixed a bug that pemissions are deleted while installation!
V2.0.1:!Fixed bug in ManagePosts.php
*Changes in code and DB!
V2.0:+Supports PM editor
!Fixed the WYSIWYG bug - MOD is now usable with active WYSIWYG editor! (only SMF2.0)
!Fixed HTML bug
*New permission system: Now there are global and board permissions. For using the MOD in PM, etc you have to set the global, for using while posting the board.
*Optimized template (only SMF2.0)
*Optimized code
-You will have to set all permissions again!
V1.2.1:!Fixed Post.template.php in 1.1.10 (Bug broke pm editor)
-Version 1.2.1 is only important for 1.1.10 users!
V1.2:!Changed version in package
V1.1:!Fixed some bugs in Managepost.php
*Adaptation of the readme
V1.0:-Release
Legend:
! Bugfix
+ New Feature
* Changed
- Info Only
What is a boilerplate? Is there a demo?
i have never heard of such a thing.
sounds interesting though
yes some screenshots of this in action would be good. :)
i think boilerplates ist an unfortunately chosen word
shortanswer for admins and mods should better describe, what this modification does
if an admin or mod answer in threads they can use a dropdown menu with some special answers given in a list
it should be great for our own support - if your users have problems and you´re tired typing always the same long answers for always the same questions you choose one of these given answers and you only need a few clicks
i hope you´ll understand my bad english
This is an interesting mod, thanks Do².
I was thinking it was a more of a post-template style mod until I had it installed (which went fine on a heavily modded 1.1.10 btw), but it was more of an optional thing.
I kinda dig it but I'll need to play around a bit more and determine whether it actually has a proper use on my board.
I love the idea though, great work!!!
Hey Dodo
great mod, i love it.
Thx alot ;)
Thanks at all, i hope you enjoy my mod. ;)
Some information:
With this mod i want to support admins and moderators in other forums. They can use the drop down list, which is added by the mod to the editor, to insert predefined text modules (boilerplates) to the post. For expample very helpfull in supportboard, if you have to answer every time the same question. With my mod you have the possibility to predefine text modules in acp and insert easily via a drop down list into the post.
I added some pictures and a link to a demo board.
Please feel free to translate the mod and report bugs. ;)
Thanks for using my mod.
They should make NAO a mod on the Aeva and SMF media gallery boards and have him use this mod to answer the same questions over and over.
Important Update for 1.1.10 users!
I advise every 1.1.10 user with this mod to update to 1.2.1!
I fixed a bug, which brokes the PM Editor.
Known bug: Not compatible with the active WYSIWYG editor. I'm going to fixe this bug. This update need some time, because i have to rewrite a part of the mod.To avoid this bug: If you want to insert a boilerplate, you have to switch from WYSIWYG editor to normal editor (this is the red "A" on BBCButton)![/]
I don't see a 1.2.1 update in my admin panel ???
Did you uninstall the previous version and uploaded the new? You won't get a messag in admin panel, if there are new versions.
You have to look sometime here and maybe there's a new version.
I checked all the files again and they are all in the correct version.
A very useful mod buddy :)
Thank You
An update is planned for SMF 2.0 RC2 and the core theme?
Yes, I'm working on the update.
The update is soon to release. ;)
Version 2.0 - Release!
IMPORTANT NOTE: All old permissions of this mod will be deleted!
Hello!
When installing the module, all smiley and bbcode are invisible to administrators
Please post you Generic.Controls.template.php.
Ok merci
Can you put all files, which were changed by the mod, in a *.zip file and post it please?!
I tested the mod again and i didn't recognized any mistake.
Merci
OK. I didn't found a mistake in the files.
NEW: VERSION 2.0.1Changes:
Fixed a bug in ManagePost.php!
Some changes in code and DB!
Please install this version as far as possible!
This mod sounds interesting. Can templates (boilerplate) be created for each board ? I have boards which are general discussion, and others that are classifieds, and need two different templates.
Great and useful mod! Thank you!
Does it support Line breaks in boilerplates??..
Regards
Quote from: TomW on December 30, 2009, 12:33:14 AM
This mod sounds interesting. Can templates (boilerplate) be created for each board ? I have boards which are general discussion, and others that are classifieds, and need two different templates.
At the moment different templates aren't supported! You can group the boilerplates in a simple way. For example it could look like this:
-----------
boilerplate for general 1
boilerplate for general 2
-----------
boilerplate for sth. other 1
boilerplate for sth. other 2
Quote from: rjckE on December 31, 2009, 06:14:35 AM
Great and useful mod! Thank you!
Does it support Line breaks in boilerplates??..
Regards
Thank you. :)
No. I will see what i can do. ;)
Oh, wait! I was wrong, it is possible. You can use the BBC tag [br] or if HTML is allowed <br />. ;)
Problem...If I enable boilerplates, the smileys and BBcodes will disappear. Images attached.
OK, I don't know why this happens.
Please attach the Post.template.php, GenericControls.template.php and the editor.js.
Quote from: Do² on January 03, 2010, 03:49:05 PM
OK, I don't know why this happens.
Please attach the Post.template.php, GenericControls.template.php and the editor.js.
Here you are:
OK, no problems with the files.
Maybe you could create a testaccount for me, so that i can use boilerplates.
Quote from: Do² on January 03, 2010, 04:25:50 PM
OK, no problems with the files.
Maybe you could create a testaccount for me, so that i can use boilerplates.
Ok Pm'ed you.
New Version 2.0.2!
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
Changelog:
!Fixed a bug in Generic.Controls.template.php (2.0 RC2) that could broke the editor!
!Fixed a bug in editor.js (2.0 RC2) that inserts HTML code wrong!
!Fixed a bug while installation! (2.0 RC1.2, PersonalMessage.template.php)
!Fixed two bug in Admin.templte.php (2.0 RC1.2)!
!Fixed a bug in PersonalMessage.template.php and Post.template.php (2.0 RC1.2)!
!Fixed a bug that pemissions are deleted while installation!
A special thanks to Dismal Shadow for reporting bugs.
Quote from: Do² on January 04, 2010, 02:49:27 PM
New Version 2.0.2!
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
Changelog:
!Fixed a bug in Generic.Controls.template.php (2.0 RC2) that could broke the editor!
!Fixed a bug in editor.js (2.0 RC2) that inserts HTML code wrong!
!Fixed a bug while installation! (2.0 RC1.2, PersonalMessage.template.php)
!Fixed two bug in Admin.templte.php (2.0 RC1.2)!
!Fixed a bug in PersonalMessage.template.php and Post.template.php (2.0 RC1.2)!
!Fixed a bug that pemissions are deleted while installation!
A special thanks to Dismal Shadow for reporting bugs.
;D
While fixing your bug, i found many others. :D Thanks again.
Great Mod Do². Very useful for the way that I use SMF
Many Thanks
Hi there,
For some reason this mod seems to work in Internet Explorer (version 8.0.700), but doesn't appear to work in Firefox (I'm running 3.5.7)? Not quite sure why this might be?
Cheers
James
Hi,
that's strange. I'm using Firefox 3.5.7 too and it works fine. If you want i can have a look to your forum and test it.
/me thinks we could do with this mod, here. :)
Amazing modification!
But i have a little problem.
Could you add something like "enter".
Ex.
When I select boilerplate, we will see... attach 1
Users are lazy, as we know, so I would like to make it looks like attach2 ;D
This will facilitate work and improve the appearance of design :)
PS: [ br] & <br> doesn't solve problem.
Thank you for feedback. ;)
I'm sorry, but i won't bring a update for this issue, because i think it's unnecessary or important and at the moment i have no time for that.
Ok, no problem.
Waiting for update <3 ::)
/Release it, release it! O:)
/I know, im joking ;)
I already said it is unimportant and i have no time to look for a solution. ;)
Edit: It's not a fix, because it isn't a bug, but: for a linebreak use \n. This should help to insert the boilerplate with a linebreak directly, but just in non-wysiwyg!
Quote from: Do² on February 07, 2010, 04:25:41 PM
I already said it is unimportant and i have no time to look for a solution. ;)
Edit: It's not a fix, because it isn't a bug, but: for a linebreak use \n. This should help to insert the boilerplate with a linebreak directly, but just in non-wysiwyg!
Doesn't work :P
It's a shame this won't be update as of late, Do²
I still use this on my site. :P
So far no problems...
Ok, it's my mistake. In 1.1.x this work-a-round won't work.
Hi installed the mod on 2.0RC2 and i had the same problem as Dismal Shadow.
All my emotions and bb codes dissapeared..
Also its a great mod.. 1 problem u only get a single line.. A multi Line Text Box would be best for this..
Should definatly look at updating this as it would claim usefull in many many forums..
Nice work..
Please attach editor.js and GenericControls.template.php and i need to know your textmodules.
OK, i will update the mod. I think march is realistic, because at the moment i have no time for that.
Hmm, I'm using it on RC2 and it works in IE, but does not seem to want to work in Firefox 3.6 I tested this a couple times in different posts. In Firefox, nothing gets posted into the reply. In IE, it gets posted every time I click.
Hello!
this does not work also with Google Chrome (in Local)
OK, thats strange. I don't know why it doesn't work in some browsers.
I think it possibly has to do with the theme that I'm using. I looked into this a little more last night and on my other site (with Price Of Darkness), it works in Firefox. The other site that I'm using it does not work. Most all of the mods are the same on both sites. The only thing that is different is the theme.
Disregard the problem. I'm not sure what the deal was. Last night, it was not working on Firefox. Today, I look it up on Safari, IE, and Firefox and they all are working. Not sure if it was a cache problem with the site or possibly the browser.
Do², did you approve my request on newest update? 8)
for some reason de dropdown box appears next to the font color dialog, any ideas why is there?
Quote from: BeCometA on February 28, 2010, 11:06:31 AM
Do², did you approve my request on newest update? 8)
I will look if this issue can be solved. It's a bit complicated, because the linebreakcode is different for non-wysiwyg and wysiwyg editor.
\n works with non-wysiwyg and <br> with wysiwyg editor. That's the problem and i think a textarea won't solve the problem.
Quote from: luismanson on March 01, 2010, 01:22:40 PM
for some reason de dropdown box appears next to the font color dialog, any ideas why is there?
I'm sorry, i have to update the screenshots. Because of the changes in RC2 this was the best solution. ;)
Thanks for the update to RC3, remember I remain loyal to this mod. ;)
NEW VERSION: V2.0.3Changes: I added a sessioncheck to the configurationpanel and updated the mod to RC3.
Quote from: Dismal Shadow on March 09, 2010, 03:56:14 PM
Thanks for the update to RC3, remember I remain loyal to this mod. ;)
Wow, you're really fast. Thanks, I appreciate that. I hope you'll enjoy the mod for a long time. ;)
Russian translation:
//START Boilerplates for posts
$txt['boilerplates'] = 'Шаблоны';
$txt['boilerplates_title'] = 'Шаблоны для сообщений';
$txt['boilerplates_desc'] = 'Можно определить шаблоны, легко добавляемые в сообщения с помощью раскрывающегося списка.';
$txt['admin_Boilerplates_where'] = 'Укажите слева текст для вставки в поле сообщения, а справа — название шаблона, которое будет отображаться в раскрывающемся списке.<br/>Можно добавить разделитель для отображения под названием шаблона в раскрывающемся списке.<span class="smalltext"><b> (0 = отключить, 1 = включить)</b></span>';
$txt['boilerplates_active'] = 'Включить мод шаблонов:';
$txt['boilerplates_permission_desc'] = 'Выберите группу пользователей, которая может использовать мод шаблонов:';
$txt['boilerplates_permission_link'] = 'Управление правами доступа...';
$txt['boilerplates_clickadd'] = 'Добавить шаблоны';
$txt['permissiongroup_boilerplates'] = 'Настройки шаблонов для сообщений';
$txt['permissiongroup_simple_boilerplates'] = 'Добавление шаблонов для сообщений';
$txt['permissiongroup_boilerplates_global'] = 'Настройки шаблонов';
$txt['permissiongroup_simple_boilerplates_global'] = 'Добавление шаблонов для сообщений';
$txt['permissionname_boilerplates'] = 'Показывать участникам этой группы раскрывающийся список с шаблонами?';
$txt['permissionname_boilerplates_global'] = 'Показывать участникам этой группы раскрывающийся список с шаблонами?';
$txt['permissionhelp_boilerplates'] = 'С этим разрешением участники группы смогут использовать шаблоны для сообщений (в разделах).';
$txt['permissionhelp_boilerplates_global'] = 'С этим разрешением участники группы смогут использовать шаблоны для сообщений (общая установка).';
$txt['boilerplates_default'] = '~~ Текст по умолчанию ~~';
$txt['boilerplates_choose'] = 'Вставить шаблон сообщения...';
//END Boilerplates for posts
Thank you very much. One question: UTF8 or ISO? I will add it. ;)
Quote from: Do² on March 10, 2010, 03:25:54 PM
Thank you very much. One question: UTF8 or ISO? I will add it. ;)
I am trying to think what feature it should be added as I see some potential there...
If you have any idea, let me know it. ;)
Look at the files with Russian translation => in attachments
Update!
Boilerplates for posts are now available with russian language (iso and utf8). If you wish to use the mod with this language, please download the boilerplatesV2.0.3-RU.zip.
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
Got another bug for you Do.
This time in the permission, it's listed twice.
Hi Do, great MOD ;)
Still waiting for multiple lines. That will be super great and solve a lot of problems.
Quote from: Dismal Shadow on March 23, 2010, 03:17:25 AM
Got another bug for you Do.
This time in the permission, it's listed twice.
That's no bug. You need one of them for the whole forum (pm, etc.) and the other for the boards. So you can set permissions for the boardmoderators, too. ;)
I will think about a better way, but at the moment i had to work on my project. ;)
Quote from: RedNael on April 08, 2010, 02:05:33 AM
Hi Do, great MOD ;)
Still waiting for multiple lines. That will be super great and solve a lot of problems.
Thanks. I will try to include multiple lines support in the next update, but i can't promise.
Thanks for the mod!
A agree, boilerplates with multiple line support would be a tremendous improvement.
Yeah when you can have a multiline textbox with an admin panel where you can add custom boiler plates or where members who allowed to add boiler plates can use this panelto create there own would be awsome..
Single line wouldn't be muce use to me..
We tend to answer the same questions all the time If the boiler plates was multi line we would save huge amounts of time.
I'm using the stikki pad on win 7 lol.. I copy and paste everything from there..
Hope to see it soon.
Great work
Great ideas! At the moment my time is rare, so please be patient!
I got a question or suggestion, would it be possible to have access to the boilerplates right in the quick reply ?
At the moment it isn't possible.
BUG-ALERT!
I found two bugs while giving support.
One could appear, if another mod was installed, while editing the permissions. To avoid the parse error, change the following in the ManagePermissions.php:
),
//END Boilerplates for posts
to
)
//END Boilerplates for posts
You have to change this twice. ;)
The other bug: In 1.1.x it isn't possible to prohibit people using the mod while posting.
Both bugs will be fixed in the next update!
Quote from: Dismal Shadow on March 23, 2010, 03:17:25 AM
Got another bug for you Do.
This time in the permission, it's listed twice.
'boilerplates_global' => array(false, 'boilerplates_global', 'boilerplates_global'),
to:
'boilerplates_global' => array(false, 'boilerplates_global'),
Oh sorry, thanks. ;)
Quote from: Do² on June 07, 2010, 04:32:46 PM
Oh sorry, thanks. ;)
That's not all it's listed twice in 'board' => array( and $permissionList = array(
Unfortunately, I can inatalls this plugin but cannot see the dropdown in the editor. What am I doing wrong? I am using SMF 1.1.11
Hmm, it works on a fresh install on my testbed though it is stripping out the URL tag that I requre for moderation. So I am not sure why I cannot see it on the live forum nor why it strips out the tag.
Please attach the Post.template.php. ;)
Weird, mod cannot work on zone99 theme, dropdown list in post.template we're show'd but, when i choose boilerplate - nothing insert's to message window.
Any way I can get this to accept new lines?
I'd like to return multiple lines of preformatted text.
Quote from: BeCometA on September 09, 2010, 11:20:36 AM
Weird, mod cannot work on zone99 theme, dropdown list in post.template we're show'd but, when i choose boilerplate - nothing insert's to message window.
Would you like to give me a test access?
Quote from: zushiba on September 16, 2010, 01:45:54 PM
Any way I can get this to accept new lines?
I'd like to return multiple lines of preformatted text.
I'm sorry, but the MOD doesn't support multiple lines yet. I'm will work on an update, but it's still not so easy! ;)
Sorry for long time on a reply ;)
Anyway, problem doesn't exist - that was my mistake...
What about update progress? Dodo, the /n would be awesome!
This could make this mod best!
Do², thanks for updating the mod. Multiple line support is cool :)
The mod is actually missing from the mod site now.
UPDATE V3.0!You had to wait for a long time, but now it is done!
Boilerplates for posts is grown up and
supports now multiple lines!New features in V3.0:
- Multiple lines support
- New configurationpanel design
- New and easier permissionssystem
Furthermore I fixed some bugs. A special thanks to Bugo and ~Alex~ for supporting this update by testing.
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
THE MOD IS NOW AVAILABLE FOR DOWNLOAD!
Quote from: Spoogs on November 04, 2010, 10:28:09 AM
The mod is actually missing from the mod site now.
Sorry for this delay, the update file didn't work fine.
I get the following when i try to access the BP ACP
Fatal error: Call to undefined function M() in C:\xampp\htdocs\rc4test\Sources\ManagePosts.php on line 116
This is a bug in RC4. Change this:
$subActions[$_REQUEST['sa']][0]();
to this:
$subActions[$_REQUEST['sa']]();
That did the trick.. thanks 8)
Applause!
Thanks a lot Dodo!
This should be in the standard SMF 2.0 :laugh:
Thanks for the v3.0. This is an incredibly useful modification.
But when adding boilerplates in the admin panel, these errors are generated:
http://www.sharks.info/smf/index.php?www
Undefined index: back_to_top_title
File: /home/sharks/public_html/smf/Themes/default/BoardIndex.template.php (main_below sub template - eval?)
Line: 478
http://www.sharks.info/smf/index.php?www
8: Undefined index: regbar_text
File: /home/sharks/public_html/smf/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 190
Also, maybe you could add a nicer way of removing the boilerplates, with a delete button next to it, instead of having to clear all the text in the boilerplates and then click on save button.
Also, a "save as draft" or "disable" option would be useful, if some template is to be disabled temporarily and then enabled later on, without having to write it all over again.
And a full post editor would be most useful in the boilerplates admin panel, with icons to make text bold, italic, including emoticons, so that preparing the templates can be made easier and faster.
BTW, how do i change the position of the boilerplates' drop-down list in the forum's post editor? Currently, it is located just above the emoticons, but i want to move it right under the "message icon" where it will get more attention from members, and also how to make the text normal size?
Quote
But when adding boilerplates in the admin panel, these errors are generated:
http://www.sharks.info/smf/index.php?www (http://www.sharks.info/smf/index.php?www)
Undefined index: back_to_top_title
File: /home/sharks/public_html/smf/Themes/default/BoardIndex.template.php (main_below sub template - eval?)
Line: 478
http://www.sharks.info/smf/index.php?www (http://www.sharks.info/smf/index.php?www)
8: Undefined index: regbar_text
File: /home/sharks/public_html/smf/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 190
Actually they can't be caused by my MOD. ;)
Quote
Also, maybe you could add a nicer way of removing the boilerplates, with a delete button next to it, instead of having to clear all the text in the boilerplates and then click on save button.
Also, a "save as draft" or "disable" option would be useful, if some template is to be disabled temporarily and then enabled later on, without having to write it all over again.
And a full post editor would be most useful in the boilerplates admin panel, with icons to make text bold, italic, including emoticons, so that preparing the templates can be made easier and faster.
I don't think an other way of deleting is that important, because normaly you don't change the boilerplates many times. The "save as draft" idea isn't bad, maybe I add it with the next update. ;) A full editor is to much and good in the way of configuration I choose.
Quote
BTW, how do i change the position of the boilerplates' drop-down list in the forum's post editor? Currently, it is located just above the emoticons, but i want to move it right under the "message icon" where it will get more attention from members, and also how to make the text normal size?
I try it, when I prepared V2.0 and it wasn't possible or I don't get it. ;)
Quote from: Do² on November 04, 2010, 12:36:10 PM
This is a bug in RC4. Change this:
$subActions[$_REQUEST['sa']][0]();
to this:
$subActions[$_REQUEST['sa']]();
Yeah it's a bug in ManagePosts.php, ideal you can grab the updated ManagePosts.php form the download section.
Nice mod and a feature request. I think the only thing missing form this mod at this point is a per boilerplate permission setting where you can define which group(s) can see a specific boilerplate and which ones cannot.
Example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi53.tinypic.com%2F28h1lkm.png&hash=ed3d64a5540860babf60e79d9654f8de84ef477c)
Clicking on the groups link could toggle a DIV element which shows the current member groups that you have on your forum with a checkbox for each group.
This way you could still allow groups (like moderators for example) to use the boilerplate mod, but then limit which boilerplate's they can actually see in the drop down menu.
Again thanks for the nice mod and hope this request makes it into the next version.
Cheers,
Nosx
Rather than using a nasty word that no one understands like "Boilerplates" why not rename the mod to "Canned Responses" ... I think that one is much more clear and most people understand what canned responses are... and they are essentially the same thing.
nice mod either way, will come in handy
Quote from: nosx on November 09, 2010, 04:35:33 AM
Nice mod and a feature request. I think the only thing missing form this mod at this point is a per boilerplate permission setting where you can define which group(s) can see a specific boilerplate and which ones cannot.
Maybe a feature for the next release.
@Veritas01: Thanks. I know about the name problem, but anyway it's isn't that easy to find a good name and I don't think your suggestion is that good, but thanks for helping. ;) I'll think about a name change.
Quote from: Veritas01 on November 09, 2010, 06:37:11 PM
Rather than using a nasty word that no one understands like "Boilerplates" why not rename the mod
I agree. I myself had a hard time to figure out what that mod meant or what it did, until i read the description. I find the mod title aggressive "boiler" (what does it boil? lol) and inappropriate. I would suggest something more simple and straight-forward, like PostTemplates or AutoTemplates (for automatic post templates, which is exactly what it is).
Most popular mods use rather easy to understand names, without the need to read their description to know what those modifications do to the forum after installation.
Anyone else having this problem?:
The newest version (for 2.0RC4) will only save 2 templates.
Quote from: choloman05 on November 12, 2010, 10:55:53 AM
Anyone else having this problem?:
The newest version (for 2.0RC4) will only save 2 templates.
I had only tested it with 2 templates so i tried again and you are right! I set a third template but when i click on the Save button, it reverts back to showing only 2 templates. A bug fix release is now urgent... :(
Ok, glad someone else is having this problem (well, I'm not glad you're having the problem, ha, just hoping to see this fixed).
I tested it several times and it works with three or more templates.
Please make sure, the content (the text to insert) is unique!
Quote from: Do² on November 15, 2010, 04:45:02 PM
I tested it several times and it works with three or more templates.
Please make sure, the content (the text to insert) is unique!
Ok, looks like content must be unique. So there's no way to have to boilerplate forms that are identical with distinct titles? I can see some need for that.
Thanks for the reply and solution (and great mod).
Quote from: choloman05 on November 16, 2010, 01:38:26 PM
Ok, looks like content must be unique. So there's no way to have to boilerplate forms that are identical with distinct titles? I can see some need for that.
Thanks for the reply and solution (and great mod).
At the momentan it isn't possible and I don't see a need for this. ;)
Quote from: Do² on November 16, 2010, 05:00:28 PM
Quote from: choloman05 on November 16, 2010, 01:38:26 PM
Ok, looks like content must be unique. So there's no way to have to boilerplate forms that are identical with distinct titles? I can see some need for that.
Thanks for the reply and solution (and great mod).
At the momentan it isn't possible and I don't see a need for this. ;)
In my case I'm using the boilerplates as templates to keep track of various types of inquiries that come into our office. In most cases, I want the template to include things like Name, Address, Phone, etc. but to be titled differently to make it easier for the poster who might not be very experienced with posting on forums.
It's easy to just change up the content of each template a little and have everything work fine, I'm just giving an example of what I was doing that led me to that question.
Okay, now I see you point.
Nice mod .. using it on 1.1.12
How can i edit the Drop down box, i want to make it bigger mainly the text
Also would be nice to be able to add more than once box
I added this to my SMF RC4 forum and I see the drop down selection list so I choose one of my boilerplates, however it doesn't get written into the message box.
Quote from: Bruno36 on February 21, 2010, 07:04:10 AM
Hello!
this does not work also with Google Chrome (in Local)
Quote from: City Builder on February 06, 2011, 05:44:19 AM
I added this to my SMF RC4 forum and I see the drop down selection list so I choose one of my boilerplates, however it doesn't get written into the message box.
Not working for me either. Using Google Chrome.
Quote from: tyty1234 on February 07, 2011, 11:28:03 PM
Quote from: Bruno36 on February 21, 2010, 07:04:10 AM
Hello!
this does not work also with Google Chrome (in Local)
Quote from: City Builder on February 06, 2011, 05:44:19 AM
I added this to my SMF RC4 forum and I see the drop down selection list so I choose one of my boilerplates, however it doesn't get written into the message box.
Not working for me either. Using Google Chrome.
Ditto. Please fix this.
Quote from: aw06 on February 01, 2011, 04:40:25 AM
Also would be nice to be able to add more than once box
You're able to add more than one box by clicking on the link upon the save button. (JavaScript is required)
@rest: I tried in Chrome and it worked for me. Is WYSIWYG activated and the textfield focused? Please describe exactly what you did.
Quote from: Do² on February 10, 2011, 03:47:30 PM
Is WYSIWYG activated and the textfield focused? Please describe exactly what you did.
Ahh, this could be the problem. WYSIWYG is in fact activated and it won't add the boiler plate when using Google Chrome when an item is clicked on.
When turning off WYSIWYG in I.E. then it works, but not in chrome.
If WYSIWYG is activated, you'll have to focus the textfield. It's the same procedure as with changing color and so on. It definitely should work in chrome and IE with WYSIWYG turned on.
Not sure how else I can focus the message box field other than clicking on it, then choosing the boilerplate template, which in chrome isn't working for me.
So if you are doing it some other way, please elaborate because I'm not sure of another way to focus the field on the message entry box.
Quote from: Do² on February 10, 2011, 03:47:30 PM
Quote from: aw06 on February 01, 2011, 04:40:25 AM
Also would be nice to be able to add more than once box
You're able to add more than one box by clicking on the link upon the save button. (JavaScript is required)
That ads more options in the drop-down box ... not a whole new box
Quote from: aw06 on February 11, 2011, 07:33:20 PM
That ads more options in the drop-down box ... not a whole new box
Ok, that's another point.
Quote from: City Builder on February 11, 2011, 05:39:25 PM
Not sure how else I can focus the message box field other than clicking on it, then choosing the boilerplate template, which in chrome isn't working for me.
So if you are doing it some other way, please elaborate because I'm not sure of another way to focus the field on the message entry box.
You do it right and it should work. It's strange why it doesn't work.
Hi Do²
My members use this a lot on my SMF 1.1.13 forum, so i was wondering if you'll be releasing an improved version soon. It's been a long time since 3.0 and this mod could also use a better name which would make more sense. :)
Quote from: sharks on February 25, 2011, 03:48:35 AM
Hi Do²
My members use this a lot on my SMF 1.1.13 forum, so i was wondering if you'll be releasing an improved version soon. It's been a long time since 3.0 and this mod could also use a better name which would make more sense. :)
Sorry, the last weeks I had to write some exams. ;) What should be improved in your opinion? And yeah the name isn't the best. :D Which one would be better?
This isn't working for me under SMF2 RC5
Post Template? That sound's good and no "updated" mod has that name. Also it installed no errors on 2.0 FINAL but I added a "boilerplate" and went to a topic, in Quick-Reply and full Reply it didn't appear with the dropdown, although I only have 1 ATM.
EDIT:
I see it in full-on reply. Can you make it work for Quick-Reply as I use it more than the full reply
EDIT 2:
When i select one, it doesn't appear in the body.
Just a note:
I emulated RC4 for install on 2.0 and it is working fine for me.
Just used the most recent package.
Thanks!
it´s not possible for me to emulate
please update for 2.0
thx
Quote from: Shorti25 on June 25, 2011, 06:28:04 PM
it´s not possible for me to emulate
please update for 2.0
thx
what do you mean? you emulated to RC4 and you can't install?
when the file is uploaded, there´s only a point to install modification - no emulate
if i list all modifications, there´s no possibility to install modification, but a point with advanced to emulate
next try was to change the packege file (delete RC4) and the installation runs, but when i got forwarded
there´s nothing to see about this modification
Sorry, but I hadn't enough time to update the MOD.
It will take some days to release an update. ;)
for this
Add After ./Sources/ManagePosts.php Test failed
there is no "'topics' => array('ModifyTopicSettings', 'admin_forum')," in my ManagePosts.php
What SMF version are you using?
2.0 final
Hmm can't find that in the mod installer o_O Are you sure you installed the correct package?
Yes. There's only one package for this mod
Hmm, weird, I can't find something that searches for "topics' => array('ModifyTopicSettings', 'admin_forum')," :(
Does this work with 2.0 final? I suppose not, as it's still at 2.0 RC4. If it's updated, i suggest that the name of this mod be renamed, as it still makes no sense at all! LOL
Quote from: Dr. Deejay on July 02, 2011, 11:45:04 AM
Hmm, weird, I can't find something that searches for "topics' => array('ModifyTopicSettings', 'admin_forum')," :(
neither can I
in Admin.php there is one that is really close, but there's no 'admin_forum'
Quote from: sharks on July 02, 2011, 12:25:36 PM
Does this work with 2.0 final? I suppose not, as it's still at 2.0 RC4. If it's updated, i suggest that the name of this mod be renamed, as it still makes no sense at all! LOL
I have this installed on my 2.0 Final forum.
I emulated the RC4 version.
^then how did you deal with this?
Quote from: Jessica. on July 02, 2011, 10:28:23 AM
for this
Add After ./Sources/ManagePosts.php Test failed
there is no "'topics' => array('ModifyTopicSettings', 'admin_forum')," in my ManagePosts.php
I have a lot of mods installed. I can tell you the following that if this is the second edit of Sources/ManagePosts.php is found here in my file:
$subActions = array(
'posts' => 'ModifyPostSettings',
'bbc' => 'ModifyBBCSettings',
'censor' => 'SetCensor',
'topics' => 'ModifyTopicSettings',
// START Boilerplates for posts
'boiler' => 'ModifyBoilerplatesSettings',
// END Boilerplates for posts
'automerge' => 'ModifyAutoMergePostSettings',
);
On the mod site, it is asking you to look for... 'topics' => 'ModifyTopicSettings',
and not... 'topics' => array('ModifyTopicSettings', 'admin_forum'),
You are trying to do the second edit of Sources/ManagePost.php, right?
look for:
'topics' => 'ModifyTopicSettings',
and then add this after that line:
// START Boilerplates for posts
'boiler' => 'ModifyBoilerplatesSettings',
// END Boilerplates for posts
>_< I knew it would be that line...but I had to make sure :P...thanks
now I have a parse error...
Fatal error: Call to undefined function ModifyBoilerplatesSettings() in /home/jessicat/public_html/forum/Sources/ManagePosts.php on line 100
lines 99-101
// Call the right function for this sub-action.
$subActions[$_REQUEST['sa']]();
}
1) Make sure you've done the other two edits for that file (and the other files).
2) Those lines are fine. I have those lines exactly as you and I'm not pulling any errors with this mod.
okay I checked the other files and made sure they had the file edits. but when I go to Boilerplates, the settings are from Post Settings. gonna check again -_-
EDIT: Success. got it. thanks for the help
Suggestion: set up permissions for who could use a certain boilerplate and who can't. example, one can only be used for admins. another can be used by all groups
Sorry that it took more time as expected. I'm rewriting the MOD for a better usability.
Quote from: Jessica. on July 03, 2011, 11:23:08 AM
Suggestion: set up permissions for who could use a certain boilerplate and who can't. example, one can only be used for admins. another can be used by all groups
I'll think about it.
Upcoming features:
- Sortable templates by Drag&Drop!
- Creating template-groups by Drag&Drop!
- Individual permissions for each template!
- No need for unique templates anymore!
- An easy way of deleting a template!
- A NEW NAME!
Quote from: Do² on August 06, 2011, 01:36:43 PM
Upcoming features:
- Sortable templates by Drag&Drop!
- Creating template-groups by Drag&Drop!
- Individual permissions for each template!
- No need for unique templates anymore!
- An easy way of deleting a template!
- A NEW NAME!
cool, thanks!
The package worked fine in 2.0.2 after emulating for RC4. ;)
Has anybody that's had a problem getting this to work in Google's Chrome browser found a solution to make it work? I just reinstalled it on our forum (since updating to 2.02) and even with a fresh copy of Chrome installed on my new computer laptop, it still won't insert what we have in the boiler plates into our message.
Hoping somebody has found a solution for this since the last time it was reported that it wouldn't work with chrome since I use I.E. even less now than back then.
Thanks
I just checked on Chrome 16.0.912.77 m and then updated to 17.0.963.46 m. It worked fine on both of those versions with SMF 2.0.2.
Strange, I'm using the 16.0.912.77m and can't get it to work but in I.E. 9 it works fine.
Not sure what to tell you, sorry. Hopefully, someone will be able to answer your question.
Maybe you have something installed in Chrome as an add-on that is preventing it? I just have Chrome installed completely bare.
Yeah, maybe somebody else figure it out as I know from this topic that I'm not the only one who has/was/is experiencing this. I'm pretty sure that my Chrome is clear of plugins with the one exception of mouse gestures.
has it abandoned the project?
QuoteShow separator below the boilerplate?
It doesn't stick; I click save and the page reloads without the check mark selected. :/
Edit: SMF 2.0.2 emulating 2.0 RC4
I also seem to be limited to making no more than 7 :/
I know this is a very old topic, but maybe you could update it for 2.0.4 with the addition of users being able to create their own "Boilerplates"? I want to give some of the membergroups in addition to staff access to this on my Minecraft Server's website.
Like for example:
Group 1 can create 5 Boilerplates, Group 2 can create 7 Boilerplates, Group 3 can create 10 Boilerplates, Group 4 can create 15, and so on. Fully configurable number of "Boilerplates" for each group. I'd be willing to donate to help you develop this update.
hello
Can be applied to version 2.0.4 ?
Quote from: C4G-TK on February 12, 2012, 06:32:36 PM
The package worked fine in 2.0.2 after emulating for RC4. ;)
Sorry for resurrecting an old topic. I really love this mod and cannot figure out an issue I'm having.
When I select a template from the menu and it inserts the text, it's changing some of the special characters (specifically " & < > and possibly a few others that I hadn't tried) to their html codes (" & etc). Is this a known issue, or am I just missing something somewhere? Alternatively, does anyone have an idea of how to fix it?
I've checked all the files and everything is correct for this mod. I have v3.0 and SMF 2.0.7.
Quote from: liuet on February 08, 2014, 06:17:33 PM
Sorry for resurrecting an old topic. I really love this mod and cannot figure out an issue I'm having.
When I select a template from the menu and it inserts the text, it's changing some of the special characters (specifically " & < > and possibly a few others that I hadn't tried) to their html codes (" & etc). Is this a known issue, or am I just missing something somewhere? Alternatively, does anyone have an idea of how to fix it?
I've checked all the files and everything is correct for this mod. I have v3.0 and SMF 2.0.7.
Am I also experiencing this issue and it's a problem as our templates use at least all three listed above. I also have v3.0 and SMF 2.0.7.
UPDATE V3.1!Changelog:
- Added compatibility with SMF 2.0.7.
- Fixed a bug concerning HTML entities (see posts above).
- Converts boilerplates on the fly between HTML and BBC, so the right markup is inserted.
- Dropped support for versions <2.0.7.
A special thanks to ArieDesigns and liuet for mentioning the HTML entities bug.
Older versions need to be uninstalled first!Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2233)
Great MOD. ;)
Translation to Portuguese Brazil
Hey, I recently installed this mod on my RP forum with the intention of using the boilerplates to auto-insert character application codes into posts for the members to fill out. However, there seems to be some sort of setting in place that prevents the mod from accepting any text past a certain length. I don't get a generated error, and my templates say they save correctly -- but if I have more than the "allowed" amount of text, it saves as an empty boilerplate. (ie, it doesn't truncate past the limit, it simply deletes everything I entered). Is there a place in the code I can modify to change the length of text allowed in the templates?
Thank you in advance for your time.
Quote from: SirAlahn on June 18, 2014, 08:18:18 AM
Hey, I recently installed this mod on my RP forum with the intention of using the boilerplates to auto-insert character application codes into posts for the members to fill out. However, there seems to be some sort of setting in place that prevents the mod from accepting any text past a certain length. I don't get a generated error, and my templates say they save correctly -- but if I have more than the "allowed" amount of text, it saves as an empty boilerplate. (ie, it doesn't truncate past the limit, it simply deletes everything I entered). Is there a place in the code I can modify to change the length of text allowed in the templates?
Thank you in advance for your time.
I recently updated to 2.0.8 and am having the same problem. Emulating to a previous version also does not solve it.
Found bug,... ;D
using this mod : http://custom.simplemachines.org/mods/index.php?mod=2940
and making a boiler, so in last of boiler i am adding like this :
Quote(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.simplemachines.of%2Fmmunity&hash=187c4830b6f76abb8c70e5201bb9d25207631865)
[spoiler=xxx]
[/spoiler]
[spoiler=xsd]
[/spoiler]
[spoiler=xss]
[/spoiler]
So when i make post and choose a boiler from dropbox it works but last above quote lines do not comes :(
please fix
Hello I can no longer access to modify my Boiler Plates I tried uninstalling to reinstall but that is giving me issues now as well. Please help.
well... DETAILS would be helpful if you actually want assistance...
smf version?
What did you do just before you could "no longer access to modify my Boiler Plates"?
What "issues" are you getting if you uninstall? (or did you uninstall and ignore the errors you got when you attempted it?)
I don't remember what I did before I lost access to I was asked to bring back the forum after a long hiatus.
I am running SMF 2.0.9
Originally when trying to delete the mod I got the error files do not exist, I tried to load 3.1 but I relieved a message saying the mod was already installed.
After doing much research I pasted the zip file into my packages section and NOW I receive the error, package does not include uninstall contact the package creator.
If I could be given an idea of where to add back access on my admin menu or how to actually uninstall that would be fantastic.
It appears that you are going to have to manually uninstall the package by manually undoing the code changesl
So do I basically go through the zip file to read what was changed? Do you have any advice other than Back up my forum first?
There is a mod parser on the mod download page... Read the install instructions in reverse....
And yes... Always backup first.
just found this mod and it would be great for long posts of events where only a few dates change but info all needs to be retyped.
One problem though if the boiler plate is to many characters it disappears when i goto save it in the admin section.
First of all thank you for your mod, But.... when I enable it my post editor goes away ??? i saw a message about this but it was striked out ??
I am using smf 2.011
I assume this mod has been abandoned? It still installs but appears to not function on the post side. The drop down still generates but clicking an option does nothing.
Hello,
What is happening with this mod? It's not working for me... is there any fix!? ??? :-\
mod author has not been online since 2015 -- so - no, there is no fix or update
This works with explorer or Firefox, but not in Chrome. Someone have an idea why this is posible?
Ok, I find the problem.
Open Editor.js.
$themedir/scripts/editor.js
find this line:
!this.bRichTextEnabled ? surroundText(sValue, '', this.oTextHandle) : this.smf_execCommand('inserthtml', false, sValue);
replace with:
if (!this.bRichTextEnabled)
{
surroundText(sValue, '', this.oTextHandle)
}
else
this.smf_execCommand('inserthtml', false, sValue);
Chrome maybe not accept the if in one line.
Now the mod works.
If that were the case, the 2.0 WYSIWYG editor would be broken for everyone all the time :(
I attach the mod in this post with the bug fixed.
Package removed, you need permission from the author in order to redistribute the mod. ~ SychO
Quote from: Kindred on July 30, 2018, 08:45:56 AM
mod author has not been online since 2015 -- so - no, there is no fix or update
No problem about delete the mod fixed, but the author is disappeared. I think deleting the attachment with the mod fixed is worse for the SMF community.
While I understand what you mean - that does not change the legalities of the issue...
Whether or not the author is still around, they still own the rights to their code and - unless they have included the code with a permissive license, there is no redistribution of the mod or distribution of a modified version allowed, under international law.
You can, as you have, tell people what the fix is and how to do it.
You can not repackage the mod with your fixes and distribute it.