Add Report to Member Cards in Xenforo

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>

We are looking for the last


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

Tags: , , , , , , , | Posted under XenForo | RSS 2.0

Author Spotlight

Keith Pottratz

Hello My Name is Keith Pottratz. I have been working with computers for over a decade. It's my personal hobby something that I love and enjoy doing. I went to school for Computer Science, and have spent many years self teaching my self various things. I have ton's of experience in HTML,CSS, PHPBB,CPanel,CMS software, blogging software and various other systems and enviroments. My favorite thing to do though is backend developing. I find it to be a growing and ever evolving beast and I love learning about it. I look forward to giving as much knowledge as I can and help.

Leave a Reply

Your email address will not be published. Required fields are marked *