• 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 Button to Profile Page

DrYontem

Well-known member
Hello,
There is very small modification for quick link to edit user from profile page

open member_view template and find
HTML:
<div class="followBlock">
add below
HTML:
<xen:if is="{$visitor.is_admin}">
    <a href="admin.php?users/{$user.username}.{$user.user_id}/edit">{xen:phrase edit_user}</a><br />
</xen:if>

Regards...
 

Attachments

  • 2010-11-07_162656.webp
    2010-11-07_162656.webp
    37.2 KB · Views: 127
Yet, I think it's better to add this code:
Code:
                                <xen:if is="{$visitor.is_admin}">
                                    <dd><a href="admin.php?users/{$user.username}.{$user.user_id}/edit"><input type="submit" class="button primary" value="{xen:phrase edit_user}" /></a></dd>
                                </xen:if>

After this code
Code:
            <dl class="secondaryContent pairs">

Than it looks like this:
lol.webp
 
Top Bottom