vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vbulletin editor question urgent please (https://vborg.vbsupport.ru/showthread.php?t=209128)

jmbmag 03-22-2009 04:26 PM

vbulletin editor question urgent please
 
Hi,

I have a question: how to add the quickreply editor in my coustomed page?

thanks bye.

Lynne 03-22-2009 05:02 PM

You should go search through the articles forums. I'm pretty sure there is an article about this.

jmbmag 03-22-2009 08:35 PM

I tried to find it and I do not found

I found the thread for the newthread but, not for the quickreply editor

Lynne 03-22-2009 08:44 PM

search "edit*" "articles" "titles only" and you get this - Adding Editor to your Mods

jmbmag 03-23-2009 02:48 AM

I did it but it is the newthread editor and I like the quickreply editor thanks for your reponse

Lynne 03-23-2009 03:15 AM

Try looking up construct_edit_toolbar in the vB API (link under Quick Links) and you can probably get what you want by changing that line in the article.

jmbmag 03-23-2009 10:32 PM

what article ?
and how I will do it ?

thanks for your reponse

TigerC10 03-23-2009 10:59 PM

Yeah, I've found the articles involving the editor aren't very useful...

Using the code from the article, you only need to make one change in the plugin code.

Code:

$toolbartype = $setting['allow_bbcode'] ? is_wysiwyg_compatible(-1, $editor_type) : 0;
$show['wysiwyg_compatible'] = (is_wysiwyg_compatible(2, $editor_type) == 2);

The $editor_type variable is not defined, so it's using the default value 'fe' for "full editor" in the function call. Change the variable to 'qr' for "quick reply"... Like so

Code:

$toolbartype = $setting['allow_bbcode'] ? is_wysiwyg_compatible(-1, 'qr') : 0;
$show['wysiwyg_compatible'] = (is_wysiwyg_compatible(2, 'qr') == 2);


jmbmag 03-25-2009 09:04 PM

Thanks man and Lynne I will try it :D


All times are GMT. The time now is 08:57 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.01359 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete