Go to templates modify the template directly or create a template modification:
View attachment 34797
Locked:
View attachment 34798
unlocked:
View attachment 34799
Template: xc_hide_bbcode_bb_code_tag_hide
Changed the code to:
HTML:
<xf:css src="bb_code.less" />
<xf:css src="xc_hide_bbcode_bb_code_hide.less" />
<div class="bbCodeBlock bbCodeBlock--hide hideBlock--hide-{$hideTag} hideBlock--{$visibility} bbCodeBlock--{$visibility} ">
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent">
<xf:if is="{{$visibility}} == 'visible'">
unlocked
<xf:else />
locked
</xf:if>
<br>
{$content|raw}
</div>
</div>
</div>
These lines has been added, but you can do it with some more div's and with some css styling:
HTML:
<xf:if is="{{$visibility}} == 'visible'">
unlocked
<xf:else />
locked
</xf:if>
<br>