[vB 4.1.4] Easily add PHP/HTML/CODE buttons to showthread Quick Reply
By default, the showthread Quick Reply editor does not show the PHP/HTML/CODE buttons. If you want those to show up in Quick Reply, then just create a plugin to do so.
Hook Location - editor_toolbar_filter PHP Code:
|
Thank you Lynne,
how can I add BBCode button? How can i set the new button a line below the first row? |
Quote:
|
Quote:
Code:
if ($this->editor_type == 'qr') Sorry if this is OT. |
Many thanks kh99,
it's done |
I'm confused on editor_toolbar_filter :P
All I have is: editor_toolbar_colors, fontname, fontsize, off, on Any help? Sorry if I'm like completely off. |
editor_toolbar_filter is a hook location. You would need to create a new plugin (Plugins and Products > Add New Plugin) and select that as the Hook Location.
|
Quote:
--------------- Added 11 Apr 2012 at 15:41 --------------- I'm not a coder, i 'm worken on the Lynne and KH99 posts xD , and i have done... i hope. I have created a new plugin that i called ADV QR Button on the hook "editor toolbar filter" the code is: Code:
if ($this->editor_type == 'qr' || $this->editor_type == 'qe') Is it a good solution? Or there's something wrong? Actually this solution are working fine in my board.... hoping that it is a correct work.... Thanks |
if (THIS_SCRIPT == 'showthread')
$toolbar[] = array('Code', 'Html', 'Php'); This adds the icons to advanced editor, but how can i add them to quick reply editor? The suggestion of Sworm did not work either. I use vBulletin 4.2.2 |
Quote:
|
superb - very useful, thanks
(works on vb 4.2.3) |
This works great! I used it to add my custom BBCode buttons to the qe and qr menu.
Now, how can I add these BBCode buttons ONLY in a certain forum or for certain usergroups? |
All times are GMT. The time now is 07:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|