vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=277323

[DBTech] Post Templates v1 (vB4)
by DragonByte Tech
20 Jan 2012 22:29

8 Attachment(s)
vB Post Templates

This is a conversion of the mod Deceptor originally developed for vBulletin 3.8.x located here, due to popular request he updated it to work fully with vBulletin 4.0.x and released it under the DBTech banner, and the DBTech team has now updated it further to work with the new CKEditor.

Priority support is handled at the Developers Website @ www.DragonByte-Tech.com/forum

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 - including the vB CMS Article Editor, CMS Quick Reply and Forum Quick Reply! 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 right into your post!

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://www.vbulletin.org/forum/external/2015/08/1.png button to the right ---->

Please remember to click the, https://www.vbulletin.org/forum/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified by us whenever new updates are available.

*
For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps us know how many people are using our work, giving us extra incentive to provide more features and new modifications.

We appreciate the support!
-------------------------------------------------------------------------------------------

Features
  • Fully Integrates into vBulletin WYSIWYG editor (including CKEditor)
  • Unlimited amount of categories/templates allowed.
  • Fast template inclusion, through AJAX.
  • Permission based through usergroups.
  • Ability for users to create/user "global" templates, handy to share common replys in a team or between groups.
  • Integrates into: Any standard WYSIWYG Editor (forums, blogs, custom modifications, etc...), Forum Quick Reply Editor, vB CMS Article Editor & vB CMS Article Quick Reply Editor
Differences between vB3 version
This is pretty much a replica of the vB3 version except for two things:

1) "Defined" was changed to "Global", to make it easier to understand.
2) The User CP for Post Templates is a lot easier to use and maintain than previously.


FAQ
Q) I've installed, I got to my usercp but don't see a post templates menu?
A) You'll need to grant your usergroup permissions to use Post Templates, edit your UG permissions like you would normally within vBulletin.

Q) What is a "Global" template?
A) Global means the template/category can be seen/used by those who have permission to do so.


This mod displays a copyright notification in the footer of all pages which includes:
  • 1 Link to DragonByte Technologies homepage
  • 1 Link to Product Description page of this modification

thecore762 20 Jan 2012 22:33

As always, DBTech releases quality plugins!

Xfer 20 Jan 2012 22:55

Hallo,
on loading the XML file I get an database error:

Quote:

Invalid SQL:
CREATE TABLE `posttemplate` (
`pid` int(15) NOT NULL auto_increment,
`userid` int(15) NOT NULL default '0',
`parentid` int(15) NOT NULL default '0',
`type` enum('category','template') NOT NULL default 'category',
`title` varchar(255) NOT NULL,
`content` mediumtext NOT NULL,
PRIMARY KEY (`pid`),
KEY `userid` (`userid`)
) Type=MyISAM;

MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Type=MyISAM' at line 10
I've changed "Type=MyISAM" to "ENGINE=MyISAM", now it works.

cu
Xfer

Taurus1 21 Jan 2012 03:59

Have been waiting for this for so long. Thank you so much!

S!p 21 Jan 2012 10:21

Nice work! Thank You!! ;]

Lionel 22 Jan 2012 20:56

The templates to edit editor_toolbar_on, showthread_quickreply and vbcms_editor_toolbar_on no longer exist in 4.1.10

DragonByte Tech 22 Jan 2012 21:07

Yeah, those instructions are for < 4.1.4 or whenever CKEditor was introduced :)


Fillip

Lionel 22 Jan 2012 21:09

How to make it work with 4.1.1? This mod is super nice. I used it in the past.

DragonByte Tech 22 Jan 2012 21:10

The mod works with all vBulletin 4.x.x versions :)


Fillip

Lionel 22 Jan 2012 21:12

Which templates to edit then, since 4.1.10 no longer have those instructed to edit.

DragonByte Tech 22 Jan 2012 21:21

There are no templates to edit, you just need to upload all files and then import the XML file :)


Fillip

Lionel 22 Jan 2012 21:27

Ouch, I was looking for it on first line.
Nice job! Thanks for it. I had recommended that mod to a lot of my customers.

Lionel 22 Jan 2012 21:30

The old CMS bug remains though. Editor disappears when you try to create/edit article.

Taurus1 23 Jan 2012 02:56

Quote:

Originally Posted by Lionel (Post 2291128)
The old CMS bug remains though. Editor disappears when you try to create/edit article.

I am having the same issue. I opened a bug report on their site.

DragonByte Tech 24 Jan 2012 03:00

Quote:

Originally Posted by Lionel (Post 2291128)
The old CMS bug remains though. Editor disappears when you try to create/edit article.

Disable the DragonByte Tech: Post Templates / editor_toolbar_end plugin in Plugin Manager, and it will work like it should.

Chris


All times are GMT. The time now is 15:45.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.