Jump to content
vBWarez - Rest In Peace

Add link "Ban User" in the drop down user (Quick Ban)


Recommended Posts

This mod add a link for ban user quickly, in the drop down user.

----In the "memberaction_dropdown" template, find:

[PHP]<vb:if condition="$show['homepage']">
<li class="left">
<a href="{vb:raw memberinfo.homepage}" rel="nofollow">
<img src="{vb:stylevar imgdir_siteicons}/homepage.png" alt="" />
{vb:rawphrase visit_homepage}
</a>
</li>
</vb:if> [/PHP]

Add under:

[PHP]<vb:if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<li class="left">
<a href="modcp/banning.php?do=banuser&userid={vb:raw memberinfo.userid}">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
Ban User
</a>
</li>
</vb:if> [/PHP]

PS: Limited to usergroups 5,6,7 (Modo, Admin, S-modo)

Link to post
Share on other sites
  • 7 months later...
  • 3 months later...
  • 1 year later...
  • 4 months later...
Hi
it's in dropdown menu but I get "page not found" if I click it.

Edit:
Never mind, solved it this way
[CODE]<vb:if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<li class="left">
<a href="[COLOR="#FF0000"]modcpanel/banning.php?[/COLOR]do=banuser&userid={vb:raw memberinfo.userid}">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
Ban User
</a>
</li>
</vb:if>[/CODE] Edited by usitaly
Link to post
Share on other sites
  • 2 weeks later...
  • 3 months later...
×
×
  • Create New...