vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 4 Request - [Solved] Editor toolbar in Quick Reply (https://vborg.vbsupport.ru/showthread.php?t=322099)

Stratis 03-13-2016 12:44 PM

vBulletin 4 Request - [Solved] Editor toolbar in Quick Reply
 
Is there a way to make and show buttons to CKEditor in Quick Reply?

* Select option what button, bbcode we want to include to show up.

I tried with hook editor_toolbar_filter but did not manage it.

Maybe a mod that admin can insert what button he uses in forum would be a good idea.

Thanks for any answers :)

MarkFL 03-13-2016 02:44 PM

I use the following plugin to add my custom buttons to the quick editor:

Product: vBulletin

Hook Location: editor_construct

Title: Adds Custom BBCode Buttons To Quick Reply/Quick Edit ckeditor Toolbar

Execution Order: 5

Plugin PHP Code:

PHP Code:

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


Plugin is Active: Yes

Click "Save".

Stratis 03-13-2016 03:07 PM

Yes this one includes all of them as I see, I have many customs bbcodes that I made for my use.
And there must not include all of them, they will have problem if they don't press advanced editor. Thank you very much for your answer (as always help us) :)

MarkFL 03-13-2016 03:11 PM

Quote:

Originally Posted by Stratis (Post 2567121)
Yes this one includes all of them as I see, I have many customs bbcodes that I made for my use.
And there must not include all of them, they will have problem if they don't press advanced editor. Thank you very much for your answer (as always help us) :)

I will investigate the possibility of creating a product that allows you to select which custom BBCodes you wish to add to the quick editor. :)

I am curious though what problem is caused by adding all of them...:confused:

Stratis 03-13-2016 03:23 PM

I have 3 bbcodes to enter parameters for GPS stuff and 2 bbcodes for entering commands for Linux. In quick reply when users have switch editor to live(don't find other word)
when they insert code, code breaks with some space. Something that does not happen when not swith editor is not live mod) in Advanced mod (depend what user has in user option)

Sorry for my bad English :D

And with the above solution (CODE) (PHP) or (HTML) or non personal bbcodes don't show them. Thank you :D

MarkFL 03-13-2016 03:49 PM

I have found how to add the Code, Html, and Php buttons, and how to add only selected custom buttons so all I have to do now is create the product...look for it soon, my friend! :)

Stratis 03-13-2016 03:57 PM

Thanks Mark. :) :)

MarkFL 03-13-2016 06:03 PM

1 Attachment(s)
Okay, here is a beta version for you Stratis...please test it out and let me know if you would like any changes. :)

Stratis 03-13-2016 06:29 PM

You are CRAZY mate. This is to much. When I saw auto finds my "Custom Buttons To Add"
it tripled rocked me :D

Special Mark. Works great. I don't think there is mod here or else to do this.
The best difference "Select what bbcode you want"

As I checked, this triggers when we put an image to bbcodes and shows it in Mod options
I don't thing I will want some thing else, perhaps only the ordering how shows bbcodes to forward this mod. :p

Thanks for another time. :)

MarkFL 03-13-2016 06:35 PM

Quote:

Originally Posted by Stratis (Post 2567132)
You are CRAZY mate. This is to much. When I saw auto finds my "Custom Buttons To Add"
it tripled rocked me :D

Special Mark. Works great. I don't think there is mod here or else to do this.
The best difference "Select what bbcode you want"

As I checked, this triggers when we put an image to bbcodes and shows it in Mod options
I don't thing I will want some thing else, perhaps only the ordering how shows bbcodes to forward this mod. :p

Thanks for another time. :)

I had to query the database to get the custom BBCodes...for some reason the cached values were not available in the eval'd code for the setting, but the query gets them.

Yes, only those BBCode with associated button images can be selected.

Being able to order them as you wish would be a nice tweak...I will think about how to do that. :)


All times are GMT. The time now is 05:44 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.01779 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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