vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - [DBTech] vB Post Templates 1.5.0 [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=242246)

Deceptor 05-10-2010 10:00 PM

[DBTech] vB Post Templates 1.5.0 [AJAX]
 
1 Attachment(s)
vB Post Templates

This is a conversion of the mod I originally developed for vBulletin 3.8.x located here, due to popular request I've updated it to work fully with vBulletin 4.

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 templateright into your post!

Features
  • Fully Integrates into vBulletin WYSIWYG editor
  • 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.

Available Translations

Arabic - v1.5.0 - Thanks to Dr.osamA

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.

As always, enjoy! :)

TimberFloorAu 05-11-2010 12:36 AM

Tagged, looks very promising.

djr 05-11-2010 12:38 AM

Excellent! Finally I can make the jump to vB4! Tagged, donated and nominated for MOTM :D

Deceptor 05-11-2010 12:44 AM

Quote:

Originally Posted by djr (Post 2034846)
Excellent! Finally I can make the jump to vB4! Tagged, donated and nominated for MOTM :D

Thanks! Enjoy :D

Dr.osamA 05-11-2010 01:41 AM

1 Attachment(s)
Excellent

good mod

installed + 5 stars + nominated + translated to Arabic

thank you very match man

plzz add translation to 1st post

sulasno 05-11-2010 02:19 AM

tagged and thanks

Diana Notacat 05-11-2010 02:31 AM

I.. I didn't think I could love you more than I did before~! You have no idea how much I needed something like this! You are now my hero of the day!

The only thing that would make this more awesome is a future release not needing any template edits. >: D

ChopSuey 05-11-2010 08:21 AM

Thanks for this :)

Veer 05-11-2010 09:23 AM

Thanks for the update.

Hornstar 05-11-2010 09:53 AM

Is this similiar to what Canned Replies mod was for 3.8? https://vborg.vbsupport.ru/showthread.php?t=187043

Or is this totally different?

Daniel_HBK 05-11-2010 12:19 PM

Wow finnaly the list of my 3.8 Mods are now 4.0 , thanks you really for this great Mod , i loved it since 3.8 .. using it usually .. installed & MOTM & 5 Stars

God bless u

Deceptor 05-11-2010 01:00 PM

Quote:

Originally Posted by hornstar1337 (Post 2035057)
Is this similiar to what Canned Replies mod was for 3.8? https://vborg.vbsupport.ru/showthread.php?t=187043

Or is this totally different?

Wasn't aware there was a similar mod like this actually :) I've not used canned replies but that one seems similar. Not sure if they allow "global" templates to be shared or if you only get access to what you make. They also seem to distinguish templates for different types (pms/infractions/etc..), this will not - it'll simply give you access to all templates available to you to use in all WYSIWYG editors nearly (exception to Quick Edit).

Thanks for the translation Dr.osamA :)

Lionel 05-11-2010 06:45 PM

Nice! Thanks. I also added
Quote:

<!-- POST_TEMPLATES -->
in template pm_quickreply

Hornstar 05-11-2010 07:25 PM

I don't think I am reading very well this morning lol, but

Which of these scenarios can it create a template for:
* My use only
* Specific usergroup
* Everyone (global)

Or can it do all three of those?

Deceptor 05-11-2010 08:11 PM

Quote:

Originally Posted by hornstar1337 (Post 2035335)
I don't think I am reading very well this morning lol, but

Which of these scenarios can it create a template for:
* My use only
* Specific usergroup
* Everyone (global)

Or can it do all three of those?

It can do:
- Your use only
- Everyone
- Specific groups

Keep in mind, you can't do "everyone" and "specific groups", it's based on perms for "Who can use global templates". So you can set it up so everyone can use global items, or just specific groups :)

Bombera 05-12-2010 01:12 PM

Pls when I enable plugin I have problem with CMS Editor.I can't edit article

http://www.mobil-cestiny.cz/screen.jpg

If disable plugin everything work fine.Please can you look for it.Thanks

eksajlee 05-12-2010 01:36 PM

I don't get it..
I uploaded files on ftp. Imported .xml file, added <!-- POST_TEMPLATES --> in 2 templates (dont have cms), edited global posting rules for registered users, and admins and well - nothing changed! Still I've got previous WYSIWYG editor.

Did I missed something?

Deceptor 05-12-2010 02:08 PM

Bombera - Can you re-check the edit to the template vbcms_editor_toolbar_on? If it wasn't done correctly it may break the template, alternatively you can revert the edit in that template and PT will still work on the forum - I'm still looking up better ways to hook into the editor for now.

eksajlee - Do you have any templates created from your usercp? If you have none the menu won't show :)

Dr.osamA 05-12-2010 09:04 PM

@Bombera

Quote:

Originally Posted by Bombera (Post 2035718)
Pls when I enable plugin I have problem with CMS Editor.I can't edit article

If disable plugin everything work fine.Please can you look for it.Thanks

zkus to na jine stayl clovece a uvidis

ja si myslim ze mas nejke jine spatne style nez originalni

mel jsem stjne problem


english :

tray other style you have an corrupted style , i had sea problem

@ Deceptor thanxx for update bro

murekhalir 05-13-2010 06:02 AM

hot damn - seriously this is too sexy.

Rene Kriest 05-13-2010 06:27 AM

Great to have this mod finally ported to vb4. I missed it a lot! Thx! :)

Vitaly 05-15-2010 07:15 PM

Hm... why you did a separate dir for hooks & JS ? A bit strange coding style. There no performance benefits, and potential difficulties for maintenance. Why manual template edits?

I can polish it a bit, as did with attachments bug in 3.8 branch.

Deceptor 05-15-2010 07:26 PM

Quote:

Originally Posted by Vitaly (Post 2037546)
Hm... why you did a separate dir for hooks & JS ? A bit strange coding style. There no performance benefits, and potential difficulties for maintenance. Why manual template edits?

I can polish it a bit, as did with attachments bug in 3.8 branch.

New structure for all releases under "dbtech", not intended for performance (however hooks through files are better for performance than eval'ing raw php). The structure is easier to work with for me, but that's a personal opinion.

As for the template edits, there's no "safe" way to apply edits in realtime on the templatecache because the new rendered states are different to vB3, so until I look at alternate routes it'll remain with edits.

Lastly, the attachment bug has been fixed in the vB 3.8 version. Appreciate the feedback :)

Lionel 05-19-2010 03:07 AM

I also have the same problem than Bombera. I tried reverting the CMS template and I tried using original style, the editor does not display in CMS

Deceptor 05-19-2010 12:13 PM

Are you running vB 4.0.3 Lionel? I haven't tested on any version lower but it's working fine here.

Lionel 05-19-2010 12:22 PM

Hi,

Yes I am using latest version

Deceptor 05-19-2010 12:22 PM

Alright thanks for the info, I'll see what I can do to replicate the issue :)

Lionel 05-19-2010 12:31 PM

No problem. Let me know if you'd like me to PM you access

Daniel_HBK 05-19-2010 05:46 PM

editor button doesn't appreard :( although i edited permissions & made a Template .. any help please ?

EDIT :- fixed!

Vitaly 05-20-2010 11:36 AM

http://github.com/rcdesign/vb-foreig...ost_templates/

Did all fixes as promissed, to simplify maintenance. + 1 fix for CMS. See readme for details.
Hope to be included to upstream :)

Lionel 05-26-2010 09:54 PM

I have a strange issue. In one of my external mod I use the editor. The post template appears in it, which is fine by me. However, when I do a Preview post, entire editor disappears. Any idea what could be causing that? I have no problems when I disable mod. Is there something I need to add to my mod to prevent that while using Post Templates?

Thanks.

Deceptor 05-27-2010 12:07 PM

Hey Lionel - PT will implement itself automatically into all editors by default (using the standard vB method), is there something you do differently with the editor when you preview a post?

Lionel 05-27-2010 02:57 PM

Hi Deceptor. Nothing different. When I disable mod, it works as designed.

Lionel 05-27-2010 05:05 PM

I ended up disabling the plugin editor_toolbar_end for THIS_SCRIPT.
It's a pity, because your mod is getting to be my favorite mod :-)

Deceptor 05-31-2010 08:02 PM

Hi Lionel, which plugin was disabled exactly? Not sure what you mean :)

Lionel 05-31-2010 08:30 PM

hi, that was your plugin. if(THIS_SCRIPT is not my script) then execute yours.

Firestar.chkn 06-01-2010 05:57 AM

Any way of forcing an Admin to globally force the using of these templates for certain forums? I'd like to set up a global template, which everyone MUST use if they create a new thread in a specific forum (but not for replies to threads).

Any chance of making this work with this mod?

Nice mod, btw!

Lionel 07-03-2010 01:12 PM

Hi, was there a fix for CMS? When using Post Templates the textarea disappears and article creation is no longer possible. Not a big deal for me as I only create article once per section and never touched again after publication. So I simply disable the product and re enable after I put in my content.

I thought I'd mention it to you, as I am strongly recommending your product to my customers who are using my Priority Support option.

djbaxter 07-03-2010 03:59 PM

Quote:

Originally Posted by hornstar1337 (Post 2035057)
Is this similiar to what Canned Replies mod was for 3.8? https://vborg.vbsupport.ru/showthread.php?t=187043

Or is this totally different?

Canned Replies for vB 4.x is here: https://vborg.vbsupport.ru/showthread.php?t=241309

Ark del KAOS 07-08-2010 09:56 PM

This is perfect, so useful...but I don't know if maybe I don't see the option, or something like that, but if someone (not the autor) wants to edit a global template...they can't do it.
It would be very important to have that ability into the admin panel at least ;)


All times are GMT. The time now is 01:23 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.01266 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete