Software > F.A.Q.s

ban a user for a period

<< < (2/2)

rejetto:
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: ---[+request]
{.if|{.and
  |{.not|{.get account||enabled.}.}
  |{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
  {.set account||enabled=1.}
:}.}

--- End code ---

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

kaler:
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?

rejetto:
no.
but you can use diff template to stop showing the file list to some IPs, for that folder

Richard_F:

--- Quote from: rejetto on September 05, 2009, 04:23:34 PM ---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: ---[+request]
{.if|{.and
  |{.not|{.get account||enabled.}.}
  |{.{.time|yyyy-m-d.} = {.get account||notes key=unban.}.}
/and.}|{:
  {.set account||enabled=1.}
:}.}

--- End code ---

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

--- End quote ---


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

HFS95:

--- Quote from: kaler on September 06, 2009, 03:27:28 PM ---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?

--- End quote ---
Hey, have you tested it? Did it work? I'm looking for something similar...
Thank you already  :)

Navigation

[0] Message Index

[*] Previous page

Go to full version