• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Add edit user links on popup card to member

Allan

Well-known member
#1
Add edit user link on popup card to member
_____________________________
This mod add a link for edit user directly on popup card to user
Inspire to this mod: Add Edit User Button to Profile page

  • In "member_card" template, find:
Code:
<h3 class="username"><a href="{xen:link members, $user}">{$user.username}</a></h3>
  • Replace with:
Code:
<h3 class="username"><a href="{xen:link members, $user}">{$user.username}</a> <xen:if is="{$visitor.is_admin}">
<font size="1"><a href="admin.php?users/{$user.username}.{$user.user_id}/edit">({xen:phrase edit_user})</a></font>
</xen:if></h3>
edit.gif
PS: Only show for administrators
 
#8
Looks like this has changed.

Look for:

<h3 class="username"><xen:username user="$user" class="NoOverlay" /></h3>

and replace with:

Code:
<h3 class="username"><xen:username user="$user" class="NoOverlay" /><xen:if is="{$visitor.is_admin}">

<font size="1"><a href="admin.php?users/{$user.username}.{$user.user_id}/edit">({xen:phrase edit_user})</a></font>

</xen:if></h3>
 

Mutt

Well-known member
#9
i had an issue w/ the font size so I move them to the bottom of the card under last activity.

at the bottom just above
Code:
    </div>

    <a class="close OverlayCloser"></a>
</div>
add

Code:
        <xen:if is="{$visitor.is_admin}">
            <div class="userLinks">
                Mod Links:
                <a href="admin.php?banning/users/{$user.username}.{$user.user_id}/add">{xen:phrase ban_user}</a>
                <a href="admin.php?users/{$user.username}.{$user.user_id}/edit">{xen:phrase edit_user}</a>
            </div>
        </xen:if>
thanks, exactly what i was looking for
 

Attachments