1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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.
    Dismiss Notice
  3. 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

Discussion in 'Template Modifications [Archive]' started by Tilkißey, Nov 7, 2010.

  1. Tilkißey

    Tilkißey Well-Known Member

    There is very small modification for quick link to edit user from profile page

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

    Attached Files:

    Gultog, erich37, shenmuee and 6 others like this.
  2. Vincent

    Vincent Well-Known Member

    Added to my forum!

    Really useful!
  3. Vincent

    Vincent Well-Known Member

    Yet, I think it's better to add this 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>
    After this code
                <dl class="secondaryContent pairs">
    Than it looks like this:
    AndyB, kforo, Acid and 3 others like this.
  4. Allan

    Allan Well-Known Member

    Thank you ;)
  5. Perspektif

    Perspektif Active Member

    very nice,great thank you
  6. yilmaz

    yilmaz Active Member

    Super job thanks...

Share This Page