1 reply [Last post]
bobtroy
Offline
newbie
RI
Last seen: 10 years 51 weeks ago
RI
Joined: 2003-09-01
Posts: 1
Points: 0

I notice a member on a board who had a signature with the persons ip who is viewing the page, with a random quote. I would like to make one like this. Any help appreciated, thanks alot, bobtroy

Example....XX.XX.XXX.XX, your are running IE6, then the "quote" Wink

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 10 hours 35 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5098
Points: 2688

user agent and ip

Hi Bobtroy,
You would need to use PHP or something similar.
It wouldn't be hard to do as long as the board lets you link to external files.

For the ip number you could use $_SERVER['REMOTE_ADDR'];
and $_SERVER['HTTP_USER_AGENT']; would give you the whole user agent string.
You may then want to clean it up the user agent using something like http://www.appcreator.com/visitorsnif.php

Hope that helps.