Yes, you can do that but it requires some configuration.
Update the option "Moderator only bb-code" to include your custom bb-code. This will limit the editor from seeing it.
Then in your bb-code's config update
Then you need to adjust the template it uses to use your code. in the template
Where
Assuming the bb-code looks like;
Update the option "Moderator only bb-code" to include your custom bb-code. This will limit the editor from seeing it.
Then in your bb-code's config update
PHP callback
to SV\AdvancedBbCodesPack\BbCode\Tag\ModInterrupt
and renderStatic
. This prevents non-moderators from rendering it.Then you need to adjust the template it uses to use your code. in the template
sv_bbcode_modinterrupt
XML:
<xf:if is="$modType === 'iframe' ">
<iframe src="{$options.title|for_attr}">{$content}</iframe>
<xf:else />
...
</x:if>
...
is the existing template contents.Assuming the bb-code looks like;
Code:
[iframe="http://127.0.0.1/"]text[/iframe]