PC Help And Information Easy Maintenance And Free Software |
| | Basic Welcome, Guest Count & IP Log | |
| | Author | Message |
---|
Steve™ Management
Number of posts : 2447 Home : At Home Humor : If Im Not Back Later... Wait Longer Registration date : 2007-07-30
| Subject: Basic Welcome, Guest Count & IP Log Sun Oct 07, 2007 1:09 am | |
| ok here is a basic on enter welcome and under it a basic on entry welcome with a hit counter - Code:
-
<config> <OnEnter> <out>hello %NAME% bla bla your nessage</out> </OnEnter> ///this has a time delay of 1 second <OnEnter> <out delay="1000">hello %NAME% bla bla your message</out> </OnEnter> </config> this one has the hit counter, the log is a notepad in your hard drive (normally C:\ ) so the path in this case is C:\logs\hit.txt this will remember the amount of visitors and wont reset to 0 even when room or metis is re-started - Code:
-
<config> <OnEnter type="script"> <out type="push" extdata="visitors"><operator type="readfile" nvalue="C:\logs\hit.txt" lvalue="c" rvalue="-1"/></out> <out type="push" extdata="visitors"><operator type="+" lvalue="$visitors$" rvalue="1"/></out> <out>hello %NAME% you're visitor number $visitors$ </out> <out type="file" mode="t" extdata="C:\Logs\hit.txt">$visitors$</out> </OnEnter> </config> this will record the User Name, IP & Hostname on entry to a seperate log in the same folder as your hit log - Code:
-
<config> /// this is a welcome with a hits counter and the users Name IP & Hostname will be recorded on a .txt <OnEnter type="script"> <out type="push" extdata="visitors"><operator type="readfile" nvalue="C:\logs\hit.txt" lvalue="c" rvalue="-1"/></out> <out type="push" extdata="visitors"><operator type="+" lvalue="$visitors$" rvalue="1"/></out> <out>hello %NAME% you're visitor number $visitors$ </out> <out type="file" mode="t" extdata="C:\Logs\hit.txt">$visitors$</out> <out type="file" mode="a" extdata="C:\Logs\Logging.txt"> \n %NAME% %IP% %HOSTNAME% \n </out> </OnEnter> </config>
Last edited by on Tue Oct 09, 2007 10:36 am; edited 1 time in total | |
| | | MrDarn™ Moderator
Number of posts : 299 Home : At My PC Humor : Dry/Sarcastic Registration date : 2007-09-27
| Subject: Re: Basic Welcome, Guest Count & IP Log Tue Oct 09, 2007 9:56 am | |
| - Max™ wrote:
ok here is a basic on enter welcome and under it a basic on entry welcome with a hit counter - Code:
-
<config> <OnEnter> <out>hello %NAME% bla bla your nessage</out> </OnEnter> ///this has a time delay of 1 second <OnEnter> <out>hello %NAME% bla bla your message</out> </OnEnter> </config> wheres the delay of 1 second? i was under the impression to enter a delay you had to change the out line to this: - Code:
-
<out>hello %NAME% bla bla your message</out> --------------------------------------------------- Also, in this peice of code: - Code:
-
<OnEnter> <out><operator></out> <out><operator></out> <out>hello %NAME% you're visitor number $visitors$ </out> <out>$visitors$</out> </OnEnter> what is the 2 operator lines for? as far as i can see, these are completly unneeded, unless you know different. also, which part of the script points to the saved file? should this whole piece not read something like this? - Code:
-
<OnEnter> <out><operator></out> <out>hello %NAME% you're visitor number $visitors$ </out> <out><operator></out> </OnEnter> i would also suggest a new log file for visitors ipaddresses etc, ie: add this line to the above, anywhere between onenter and /onenter tags: - Code:
-
<out>\n%RAWNAME% entered %ROOMNAME% on %LONGDATE% at %LOCALTIME% with an ip of %IP% and a hostname of %HOSTNAME%. %NMAE% was visitor number $visitors$.</out> Not being picky, just trying to clear things up!!
Last edited by on Tue Oct 09, 2007 10:05 am; edited 7 times in total | |
| | | MrDarn™ Moderator
Number of posts : 299 Home : At My PC Humor : Dry/Sarcastic Registration date : 2007-09-27
| Subject: Re: Basic Welcome, Guest Count & IP Log Tue Oct 09, 2007 9:57 am | |
| what the hell happened to my post? it was nothing like that when i posted it! Edit: forget it! i forgot to close the quote tag!!!! | |
| | | Steve™ Management
Number of posts : 2447 Home : At Home Humor : If Im Not Back Later... Wait Longer Registration date : 2007-07-30
| Subject: Re: Basic Welcome, Guest Count & IP Log Tue Oct 09, 2007 10:38 am | |
| yep, thanks again Mr Darn, you spotted my error as i copied it from my previous nots, and i oopsed on the delay along with the html option, corrected now, im working my way through incase i oopsed some more now, lol | |
| | | MrDarn™ Moderator
Number of posts : 299 Home : At My PC Humor : Dry/Sarcastic Registration date : 2007-09-27
| Subject: Re: Basic Welcome, Guest Count & IP Log Tue Oct 09, 2007 11:22 am | |
| - Max™ wrote:
- yep, thanks again Mr Darn, you spotted my error as i copied it from my previous nots, and i oopsed on the delay along with the html option,
corrected now, im working my way through incase i oopsed some more now, lol lol, you cheat! i'm pleased i quoted those sections now! Hehe! people would be thinking i was mad! others?? | |
| | | Steve™ Management
Number of posts : 2447 Home : At Home Humor : If Im Not Back Later... Wait Longer Registration date : 2007-07-30
| Subject: Re: Basic Welcome, Guest Count & IP Log Tue Oct 09, 2007 11:39 am | |
| i did them quick and didnt change my notes from 1st time round, also the html option i forgot, the other scripts i looked at seemed ok, some are mine (the easy ones, as im not an expert) most are not, so i do add their creator where known. | |
| | | Sponsored content
| Subject: Re: Basic Welcome, Guest Count & IP Log | |
| |
| | | | Basic Welcome, Guest Count & IP Log | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |
|