New Message: Re: browsing client IP address detection

webmaster at userland.com webmaster at userland.com
Sat Jun 24 14:05:51 CDT 2006


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$1822

By: David Bayly (dbayly at udena.ch)

Make an new script at at workspace.myIp, and replace the default new script text by pasting in the following

on myIP () {
 local (pta = html.getpageTableAddress());
 return pta^.client}

click compile. The file menu save.

Now go to the admin site; settings, legal macros add workspace.myIP as a legal acro, with parameters.

Now you should be able to call it with {workspace.myIP()} in a template or message text.

[Not tested!]

This is a Manila site... http://manila.userland.com/.




More information about the Manila-Users mailing list