vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Add button to Quick Reply (https://vborg.vbsupport.ru/showthread.php?t=318474)

BigAl205 04-29-2015 10:35 AM

Add button to Quick Reply
 
I have a few custom BB code buttons that I use on the full WYSIWYG editor, but I would like to add a couple of them to the quick reply editor. How would I accomplish this?

Thanks :up:

AndrewSimm 05-01-2015 12:39 AM

editor_construct hook

I found this somewhere on the board and it works

Code:

if ($this->editor_type == 'qr')
{
    $this->config['toolbar'][] = array();
    $this->addCustomToolbarButtons();
}


BigAl205 05-01-2015 08:09 AM

That works perfectly, thanks!

Just to clarify for others...
In Admin CP-->Plugins and Products-->Plugin Manager--> scroll to bottom and Add New Plugin
Product: vBulletin
Hook Location: editor_construct
Title: New QR Buttons
Plugin PHP Code:
PHP Code:

if ($this->editor_type == 'qr')
{
    
$this->config['toolbar'][] = array();
    
$this->addCustomToolbarButtons();


Plugin is Active: Yes

Save and you're done. All the extra buttons from the advanced editor will now show in the Quick Response.

:up:

chloe101 06-10-2017 03:05 PM

Quote:

Originally Posted by BigAl205 (Post 2544612)
That works perfectly, thanks!

Just to clarify for others...
In Admin CP-->Plugins and Products-->Plugin Manager--> scroll to bottom and Add New Plugin
Product: vBulletin
Hook Location: editor_construct
Title: New QR Buttons
Plugin PHP Code:
PHP Code:

if ($this->editor_type == 'qr')
{
    
$this->config['toolbar'][] = array();
    
$this->addCustomToolbarButtons();


Plugin is Active: Yes

Save and you're done. All the extra buttons from the advanced editor will now show in the Quick Response.

:up:

Awesome! Thanks

MarkFL 06-10-2017 03:11 PM

Quote:

Originally Posted by chloe101 (Post 2587406)
Awesome! Thanks

For added control over the BBCode buttons in your Quick Reply editor, see:

Quick Editor Buttons

chloe101 06-26-2017 03:27 AM

Quote:

Originally Posted by MarkFL (Post 2587407)
For added control over the BBCode buttons in your Quick Reply editor, see:

Quick Editor Buttons

I just saw this. Thank you! This is exactly what I need because it changes the Quick edit editor also. Awesome!!


All times are GMT. The time now is 02:54 AM.

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.00974 seconds
  • Memory Usage 1,729KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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