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

Dr.Yontem

Formerly Tilkißey
#1
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

Vincent

Well-known member
#3
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.png