The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add custom bbcodes to quick reply
A while back I had some code in my showthread_quickreply that added in the custom buttons that appear in the advanced editor. It has stopped working in a recent version. I'm on 4.1.5
Anyone know how I can get this working again? Here's the code I used to use. Code:
<!-- Add custom BBCodes to quickreply box --> <vb:if condition="$extrabuttons"> <li> <vb:each from="extrabuttons" value="button"> <img src="{vb:raw button.buttonimage}" class="imagebutton" id="{vb:raw editorid}_cmd_wrap{vb:raw button.twoparams}_{vb:raw button.bbcodetag}" width="21" height="20" alt="{vb:rawphrase wrap_x_tags, {vb:raw button.tag}}" /> </vb:each> </li> </vb:if> <!-- End Add custom BBCodes to quickreply box --> |
#2
|
||||
|
||||
hook location - editor_toolbar_filter
PHP Code:
|
#3
|
|||
|
|||
Thanks Lynne
Where your code says [BBCode1] am I meant to replace that with the "BB Code Tag Name"? If so, then I have tried your suggestion, but nothing appears in the quick reply box. I'm on 4.1.5 |
#5
|
|||
|
|||
Smart. That worked. A bit counter-intuitive, but all good thanks!
|
#6
|
|||
|
|||
Thanks for this piece of code. It helped to insert text alignment in the quickreply.
|
#7
|
||||
|
||||
Sorry for posting in an old thread, but it seems it has the solution I'm looking for but I totally don't understand it. This allows adding custom bbcodes to the quick reply editor, right? Like Youtube, Spoiler, etc? Which of those codes should I add where?
|
#8
|
|||
|
|||
Plugins / Add new plugin
Add Lynne's code and use hook location: editor_toolbar_filter Where her code says BBCode1 instead use the BBCode title you assigned when making the BBCode. |
Благодарность от: | ||
Emeralda |
#9
|
||||
|
||||
Rawr, worked great. I was using a solution posted here: https://vborg.vbsupport.ru/showthread.php?t=278422 but this one seperates the buttons and let me chose which bbcodes I want.
Now a question: http://prntscr.com/63wet <- would it be possible to make it so Strike-thru would be next to BIU buttons? And how to do this for when you press edit button? http://prntscr.com/63whr |
#10
|
|||
|
|||
Not sure of the details, but to move the strikethru I'm guessing you'd have to do something similar with "cke_toolgroup" as the hook (install Firebug in Firefox to see what different vbulletin areas are called). If you get it to work, please post
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|