XenForo Support

Help About Spoiler Content Xenforo 1.5.12

Submitted by HkfVirus, , Thread ID: 74920

Thread Closed
HkfVirus
Newbie
Level:
0
Reputation:
0
Posts:
18
Likes:
1
Credits:
13
12-02-2018, 02:07 PM
#1
I need your help admin

I've created a new user group called Mask Bandit. All I want to do is my spoiler content is meant or viewable only to Mask Bandit group not member group

This is the code :

<xen:require css="bb_code.css" />

<xen:comment><!-- content is escaped via parser --></xen:comment>
<xen:if is="{$visitor.user_id}">
<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
<button class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"
title="{xen:phrase click_to_reveal_spoiler}"
data-target="> .SpoilerTarget"><span>{xen:phrase spoiler}{xen:if $titleHtml, ': <span class="SpoilerTitle">{xen:raw $titleHtml}</span>'}</span></button>
<div class="SpoilerTarget bbCodeSpoilerText">{xen:raw $content}</div>
</div>
<xen:else />
<button class="button" title="{xen:phrase click_to_reveal_spoiler}"><span>You need to register to view spoilers!</span></button>
</xen:if>

How to modify this code ?

RE: Help About Spoiler Content Xenforo 1.5.12

Cuddles
The Robot <3
Level:
0
Reputation:
66
Posts:
1.87K
Likes:
43
Credits:
-109
12-02-2018, 02:16 PM
#2
This thread has been moved to XenForo Support by a Staff member. Please use the right section next time.

RE: Help About Spoiler Content Xenforo 1.5.12

AlterEgo
Closed Account
Level:
0
Reputation:
0
Posts:
26
Likes:
2
Credits:
1
14-02-2018, 02:45 AM
#3
You might want to try the Hide Hack add-on. It does exactly what you want and no need to modify any code.

Users browsing this thread: 1 Guest(s)