rejetto forum

How to ban a user account?

Guest · 19 · 12949

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
OK
Thanks for the code, I'm using something similar.

But for me, banned is banned, no matter if the method is
by IP address or by user name the result should be the same.
 When the user see's the banned page they understand what their
situation is. When they see the "Deny" page they just think the
server is screwed up, and rightly so. The "Deny" page is used here
for files in folders marked for "No download" with a link back to a
server INFO page with explanation.



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
@r][m
this is a "scripting" solution. It can't always match the quality of an "embedded" solution.
This said, we may get this working as you want. You can reprogram [deny] (as diff tpl) to load [ban] whenever %reason% has "ban" in it.

[deny]
{.if|{.pos|ban|%reason%.}|{:{.$ban.}:}|{:{.$deny|back=1.}:}/if.}


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
@ Rejetto Thanks
This works
Code: [Select]
[deny]
{.if|{.pos|ban|%reason%.}|{:{.$ban.}:}|{:{.$deny|back=1.}:}/if.}
I changed it to ban2 and added that to the main tpl error section. The user now see's
a ip ban, user ban or deny page when those conditions exist.

It would be good to have user ban as an embedded solution for the stunnel users.
« Last Edit: September 05, 2010, 04:31:00 AM by r][m »