View Full Version : vbulletin editor question urgent please
jmbmag
03-22-2009, 04:26 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=135708&highlight=edit%2A)
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 (https://vborg.vbsupport.ru/showthread.php?t=135708), you only need to make one change in the plugin 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
$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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.