Log in

View Full Version : Show Thread Enhancements - Add link "Ban User" in the drop down user (Quick Ban)


Allan
01-08-2010, 10:00 PM
This mod add a link for ban user quickly, in the drop down user.

In the "memberaction_dropdown" template, find:<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>
Add under:<vb:if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<li class="left">
<a href="modcp/banning.php?do=banuser&amp;userid={vb:raw memberinfo.userid}">
<img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
Ban User
</a>
</li>
</vb:if>PS: Limited to usergroups 5,6,7 (Modo, Admin, S-modo)

MARCO1
01-09-2010, 09:01 PM
Nice Idea, Installed :)

ProFifaLeagues
01-09-2010, 09:39 PM
Top work.

rolfw1
01-09-2010, 10:05 PM
Great thanks, have added this.:)

Also would be nice if you could provide the code for a direct link to user manager, in fact this would be more useful to me generally as an admin, as a ban can be processed from there as well as everything else.

thanks

Rolf

Droptop
01-10-2010, 04:03 AM
Thanks for this...Installed! :up:

Allan
01-10-2010, 06:02 AM
Great thanks, have added this.:)

Also would be nice if you could provide the code for a direct link to user manager, in fact this would be more useful to me generally as an admin, as a ban can be processed from there as well as everything else.

thanks

Rolf
User manager ?

Verionia
01-10-2010, 08:43 AM
This isn't showing for me and Im using useful links mod.

Kolbi
01-10-2010, 09:00 AM
Have you seen my hack: https://vborg.vbsupport.ru/showthread.php?t=229728

Seems to to be a light copy :o

rolfw1
01-10-2010, 09:01 AM
User manager in the admin control panel, from where you can use a drop down menu to ban, send activation Email etc.

Allan
01-10-2010, 09:30 AM
Have you seen my hack: https://vborg.vbsupport.ru/showthread.php?t=229728

Seems to to be a light copy :o
ha no, I had not even seen your hack :p

Verionia
01-10-2010, 03:49 PM
Sorry how to u activate the ban from the admin panel? Doesn't show up... :(

Cute boy
03-18-2010, 05:44 AM
does this work for 3.8???

tiengnhat
03-20-2010, 08:20 AM
Must login to modcp?

ViktorDA
03-21-2010, 09:35 AM
If I may:
1. No conditions do not block itself;
2. Better to put a link - target="_blank" to open a new window.

Da-Vinci
04-30-2010, 01:32 AM
Doesn't seem to work in 4.0.3

aspen1018
09-21-2010, 07:11 PM
found the problem