Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[DBTech] Post Templates v1 (vB4) Details »»
[DBTech] Post Templates v1 (vB4)
Version: 1.6.1pl1, by DragonByte Tech DragonByte Tech is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 01-19-2012 Last Update: 08-16-2017 Installs: 116
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

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 button to the right ---->

Please remember to click the, 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

Download Now

File Type: zip [DBTech] Post Templates v1.6.1pl1.zip (16.9 KB, 40 views)

Screenshots

File Type: jpg screen-1.jpg (200.3 KB, 0 views)
File Type: jpg screen-2.jpg (34.7 KB, 0 views)
File Type: jpg screen-3.jpg (17.5 KB, 0 views)
File Type: jpg screen-4.jpg (54.0 KB, 0 views)
File Type: jpg screen-5.jpg (23.7 KB, 0 views)
File Type: jpg screen-6.jpg (73.5 KB, 0 views)
File Type: jpg screen-7.jpg (132.7 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
bing11, lagrace

Comments
  #92  
Old 03-30-2015, 02:51 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The manual edits are only for vB versions prior to the introduction of the CKEditor.

Fillip
Reply With Quote
  #93  
Old 11-01-2015, 05:45 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Permissions are fine and set to yes, and it still will not show in the sidebar of my User CP. I tried to use the link from DBTech and gave me a permission error.

/profile.php?do=posttemplates
Reply With Quote
  #94  
Old 07-18-2016, 07:09 PM
muffel muffel is offline
 
Join Date: Mar 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Add-on! But is there a way so I can use a variable for the username in the PM template texts?

I have already looked at the addon "YOU"
https://vborg.vbsupport.ru/showthread.php?t=254373
But when I use this - in the notification mail for the PM there is just the phrase "[You]" and not the nickname. Is there a way to use the nickname into the PM's as real variable?
Reply With Quote
  #95  
Old 07-23-2016, 10:47 AM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by muffel View Post
Great Add-on! But is there a way so I can use a variable for the username in the PM template texts?

I have already looked at the addon "YOU"
https://vborg.vbsupport.ru/showthread.php?t=254373
But when I use this - in the notification mail for the PM there is just the phrase "[You]" and not the nickname. Is there a way to use the nickname into the PM's as real variable?
Unfortunately that's not possible as all this does is fill in the text box, it doesn't submit a post or anything like that.

Sorry


Fillip
Reply With Quote
  #96  
Old 02-16-2017, 12:01 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question for anyone who has installed this ...

We're running vBulletin v4.1.3 pl8 ...

Are required to edit and modify templates to have this mod work properly with our version of vBulletin?

Thanks ..

Regards,
Doug
Reply With Quote
  #97  
Old 02-16-2017, 12:02 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Honestly, I don't know. That version of vBulletin is very, very old.

If you don't have the CKEditor interface, you probably need to edit the template. If the template doesn't exist on your system, you don't need to edit it.

Fillip
Reply With Quote
  #98  
Old 02-16-2017, 12:07 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonByte Tech View Post
Honestly, I don't know. That version of vBulletin is very, very old.

If you don't have the CKEditor interface, you probably need to edit the template. If the template doesn't exist on your system, you don't need to edit it.


Fillip
Thank you ..

Regards,
Doug
Reply With Quote
  #99  
Old 02-16-2017, 12:40 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded and installed for testing...

Uploaded files successfully....

Imported XML 1.6.1pl1 successfully ..

Quote:
Located and edited template: editor_toolbar_on

Found:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<vb:if condition="is_browser('ie') AND !is_browser('mac')">
<li>
<img src="{vb:stylevar imgdir_editor}/spelling.png" class="imagebutton" id="{vb:raw editorid}_cmd_spelling" width="20" height="20" alt="{vb:rawphrase check_spelling}" />
</li>
</vb:if>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Added Underneath:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!-- POST_TEMPLATES -->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Saved template.
Went into create new thread on site ....

Option to use template box doesn't appear as shown in sample images here ..

Checked under settings ... don't see any options here either ...

Checked AdminCP usergroup options and they are ON...

Any ideas?

Regards,
Doug

Edit: Tested.. thanks to the author for developing it... uninstalled as we couldn't get it to work on our site.
Reply With Quote
  #100  
Old 04-07-2018, 03:27 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have used this product for several years and it works really well for us at MHB. I hadn't found the need to manage any of our post templates since our update to PHP 7 until tonight, and I found I got an "Methods with the same name as their class will not be constructors" error.

The fix was easy; I edited the file "includes/class_dm_posttemplates.php" by changing line 34 to read:

PHP Code:
    function vB_DataManager_PostTemplates_f(&$registry$errtype ERRTYPE_STANDARD
Thanks to DBTech for another useful product.
Reply With Quote
Благодарность от:
destacamos
  #101  
Old 10-27-2018, 09:29 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When using the post templates on vb4.2.5 the html from the wysiwyg is passed through unparsed, any way around this? It doesn't matter whether its used in quick reply or advanced reply to thread.
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 05:19 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.04905 seconds
  • Memory Usage 2,368KB
  • Queries Executed 29 (?)
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
  • (1)bbcode_php
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)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