Today we are going to discuss how to add a Report button to a users member card when their profiles are set to private. This method will override the ability to hide the report button so it is always on display.
So let’s begin:
Log into your AdminCP and then go to Appearance like so:
You will then click on Templates like so:
Once you click that you will be taken to this page where you can search the different templates:
You can either search for it in the filter option or scroll till you find it. Once you do click it like so:
Open it up and you will see the following page:
Now we are going to search for the following piece of 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> </xen:if> </xen:hook>
We are looking for the last
</xen:if>
Before that piece you will put the following code:
<a class="OverlayTrigger" href="{xen:link members/report, $user}">{xen:phrase Report}</a>
It will look like so:
Click save all changes.
In order to test this was done correctly, we need to go and view a member card. You should see the following when you click on a member:
There you have it!
If you have any questions please feel free to ask away!!!
Looking for quality XenForo hosting? Check out Arvixe Web Solutions