1) Add Field to your links.def file called IP.
2) Update your database using the upgrade.pl file located in a number of Threads in the Links 2.0 forum.
3) Add the following codes in your sub site_html_add_form and sub site_html_add_failure in the site_html_templates.pl:
my $ipaddress = $ENV{'REMOTE_ADDR'};
Then define the following tag in these subroutines:
IP => $ipaddress,
4) Then add a hidden field to your add.html and add_error.html file:
<input type="hidden" name="IP" value="<%IP%>">
That should take care of storing the IP address...although be aware that IP addresses are not the most reliable data to record your visitor's activities, since IP addresses are assigned dynamically via most dialup connections.
Now for the second part of your request...I don't really understand what you want to do.
Regards,
Eliot Lee
2) Update your database using the upgrade.pl file located in a number of Threads in the Links 2.0 forum.
3) Add the following codes in your sub site_html_add_form and sub site_html_add_failure in the site_html_templates.pl:
Code:
my $ipaddress = $ENV{'REMOTE_ADDR'};
Then define the following tag in these subroutines:
Code:
IP => $ipaddress,
4) Then add a hidden field to your add.html and add_error.html file:
Code:
<input type="hidden" name="IP" value="<%IP%>">
That should take care of storing the IP address...although be aware that IP addresses are not the most reliable data to record your visitor's activities, since IP addresses are assigned dynamically via most dialup connections.
Now for the second part of your request...I don't really understand what you want to do.
Regards,
Eliot Lee