![]() |
How to add custom bbcodes to quick reply editor?
I remember there was a mod for this for 3.8, quick editor improver or something like that. But I couldn't find anything that might allow it on vB4.
|
There's this mod: https://vborg.vbsupport.ru/showthread.php?t=264219 but to be honest I'm really sure if it does what you want.
|
Yeah, not a word about adding buttons for custom bbcodes, but just revamping how the editor works all together.
|
Try this, in a plugin using hook editor_toolbar_set:
Code:
if ($this->editor_type == 'qr') |
Quote:
|
In the adminCP, under "Plugins and Products", click on "Add New Plugin".
- Select editor_toolbar_set from the dropdown menu for Hook Location - Enter something for the title that will let you remember what it does when you look at it later - Paste the code that I posted above in the Plugin PHP Code box - Click the Yes radio button next to Plugin is Active Then press save. If there are any problems go back to the Plugin Manager and you can edit or disable that plugin. |
Oh, rawr, great kudos to you. Would you incidentally know what sizes the icons have to be? The old ones are too big with vB4.
|
I'm not sure, but it kind of looks like 16x16 would be a good size.
|
Awkward, I tried searching for the editor icons, but the only ones I found in the images folder, were the ones from the old editor.
--------------- Added [DATE]1329080773[/DATE] at [TIME]1329080773[/TIME] --------------- Uhm, new question - how to add this to quick editor in edit mode? http://prntscr.com/632ev |
Uhm, so like, which hooks should I add this to for quick edit editor, quick replies for private messages http://prntscr.com/7f78l, visitor messages http://prntscr.com/7f77x, and view conversations http://prntscr.com/7f789?
|
Try:
Code:
if ($this->editor_type != "fe") |
Uhm... where do I put it? I tried replacing the previous code with yours, but nothing appeared.
|
for adding any particular custom bbcode to Quick Reply, create new plugin
Hook: editor_construct Title: bbcode button plugin code: PHP Code:
|
Quote:
|
I'm using this one for all the custom BBcodes in QR and QE:
Hook: editor_construct Code:
if ($this->editor_type == 'qr' || $this->editor_type == 'qe') Hook: editor_toolbar_filter Code:
if ($this->editor_type == 'qr' || $this->editor_type == 'qe') |
Quote:
|
Quote:
|
Quote:
The only problem I have is, the PHP, HTML, and Code BBcodes show up twice in the Quick Reply Box. And I only have the first plugin active, when I have both plugins active, the PHP/HTML/Code BBCodes show up 3 times. Without the second plugin active, they show up twice. Here is a screenshot: https://vborg.vbsupport.ru/external/2015/04/10.png |
All times are GMT. The time now is 04: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|