![]() |
[AJAX] vB Post Templates 1.5.0
1 Attachment(s)
vB Post Templates
vB4 Version: https://vborg.vbsupport.ru/showthread.php?t=242246 This modification adds an extension to your User CP, and posting interface. Both which allow you to pre-create "Post Templates". This is useful for repetitive posts, such as common replies to commonly answered questions. A quick example would be here on vBulletin.org, all the moderators post nearly the same reply to users who are unlicensed, with this modification they would only need to insert a post template in their User CP, and then they could easily push that template into any post, quickly. Ofcourse this could be used as an actual "Template", for users who make certain posts that are always constructed in some way or form, an example for that could be people who release modifications who like to structure their first post, and generally try to do universally. Another use would be simply storing common responses or phrases, and you'd simply be able to push them into posts quickly without typing them :) How does it work? Very simple, in your User CP you can create two new things. One is categories for your post templates, and you'll need atleast one category before you can create a post template. Then secondly ofcourse, you can create post templates. Once you have atleast one of each, when making new topics, or replies, or blogs, or anywhere with the full post editor, you'll see a new option integrated into the vBulletin WYSIWYG called 'Post Templates', clicking it will open a menu showing you your post templates categorised. Click any of the post templates, and AJAX will quickly request then spit the contents of that post template, into your post! Features
Translations Spanish - Thanks to dvbusuario FAQ 1) Does this work on lower vB versions? A) I've not tested it, so feel free if you wish, but you may experience errors. Change Log - Version 1.5.1 Fixed bug with attachment bbcode manager in editor toolbar - Version 1.5.0 Enhanced User CP Interface - More user friendly I hope! Cleaned WYSIWYG Integration - Empty categories hidden, and PT hidden if no categories with templates are found Usergroup Permissions - Ability to decide who can use PT, who can create items in PT, who can create "defined" items in PT, and who can use "defined" items in PT. Defined Items - For those with permission to create defined items, they can create categories and templates and with the defined option make the category/template "Public" to all users who can use "defined" items. If you have any questions, suggestions, or anything else then feel free to let me know :) |
amazing idea! :)
mark as installed & nominated for MOTM |
Great Work. But this is not for my forums.
|
1 Attachment(s)
Can I move it to be so?
Or any help me to move bbcode a new line below the originals? Thank You! |
Sure, edit the template editor_toolbar_on:
Find: Code:
<if condition="$vBeditTemplate['extrabuttons'] != '' "> Code:
<td><div class="imagebutton" id="{$editorid}_cmd_redo"><img src="$stylevar[imgdir_editor]/redo.gif" width="21" height="20" alt="$vbphrase[redo]" /></div></td> Code:
<if condition="$vBeditTemplate['extrabuttons'] != '' "> |
Great idea, is it usergroup permission enabled? Cause I don't want to let everybody use it and want to keep it to only my staffs. :) Tagged. :)
|
Usergroup was something I considered and left it out incase requested, but I'll add it in for yah :)
|
Wow! This looks very cool. My mods would love me if I installed this. I'll be testing this out on my test site soon.
|
Quote:
You can only move this BBCode and not all other additional? |
- dvb - This mod hooks into the additional buttons template hook, I'm afraid the template doesn't have any other hooks to plug into.
- Lynne - Glad it'll be of use to you :) |
This works perfect. It's a good alternative to canned entries. I second the usergroup options, and perhaps you could also auto-insert a title?
|
One more option could be "common templates" If a template is set as common, then it would be available for all authorized users. At template creation, you'd check a box to mark it as common.
|
1 Attachment(s)
It's a wonderfull hack!!
Install!! & Nominated!!! Attachment 91253 Attachment 91254 Translated in Spanish:up: Attachment 91256 |
Very good idea i think it's better to give group permission for use like moderator and admin
and one ption like make possibility to close a thread directly |
Awesome, I like this. I would want usergroup controls though, and Lionel's idea is a good one.
Does this work anywhere the WYSIWYG editor is? Like Pms, Blog, etc |
Very nice idea dude, good job !
*Marks for later installation* |
This is very nice. I was thinking of doing something to auto add "sources" for the news. Last week my moderators requested it. So this came in very handy. I could not have done it better than that. I simply made it so it does not display in editor if the build is empty.
I can also confirm that it works fine in 3.74 |
Quote:
|
Great concept. I also would welcome usergroup permissions.
Installed and waiting for an update. |
Good Idea But Sorry i Have Problems http://localhost/vb0/profile.php?do=pt_addcategory error page ...!
|
Installed! Thanks to dvbusuario for the translation.
|
Quote:
|
Spank - It'll work anywhere the Full Text editor is, like blogs, posts etc... :)
As for usergroup permissions, the update will be out very soon :) |
Quote:
thanks i fix it :) |
How can we edit this mod's permission settings for only admins or moderators? This is for all groups' members?!?
|
Please read previous posts, UG perms are coming :)
|
Heh... seems you know the biggest headaches of large forums :) . Started testing with sending 50$ :)
Installed on my 3.7.4 dev board. - works - awesome - a bit difficult configuration - no UG restriction now (next version, ok) Will move to production anyway. The main suggestion is about sorting (typical use case):
|
Thanks for the donation Vitaly :)
I'll certainly look into those suggestions, I'll admit asthetics isn't my strong point as shown by the UCP interface, but I did try :) Enjoy! |
Quote:
Waiting on next release for usergroups etc and then I'll test for 3.6.8 - 3.6.x etc. S-MAN |
I would love to see admin defined templates instead of user defined templates. This way the admin decides (in AdminCP) who gets to post what (in combination with the usergroup permissions).
|
Quote:
|
Quote:
Eh? What do you think? |
Quote:
May be, just function to bulk append (copy) templates from one profile to another one. Not more. But seems to be used in rare cases. The simple solution is just to publish all templates for stuff in restricted section of forum, and everyone will select those he really needs. |
Quote:
|
Vitaly and Lynne: For our forum (and I guess many other forums) it's really important that the admin and all mods all speak in the same 'tone of voice'. If you delegate this power to the staff by leaving them the option who gets to post/select what and in what way, you'll essentially lose that control. If you look at vB.com (the canned replies on which this mod is based), you'll notice they all post the same responses over and over.
Another point which I'd like to make from an administrator point of view: if you appoint new moderators you'll have to instruct them individually which templates they have to generate in their UserCP and point them to the admin predefined templates they have to copy and paste in their own templates. It would be far more easier if the admin (with help of the staff) defines up the templates/canned replies, store them in the AdminCP and selects which usergroup may use what template. |
Actually, djr, there is only one canned reply here - it is regarding the licensing issue. All other mod replies are our own - although I know I'm not the only mod that has a text sheet of 'cheats' to copy/paste when appropriate.
|
Quote:
|
I suppose best of both worlds would be needed really. Either way I'm setting up permissions to work both ways, either:
- Users can create their own templates - Users can create their own and have preset ones (defined by admins) - Users can only use predefined ones So which way works best for your forum and you will be available :) |
If you manage to do this I will match Vitaly's donation :D
|
Quote:
|
All times are GMT. The time now is 06:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|