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

Reply
 
Thread Tools
[AJAX] vB Post Templates 1.5.0 Details »»
[AJAX] vB Post Templates 1.5.0
Version: 1.5.1, by Deceptor Deceptor is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 12-26-2008 Last Update: 05-14-2010 Installs: 259
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

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
  • Fully Integrates into vBulletin WYSIWYG editor
  • Unlimited amount of categories/templates allowed.
  • Fast template inclusion, through AJAX.


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

Download Now

File Type: zip vB Post Templates 1.0.0.zip (9.2 KB, 160 views)
File Type: zip vB Post Templates 1.5.0.zip (11.0 KB, 964 views)
File Type: zip [DBTech] vB Post Templates 1.5.1.zip (11.0 KB, 469 views)

Screenshots

File Type: jpg Screen 2.jpg (35.0 KB, 0 views)
File Type: jpg Screen 4.jpg (38.2 KB, 0 views)
File Type: jpg Screen 5.jpg (62.0 KB, 0 views)
File Type: jpg Screen 6.jpg (22.7 KB, 0 views)
File Type: jpg Screen 1.jpg (298.7 KB, 0 views)
File Type: jpg Screen 7.jpg (371.5 KB, 0 views)

Show Your Support

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

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

Quote:
Originally Posted by smnet View Post
Nice work.

It's a shame that this doesnt also work in PM's. Would really help moderators to have predefined templates.
Works on my board in PM.
Reply With Quote
  #103  
Old 03-12-2009, 06:24 AM
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have written a small plugin to show the post templates within Quick Reply:
Attachment 96312

Just import the plugin xml file (it's just a plugin, not a product/addon!).

You also have to add this code to the existing plugin vB Post Templates: Cache Templates:
Code:
if (THIS_SCRIPT == 'showthread')
{
	$globaltemplates[] = 'editor_posttemplates';
	$globaltemplates[] = 'editor_posttemplates_js';
}
Reply With Quote
  #104  
Old 03-13-2009, 01:24 AM
mufar mufar is offline
 
Join Date: Oct 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uploaded everything, and then imported v1.5 and nothing is showing up.
any ideas? shame really, cause this could be a huge addon for the site im working on.
Reply With Quote
  #105  
Old 03-13-2009, 07:09 AM
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Location: Germany
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you have to edit and save an usergroup to update the cache.
Reply With Quote
  #106  
Old 03-13-2009, 05:43 PM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Original mod have bug, that breakes attachments button. Since I couldn't contact with Deceptor to send patches, fixed version attached to this post.

Just install over. If you like - you can only upload JS file.

If you don't wish to explain everyone hit Ctrl+F5 to refresh browser cache, then reimport product from archive too.

Tested with 3.8.1
Attached Files
File Type: zip vB Post Templates 1.5.0 (fixed).zip (10.6 KB, 56 views)
Reply With Quote
  #107  
Old 03-17-2009, 10:27 AM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It did not work for me.
I have re uploaded all and re import product.
I have also clear browser cache.
Great you took the effort to patch it.
I have 3.8.1 unpathced.
Reply With Quote
  #108  
Old 03-17-2009, 02:21 PM
PUMEL PUMEL is offline
 
Join Date: Jan 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that do not support Double-byte? alwas show: ??? with chinese.
but enligh is fine.
Reply With Quote
  #109  
Old 03-17-2009, 02:40 PM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by imedic View Post
It did not work for me.
I have re uploaded all and re import product.
I have also clear browser cache.
Great you took the effort to patch it.
I have 3.8.1 unpathced.
What EXACTLY doesn't work? Post Templates are ok, but attachments button not? Which browser/OS ? Could you try in Firefox?
Reply With Quote
  #110  
Old 03-17-2009, 07:53 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry , my bad to not give all details:
- I use Firefox (last version)
- Attachment menu does not work (same as before and the reason to install patched version)
In rest behaves the same (OK) .
Unfortunately I don't have time to look more into it. I most probably did the upgrade correctly.
I however first uploaded the xml file and then upload the files via ftp. Maybe this is the reason? After I have re uploaded the xml file just in case. No luck.

You wont believe but in IE it does work! (I can select attachements in the menu) At least some users get it working.

In FF i have noscript Msoft Net framework 1.0 (dont know why) delicious, skype, fast video download add-ons.
Reply With Quote
  #111  
Old 03-17-2009, 08:20 PM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...

The only real change, that was done - in javascript file. 2 function (event hooks) were done less intrusive. With inreritance, instead of bulk override. There're no any "new" line of code, just more correct event handling. XML has only cosmetic change of single template, to enforce browser load new JS instead old one from cache.

Seems, problem can be in your FF (?), because no problems in my FF 3.0.7/Vista & FF/Linux. But I can't imagine how your addons can break anything, if noscript doen't block anything at your site.

No ideas, really. I'm not javascript expert. May be, php/mysql/other, but not javascript
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 06:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05022 seconds
  • Memory Usage 2,354KB
  • Queries Executed 26 (?)
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_code
  • (2)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)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_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
  • 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_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • fetch_musername
  • 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