Deceptive
Active member
Okay, so I added a report button to members cards(which works well), but there is a problem. The report button shows up on staff members cards too.
So how would I hide the report button on staff member cards. but the staff still being able to see the report button on non-staff members cards?
Code with the report button
Report button line of code
Non-staff member card
Staff member card
So I want to remove the report option on staff member cards, but I still want staff to be able to see the report option on non-staff member cards.
Any ideas?
@Dylan V
So how would I hide the report button on staff member cards. but the staff still being able to see the report button on non-staff members cards?
Code with the report button
Code:
<xen:hook name="member_card_links">
<a href="{xen:link members, $user}">{xen:phrase profile_page}</a>
<xen:if is="{$visitor.user_id} AND {$user.user_id} != {$visitor.user_id}">
<xen:if is="{$canStartConversation}"><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></xen:if>
<xen:follow user="$user" class="Tooltip" />
<xen:if is="{xen:helper isIgnored, $user.user_id}"><a href="{xen:link members/unignore, $user}" class="FollowLink">{xen:phrase unignore}</a><xen:elseif is="{$canIgnore}" /><a href="{xen:link members/ignore, $user}" class="FollowLink">{xen:phrase ignore}</a></xen:if>
<a class="OverlayTrigger" href="{xen:link members/report, $user}">Report</a>
</xen:if>
</xen:hook>
Report button line of code
Code:
<a class="OverlayTrigger" href="{xen:link members/report, $user}">{xen:phrase Report}</a>
Non-staff member card
Staff member card
So I want to remove the report option on staff member cards, but I still want staff to be able to see the report option on non-staff member cards.
Any ideas?
@Dylan V
Last edited: