![]() |
|
Article Options |
[vB 4.1.4] Easily add PHP/HTML/CODE buttons to showthread Quick Reply
by
![]() 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
This does NOT add these buttons if you are using the Basic Editor because there are no buttons when you use that editor. Also, this only works for the ckeditor which first came out in vB4.1.4. |
||||
Views: 13752
|
Comments |
#2
|
|||
|
|||
Thank you Lynne,
how can I add BBCode button? How can i set the new button a line below the first row? No members have liked this post.
|
#3
|
||||
|
||||
I don't know as I have not looked into that. This is a Quick Tips forum and I had seen users want to know how to do this and it's very easy. I think for adding other bbcode to the Quick Reply, it may require a bit more than a two line plugin.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by Igel1
Do you mean the custom bbcode buttons? Try this, using editor_construct:![]()
Sorry if this is OT. No members have liked this post.
|
#5
|
|||
|
|||
Many thanks kh99,
it's done No members have liked this post.
|
#6
|
|||
|
|||
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. No members have liked this post.
|
#7
|
|||
|
|||
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.
No members have liked this post.
|
#8
|
||||||||
|
||||||||
Originally Posted by Lynne
It's working great, but should be good to have the work in quick edit too.![]()
--------------- 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:
And now the buttons are showed in the qr and 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 The following members like this post: Conehead555
Last edited by Sworm; 11 Apr 2012 at 20:53. |
#9
|
|||
|
|||
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 No members have liked this post.
|
#10
|
||||
|
||||
Originally Posted by Sworm
Thank you! And thank you Lynne! I now have the Code, HTML, and PHP Buttons in Quick Reply and the Quick Editor.
![]()
__________________
TheTechGenius.Net Official IRC Network (ONLINE) Host: irc.thetechgenius.net Port: 6667 TTG IRC Web Client - http://thetechgenius.net/irc.html No members have liked this post.
|
#11
|
|||
|
|||
superb - very useful, thanks
(works on vb 4.2.3) No members have liked this post.
|
#12
|
|||
|
|||
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? The following members like this post: akz645
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Show Thread Enhancements Add other buttons to Quick Edit/ Quick Reply Toolbar | hoangminh | vBulletin 3.6 Template Modifications | 4 | 09 Feb 2010 14:07 |
Add other buttons to Quick Edit/ Quick Reply Toolbar | hoangminh | vBulletin 3.5 Add-ons | 33 | 09 Sep 2008 07:57 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 20:11.