rejetto forum
July 31, 2010, 06:03:42 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]
  Reply  |  Print  
Author Topic: How to ban a user account? [beta 2.3 >= #253]  (Read 229 times)
0 Members and 1 Guest are viewing this topic.
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 754


....... chut ! shh!


View Profile WWW
« on: March 14, 2010, 11:14:51 AM »
Reply with quoteQuote

"For beta versions only"

You are able to install this little script in ALT+F6


[+server start=every 5 seconds]
{.file changed|ban.txt|#banned.users.}


[+request]
{.set|b|{.from table|#banned.users|%user%.}.}
{.if|{.length|var=b.}|{:
   {.disconnection reason| Hello %user%. You are banned. {.^b.}.}
:}.}


After you copy&paste this script, all you have to do is to create a file "ban.txt" in the same folder of hfs.exe using this format:


mark=you are impolite
rejetto=you suck
uploader=sorry, temporarily disabled
other username=other reason for banning




If this does not work with your template:


that's because the template you are testing is not using the needed feature (that's the %reason% in section [deny])

try right clicking on the root/home > properties > diff template
and paste this

[deny]
<h1>Unallowed</h1>
{.or|%reason%|This resource is not accessible..}


« Last Edit: March 16, 2010, 01:06:56 AM by SilentPliz » Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Google visited last this page July 15, 2010, 03:21:00 AM