Gossamer Forum
Home : Products : Gossamer Links : Discussions :

how to show ip of link submitter

Quote Reply
how to show ip of link submitter
I would like to see the ip of my link submitters. How can I do this?
Quote Reply
Re: [drumstick] how to show ip of link submitter In reply to
1. Create new column in Links Table: "SubmittersIP"
2. Create new globals: "remote_ip"

sub {
return $ENV{REMOTE_ADDR}
}

3. Add in include_form.html this code:

<%if SubmittersIP%>
<input type="hidden" value="<%SubmittersIP%>" name="SubmittersIP" />
<%else%>
<input type="hidden" value="<%remote_ip%>" name="SubmittersIP" />
<%endif%>

Should work!

_________________________________________________________________________________________________________________
Web directory and search engine | Dirlist.net Directory - Add your link today.
Quote Reply
Re: [Bigpat] how to show ip of link submitter In reply to
...or even easier <G>

http://www.gossamer-threads.com/...orum.cgi?post=273506

I wrote that a while ago... but it should work fine on any version of LSQL/GLinks.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!