vb.org Archive

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

Andyrew 03-06-2009 05:12 PM

Quote:

Originally Posted by smnet (Post 1753422)
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.

Mystics 03-12-2009 06:24 AM

1 Attachment(s)
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';
}


mufar 03-13-2009 01:24 AM

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.:(

Mystics 03-13-2009 07:09 AM

I think you have to edit and save an usergroup to update the cache.

Vitaly 03-13-2009 05:43 PM

1 Attachment(s)
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

imedic 03-17-2009 10:27 AM

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.

PUMEL 03-17-2009 02:21 PM

Is that do not support Double-byte? alwas show: ??? with chinese.
but enligh is fine.

Vitaly 03-17-2009 02:40 PM

Quote:

Originally Posted by imedic (Post 1770326)
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?

imedic 03-17-2009 07:53 PM

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.

Vitaly 03-17-2009 08:20 PM

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 :)


All times are GMT. The time now is 10:13 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.01218 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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