![]() |
Multiple Options BBCode
1 Attachment(s)
Multiple Option BBCode By Andreas
NOTE: I do not own this plugin. I just refactor it a bit to be compatible with PHP 5.5 The original plugin has been archived and there is no vB4 thread so I created one. That means the plugin works perfectly in vB4. Please see screenshot for example of multiple options for BBCode. vBulletin gives you two default parameters to create BBCode: {option} and {param} PHP Code:
But there is only one 'option', thus limits variety of BBCode. You can still do something like this PHP Code:
Using this Plugin, you have better way PHP Code:
You can also omit one or more options if you don't need them. But remember there must be one left. PHP Code:
Changelog: 2.0: - Switch from deprecated /e to preg_replace_callback - Change version check url |
wow....really? just when i thought i milked the bbcodes to oblivion :D
eager to test whenever i can find time... pretty powerful tool for vb, thank you |
Quote:
It is too late as current vB state though :p |
haha yeah that is why it needs every tool it can get ;P.....by then it is superior in some lights at least....for a few more years then oh oh hmm...
|
Andreas has really great mods, thanks for adding this thread.
Maybe if you add simple description in first post, I see it on image, but anyway would like to have it explained with text also. Anyway, great addition. :up: |
tested and verified working....i like it to enrich bbcodes i already made and to combine some others....one thing i am not sure is good tho here....
it gives one option prompt, then the second option needs to be manually edited in? i didnt see a second prompt it is fine for me, but you know these instagramming generation im not so sure about hmm |
one other limitation i dont like....
if you do not manually edit in the second option it will break the bbcode in the cases i checked.... for example in one case with a highlighter bbcode i wish to let the default text color remain as black, yet give members the option to edit in if they are wanting another... i tried it basic with a class/css rule to test specificity but noticed not adding that "option2" broke the whole code anyway and wouldnt display at all....so even if the specificity is correct i cant approach it like that....i also tried making a redundant color code with !important applied but also fail... um if it helps to see the code i mean like this basic 2 option highlighter bbcode....works unless you do not edit in option 2, which....most people would not do instinctively... HTML Code:
<span style="background-color: {option1}; color: {option2}">{param}</span> HTML Code:
<span style="background-color: {option1}; color: {option2}!important; color:black">{param}</span> HTML Code:
<span class="highlight" style="background-color: {option1}; color: {option2}">{param}</span> HTML Code:
.highlight { |
Quote:
Quote:
|
Quote:
If you create a bbcode with 2 options, you have to input 2 options. However you can leave some options blank like this PHP Code:
There is better way but it is also more complex. |
Thanks for textual clarification, it is more helpful, especially part that we need to enter all options, even if they remain blank. :up:
|
All times are GMT. The time now is 07:36 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:
|