[XenConcept] Hide BBCode: Change BBCode Styling

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
191
Points
28

Reputation:

I use the HIDE tag from the [XenConcept] Hide BBCode] plugin, maybe it can be edited to put some text when you unlock the content.

Sin título.png
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,531
Points
523

Reputation:

Go to templates modify the template directly or create a template modification:

1682693434112.png


Locked:
1682693451829.png


unlocked:
1682693464362.png


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>
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,531
Points
523

Reputation:

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>
BattleKingIf you want to change the content, these are phrases, here an example:

1682693979406.png



1682694004940.png
 
Top