View Full Version : BBCode Button
mobster46
02-03-2017, 04:22 PM
https://vborg.vbsupport.ru/external/2017/02/14.png
I added bbcode. How can I create a button for this?
MarkFL
02-03-2017, 04:30 PM
BBCodes are for use within post content, such as text formatting, spoilers, etc. You can't use BBCodes for post control buttons...those can be added via a template edit (whether auto or manual).
mobster46
02-03-2017, 04:32 PM
BBCodes are for use within post content, such as text formatting, spoilers, etc. You can't use BBCodes for post control buttons...those can be added via a template edit (whether auto or manual).
Too hard to do this? Bbcode to integrate there?
I use this bbcode>https://vborg.vbsupport.ru/showthread.php?t=299403
But I would like it to be a post control button.
MarkFL
02-03-2017, 04:41 PM
Too hard to do this? Bbcode to integrate there?
BBCode buttons show up in your toolbar...they aren't meant for use elsewhere, as they provide a means of adding functionality to your post content.
It's not so much that "it's too difficult", but more that this simply isn't what the purpose of BBCodes is.
For example, on my local dev site, you can see my custom BBCode buttons in the third row:
https://vborg.vbsupport.ru/attachment.php?attachmentid=155780&stc=1&d=1486147178
These buttons generate tags within the editor that are used to add mathematics, live graphs, spoilers, videos, post templates, etc.
mobster46
02-03-2017, 04:45 PM
These buttons generate tags within the editor that are used to add mathematics, live graphs, spoilers, videos, post templates, etc.
I want to use it for the features you mentioned. But I want to change one of the buttons so that it will be where I am. Is this difficult?
MarkFL
02-03-2017, 04:49 PM
I want to use it for the features you mentioned. But I want to change one of the buttons so that it will be where I am. Is this difficult?
I'm not following what you want to do...please explain more thoroughly. :)
mobster46
02-03-2017, 04:53 PM
I'm not following what you want to do...please explain more thoroughly. :)
https://vborg.vbsupport.ru/external/2017/02/7.png
MarkFL
02-03-2017, 04:59 PM
https://vborg.vbsupport.ru/external/2017/02/7.png
Yes, it is possible to program a button anywhere on a page containing the ckeditor to add to or alter post content. My "Quote Break" button is an example, and another is my "Quick Latex" element that I coded at MHB for easily constructing LaTeX markup.
But, for general purpose BBCodes, why would you want them anywhere but the toolbar?
mobster46
02-03-2017, 05:04 PM
Yes, it is possible to program a button anywhere on a page containing the ckeditor to add to or alter post content. My "Quote Break" button is an example, and another is my "Quick Latex" element that I coded at MHB for easily constructing LaTeX markup.
But, for general purpose BBCodes, why would you want them anywhere but the toolbar?
I just want the managers to see it. This way, it will be more practical. and as if it were part of the Moderator tool.
MarkFL
02-03-2017, 05:09 PM
It will be a good deal of effort to do so. A better solution would be to simply instruct your staff on how to use that BBCode. ;)
mobster46
02-03-2017, 05:12 PM
It will be a good deal of effort to do so. A better solution would be to simply instruct your staff on how to use that BBCode. ;)
I think You're right:D The best solution would be this: D
How do I add the hard delete post control button?
MarkFL
02-03-2017, 05:29 PM
I think You're right:D The best solution would be this: D
How do I add the hard delete post control button?
That would require some coding, I suspect. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.