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 ban user link to popup card to member

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

  1. Allan

    Allan Well-Known Member

    Add ban user link to popup card to member
    This mod add a link for ban user directly on popup card to user

    • In "member_card" template, find:
    <h3 class="username"><a href="{xen:link members, $user}">{$user.username}</a></h3>
    • Replace with:
    <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?banning/users/{$user.username}.{$user.user_id}/add">({xen:phrase ban_user})</a></font>

    PS: Only show for administrators
  2. cobra1162

    cobra1162 Active Member

    good job
  3. karev

    karev Active Member

    great job allan ;)
  4. Perspektif

    Perspektif Active Member

    good job :)
  5. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Nice addition, thanks.
  6. Lenin

    Lenin Active Member

    super.... thanks[​IMG]
  7. Ryan Kent

    Ryan Kent Well-Known Member

    Does this mod offer the ability to set the length of ban? or is it permanent?
  8. James

    James Well-Known Member

    Yes, it just takes you to this page:
    Oracle likes this.
  9. Chris Nutter

    Chris Nutter Member

    I can find this string in my member_card any ideas?
  10. trilogy33

    trilogy33 Well-Known Member

    The original post was written back in November last year so the template since then has changed.
    I've found the string for you:
    <a href="{xen:link members, $user}">{xen:phrase profile_page}</a>
    Please note: If you've already made code changes to that template...make a backup of it to a text document before you test it out, just in case.
    Then you can replace it without reverting entirely if things go screwy. :)

Share This Page