rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: asim on November 27, 2007, 10:01:26 AM

Title: a message for specified ip
Post by: asim on November 27, 2007, 10:01:26 AM
hi guys

i want to ask about showing a message for specific IP

i am using hfs 2.2a

Thanks  ::)
Title: Re: a message for specified ip
Post by: TSG on November 27, 2007, 01:09:20 PM
If you mean a ban message, ban the IP and put a message in the reason.

If you mean just a message, make a javascript if statement that will only show the message for the ip. OR use the new HFS macro's.
Title: Re: a message for specified ip
Post by: ASIM on November 27, 2007, 01:40:22 PM
thanks man :)


how can i make a JAVA Script cuz i'm not familiar with that

best regards
Title: Re: a message for specified ip
Post by: TSG on November 27, 2007, 04:51:55 PM
I'll keep it simple.

Paste this somewhere in the body of your template, input the message and ip you need.

<script type="text/javascript"> if("%ip%".match(" IP ")) document.write(' MESSAGE '); </script>
Title: Re: a message for specified ip
Post by: asim on November 27, 2007, 05:36:03 PM
Thanx

i appreciate that :)


 8)