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 links on popup card to member

Discussion in 'Template Modifications [Archive]' started by Allan, Nov 7, 2010.

  1. Allan

    Allan Well-Known Member

    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
     
    Gultog, wiz, makdeniss and 12 others like this.
  2. Peggy

    Peggy Well-Known Member

    Interesting! Thanks for posting this Allan.
     
  3. cobra1162

    cobra1162 Active Member

    good job
     
  4. Perspektif

    Perspektif Active Member

    thanks ,good job
     
  5. Tilkißey

    Tilkißey Well-Known Member

    good job Allan =)
    thx for sharing..
     
  6. Lenin

    Lenin Active Member

    tested and works great .. thanks for the support :)
     
  7. Susannah

    Susannah New Member

    I like this mod, it's very handy! Any chance you could add in the code for a 'ban user' link too? ;)
     
  8. Jonathan Carl

    Jonathan Carl Active Member

    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>
     
    PET and makdeniss like this.
  9. Mutt

    Mutt Well-Known Member

    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
     

    Attached Files:

Share This Page