rejetto forum

ban a user for a period

kaler · 10 · 22177

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
i have a question...

is there a function to ban an user atomatic for a timeperiode?
« Last Edit: September 05, 2009, 04:28:26 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
you can use the time events and make a macro which can ban the user or disalow his account after a period ;)


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
yeah but i doesen't understand the event scripts...

when you want to explain it to me..?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
in your post you say FOR a period, in the subject you say AFTER a period.
it's different ;)

ban for how long? some days?



Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
jeah sorry

ban or enable=0 FOR 7 days...

is there a posibility to "unban" all users with one special %reason%???

That means, all ip adresses which are banned for 7 days with the reason of 'false' will be "unbanned" after 7 days???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
you can, but it's not easy.

put the unban date in the account notes.
{.set account|NAME|notes key=unban={.time|yyyy-m-d|offset=7.}.}

from next version, leaving empty the NAME will make it work on the current account.

then in an event

Code: [Select]
[+request]
{.if|{.and
  |{.not|{.get account||enabled.}.}
  |{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
  {.set account||enabled=1.}
:}.}

this solution is UNTESTED :)
and will work only with next version, bearing the new {.get account.}


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
thank you, but i havn't test it yet...

ive an other question... is there the possibility to ban an IP from a special folder?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
no.
but you can use diff template to stop showing the file list to some IPs, for that folder


Offline Richard_F

  • Occasional poster
  • *
    • Posts: 9
    • View Profile
you can, but it's not easy.

put the unban date in the account notes.
{.set account|NAME|notes key=unban={.time|yyyy-m-d|offset=7.}.}

from next version, leaving empty the NAME will make it work on the current account.

then in an event

Code: [Select]
[+request]
{.if|{.and
  |{.not|{.get account||enabled.}.}
  |{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
  {.set account||enabled=1.}
:}.}

this solution is UNTESTED :)
and will work only with next version, bearing the new {.get account.}


Hey there, i know this is an old Thread, but i was just looking for this, so thanks anyway


Offline HFS95

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
thank you, but i havn't test it yet...

ive an other question... is there the possibility to ban an IP from a special folder?
Hey, have you tested it? Did it work? I'm looking for something similar...
Thank you already  :)
Im Computer kann man Unmengen von Daten speichern, die man nicht bräuchte, wenn man keinen Computer hätte.