Currently, there are {option} and {text}
I suggest adding a third placeholder that has the option value "if" an option is given, else the text value
Currently a full plugin would be required for getting one or the other value. And it's a pretty small change (I think)...
Code:
[mybbcode]aaa[/mybbcode]
{text}: aaa
{option}: (empty)
[mybbcode=bbb]aaa[/mybbcode]
{text}: aaa
{option}: bbb
I suggest adding a third placeholder that has the option value "if" an option is given, else the text value
Code:
[mybbcode]aaa[/mybbcode]
{text}: aaa
{option}: (empty)
{optionortext}: aaa
[mybbcode=bbb]aaa[/mybbcode]
{text}: aaa
{option}: bbb
{optionortext}: bbb
Currently a full plugin would be required for getting one or the other value. And it's a pretty small change (I think)...
Upvote
0