rejetto forum
May 25, 2012, 09:47:26 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ban a user for a period  (Read 2489 times)
0 Members and 1 Guest are viewing this topic.
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« on: August 31, 2009, 09:46:26 AM »

i have a question...

is there a function to ban an user atomatic for a timeperiode?
« Last Edit: September 05, 2009, 11:28:26 AM by rejetto, Reason: subject fixed » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: August 31, 2009, 10:07:44 AM »

you can use the time events and make a macro which can ban the user or disalow his account after a period Wink
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #2 on: August 31, 2009, 10:35:35 AM »

yeah but i doesen't understand the event scripts...

when you want to explain it to me..?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #3 on: September 04, 2009, 10:47:11 AM »

in your post you say FOR a period, in the subject you say AFTER a period.
it's different Wink

ban for how long? some days?

Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #4 on: September 04, 2009, 11:08:15 AM »

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???
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #5 on: September 05, 2009, 11:23:34 AM »

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.}
:}.}

this solution is UNTESTED Smiley
and will work only with next version, bearing the new {.get account.}
Logged
rejetto forum
« Reply #5 on: September 05, 2009, 11:23:34 AM »

Do you like this software? Consider even $2
 Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #6 on: September 06, 2009, 10:27:28 AM »

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?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #7 on: September 16, 2009, 06:04:57 AM »

no.
but you can use diff template to stop showing the file list to some IPs, for that folder
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page Today at 09:35:34 AM