Author Topic: How to ban a user account?  (Read 5632 times)

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Re: How to ban a user account?
« Reply #15 on: September 02, 2010, 05:24:30 AM »
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 SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1245
  • ....... chut ! shh!
    • View Profile
Re: How to ban a user account?
« Reply #16 on: September 02, 2010, 05:31:42 AM »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13014
    • View Profile
Re: How to ban a user account?
« Reply #17 on: September 02, 2010, 09:20:00 PM »
@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
Re: How to ban a user account?
« Reply #18 on: September 05, 2010, 04:27:11 AM »
@ 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 »