Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2016, 12:44 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-13-2016, 02:44 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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".
Reply With Quote
  #3  
Old 03-13-2016, 03:07 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #4  
Old 03-13-2016, 03:11 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stratis View Post
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...
Reply With Quote
  #5  
Old 03-13-2016, 03:23 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

And with the above solution (CODE) (PHP) or (HTML) or non personal bbcodes don't show them. Thank you
Reply With Quote
  #6  
Old 03-13-2016, 03:49 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 03-13-2016, 03:57 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mark.
Reply With Quote
  #8  
Old 03-13-2016, 06:03 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, here is a beta version for you Stratis...please test it out and let me know if you would like any changes.
Attached Files
File Type: xml product-markflquickeditorbuttons.xml (5.9 KB, 6 views)
Reply With Quote
  #9  
Old 03-13-2016, 06:29 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.

Thanks for another time.
Reply With Quote
Благодарность от:
MarkFL
  #10  
Old 03-13-2016, 06:35 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 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.04161 seconds
  • Memory Usage 2,285KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete