Displaying IPHOSTNAME

This is an archive of old posting to the User Forum

Displaying IPHOSTNAME

Postby BruceM » Wed May 07, 2003 2:47 pm

Has anyone found a way to display the IP address that a customer is using
when placing an order. We would like to use this variable on our order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to get it
to display on an order screen.
BruceM
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Wed May 07, 2003 7:13 pm

I would also be VERY interested to hear if anyone has found out how to do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer is using
when placing an order. We would like to use this variable on our order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to get it
to display on an order screen.

Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby Scott Norman » Thu May 08, 2003 9:08 pm

If you have pro or manager version of ShopSite using the order.api with Perl
or any other CGI you can output the ip address plus all the other fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows all the
fields that you can use to create your own thankyou screen. You put the file
in shop-bin/sc. Make sure the file has execute privileges. In the order API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the top and show
the regular ShopSite thankyou screen, though you'll get the following "
Content-type: text/html" when it prints out and I haven't figure out if
there's a way to get rid of it. Also this method actually creates two
completely html pages in one browser screen which works, but not sure that's
the best way to do things.

If you need any programming done with the Order API I'm available to do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out how to do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer is using
when placing an order. We would like to use this variable on our order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to get it
to display on an order screen.



Scott Norman
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Thu May 08, 2003 9:11 pm

What I think people are wanting (at least it's what I want) is a way to
display the IP address BEFORE order completion - right up front! So people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api with
Perl
or any other CGI you can output the ip address plus all the other fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows all the
fields that you can use to create your own thankyou screen. You put the
file
in shop-bin/sc. Make sure the file has execute privileges. In the order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the top and
show
the regular ShopSite thankyou screen, though you'll get the following "
Content-type: text/html" when it prints out and I haven't figure out if
there's a way to get rid of it. Also this method actually creates two
completely html pages in one browser screen which works, but not sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available to do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out how to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer is
using
when placing an order. We would like to use this variable on our order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to get
it
to display on an order screen.





Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby Jason Jones » Thu May 08, 2003 9:30 pm

The following code may work depending on your server setup.

<SCRIPT LANGUAGE="JavaScript">
<!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End -->
</script>

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way to
display the IP address BEFORE order completion - right up front! So people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api with
Perl
or any other CGI you can output the ip address plus all the other fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows all the
fields that you can use to create your own thankyou screen. You put the
file
in shop-bin/sc. Make sure the file has execute privileges. In the order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the top and
show
the regular ShopSite thankyou screen, though you'll get the following "
Content-type: text/html" when it prints out and I haven't figure out if
there's a way to get rid of it. Also this method actually creates two
completely html pages in one browser screen which works, but not sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available to do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out how to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer is
using
when placing an order. We would like to use this variable on our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to
get
it
to display on an order screen.







Jason Jones
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Thu May 08, 2003 10:18 pm

Tried, but didn't work. Any special things necessary to configure server to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way to
display the IP address BEFORE order completion - right up front! So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows all
the
fields that you can use to create your own thankyou screen. You put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the top
and
show
the regular ShopSite thankyou screen, though you'll get the following
"
Content-type: text/html" when it prints out and I haven't figure out
if
there's a way to get rid of it. Also this method actually creates two
completely html pages in one browser screen which works, but not sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer is
using
when placing an order. We would like to use this variable on our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to
get
it
to display on an order screen.









Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby Jason Jones » Thu May 08, 2003 11:38 pm

Yes. If it doesn't work try saving the file as .shtml or .asp. Make sure
the code goes in the body of the page (between the <body> and </body> tags).
If you don't have knowledge of HTML send me an email and I can help you out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way
to
display the IP address BEFORE order completion - right up front! So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows all
the
fields that you can use to create your own thankyou screen. You put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't figure out
if
there's a way to get rid of it. Also this method actually creates
two
completely html pages in one browser screen which works, but not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a customer
is
using
when placing an order. We would like to use this variable on our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how
to
get
it
to display on an order screen.











Jason Jones
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Fri May 09, 2003 6:50 am

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure javascript
was enabled in my browser, and made sure the code was between the body tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp. Make sure
the code goes in the body of the page (between the <body> and </body
tags).
If you don't have knowledge of HTML send me an email and I can help you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way
to
display the IP address BEFORE order completion - right up front! So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows
all
the
fields that you can use to create your own thankyou screen. You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't figure
out
if
there's a way to get rid of it. Also this method actually creates
two
completely html pages in one browser screen which works, but not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure
how
to
get
it
to display on an order screen.













Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby Scott Norman » Fri May 09, 2003 12:19 pm

What type of server are you on Unix, Linux, Windows? I believe you need to
make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure javascript
was enabled in my browser, and made sure the code was between the body tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp. Make sure
the code goes in the body of the page (between the <body> and </body
tags).
If you don't have knowledge of HTML send me an email and I can help you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way
to
display the IP address BEFORE order completion - right up front! So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows
all
the
fields that you can use to create your own thankyou screen. You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't figure
out
if
there's a way to get rid of it. Also this method actually creates
two
completely html pages in one browser screen which works, but not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure
how
to
get
it
to display on an order screen.















Scott Norman
 

Re: Displaying IPHOSTNAME

Postby BruceM » Fri May 09, 2003 9:24 pm

After doing a bit of searching, I was able to get it to work when used
inconjunction with some free tools at www.bfndevelopment.com the tools are
available after you join as a member. I will try to see if my ISP can
implement them so as not to always be linking to an external location.

Here is the script:
Copy and past this code in the <head> of any html document. After you
past this code in the correct place, you will be able to get the users
information using the javascript variables anywhere in the remaining html
document.


<script language = "JavaScript" src =
"http://www.bfndevelopment.com/cgi-bin/home/Members/Environment/Environment.
cgi?User=2337">
// bfnIP - Contains the users IP address
// bfnUserAgent - Contains the users User Agent information, including
browser.
</script>

<script language = "JavaScript">
// Example:
// document.write(bfnIP);
// document.write(bfnUserAgent);
</script>

I am testing it on the bottom of our 'about-us' page
http://www.essential-data.com/about-us.html


"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE14D35.62F3%scott@yourhost.com...
What type of server are you on Unix, Linux, Windows? I believe you need to
make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure
javascript
was enabled in my browser, and made sure the code was between the body
tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp. Make
sure
the code goes in the body of the page (between the <body> and </body
tags).
If you don't have knowledge of HTML send me an email and I can help you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure
server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a way
to
display the IP address BEFORE order completion - right up front! So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows
all
the
fields that you can use to create your own thankyou screen. You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't figure
out
if
there's a way to get rid of it. Also this method actually creates
two
completely html pages in one browser screen which works, but not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure
how
to
get
it
to display on an order screen.
















BruceM
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Sat May 10, 2003 7:30 am

Works great! Thanks :)

One minor problem... cant seem to insert in to <head> section of an
auto-generated ShopSite page. I have tried searching all the help files but
no information was forthcoming. Anyone know if it is possible to edit the
<head? section of SS pages?


"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9hutq$cnk$1@support.shopsite.com...
After doing a bit of searching, I was able to get it to work when used
inconjunction with some free tools at www.bfndevelopment.com the tools are
available after you join as a member. I will try to see if my ISP can
implement them so as not to always be linking to an external location.

Here is the script:
Copy and past this code in the <head> of any html document. After you
past this code in the correct place, you will be able to get the users
information using the javascript variables anywhere in the remaining html
document.


script language = "JavaScript" src =

"http://www.bfndevelopment.com/cgi-bin/home/Members/Environment/Environment.
cgi?User=2337"
// bfnIP - Contains the users IP address
// bfnUserAgent - Contains the users User Agent information, including
browser.
/script

script language = "JavaScript"
// Example:
// document.write(bfnIP);
// document.write(bfnUserAgent);
/script

I am testing it on the bottom of our 'about-us' page
http://www.essential-data.com/about-us.html


"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE14D35.62F3%scott@yourhost.com...
What type of server are you on Unix, Linux, Windows? I believe you need
to
make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com, "Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure
javascript
was enabled in my browser, and made sure the code was between the body
tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp. Make
sure
the code goes in the body of the page (between the <body> and </body
tags).
If you don't have knowledge of HTML send me an email and I can help
you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure
server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in
message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a
way
to
display the IP address BEFORE order completion - right up front!
So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the
order.api
with
Perl
or any other CGI you can output the ip address plus all the other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows
all
the
fields that you can use to create your own thankyou screen. You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't figure
out
if
there's a way to get rid of it. Also this method actually creates
two
completely html pages in one browser screen which works, but not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure
how
to
get
it
to display on an order screen.


















Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby BruceM » Sat May 10, 2003 9:35 am

In ShopSite go to preferences, then Page Header & Footer and insert the
script in the header section. That way it will be available for all pages.

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9j2en$g5a$1@support.shopsite.com...
Works great! Thanks :)

One minor problem... cant seem to insert in to <head> section of an
auto-generated ShopSite page. I have tried searching all the help files
but
no information was forthcoming. Anyone know if it is possible to edit the
head? section of SS pages?


"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9hutq$cnk$1@support.shopsite.com...
After doing a bit of searching, I was able to get it to work when used
inconjunction with some free tools at www.bfndevelopment.com the tools
are
available after you join as a member. I will try to see if my ISP can
implement them so as not to always be linking to an external location.

Here is the script:
Copy and past this code in the <head> of any html document. After
you
past this code in the correct place, you will be able to get the users
information using the javascript variables anywhere in the remaining
html
document.


script language = "JavaScript" src =


"http://www.bfndevelopment.com/cgi-bin/home/Members/Environment/Environment.
cgi?User=2337"
// bfnIP - Contains the users IP address
// bfnUserAgent - Contains the users User Agent information, including
browser.
/script

script language = "JavaScript"
// Example:
// document.write(bfnIP);
// document.write(bfnUserAgent);
/script

I am testing it on the bottom of our 'about-us' page
http://www.essential-data.com/about-us.html


"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE14D35.62F3%scott@yourhost.com...
What type of server are you on Unix, Linux, Windows? I believe you
need
to
make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure
javascript
was enabled in my browser, and made sure the code was between the
body
tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp.
Make
sure
the code goes in the body of the page (between the <body> and
/body
tags).
If you don't have knowledge of HTML send me an email and I can help
you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in
message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to configure
server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in
message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is a
way
to
display the IP address BEFORE order completion - right up front!
So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the
order.api
with
Perl
or any other CGI you can output the ip address plus all the
other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which shows
all
the
fields that you can use to create your own thankyou screen. You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In
the
order
API
screen put custom-dump.pl in the Custom CGI Location location.

You could have a Perl script that outputs the ip address at the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't
figure
out
if
there's a way to get rid of it. Also this method actually
creates
two
completely html pages in one browser screen which works, but
not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm
available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article
b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found
out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure
how
to
get
it
to display on an order screen.





















BruceM
 

Re: Displaying IPHOSTNAME

Postby Daves Discount Motors » Sat May 10, 2003 4:08 pm

Hmmm... if you look at the raw HTML of a SS generated page, the page header
does not actually appear within the <head> </head> section of the page, but
in the main page body...

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9j9nm$gp1$1@support.shopsite.com...
In ShopSite go to preferences, then Page Header & Footer and insert the
script in the header section. That way it will be available for all pages.

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9j2en$g5a$1@support.shopsite.com...
Works great! Thanks :)

One minor problem... cant seem to insert in to <head> section of an
auto-generated ShopSite page. I have tried searching all the help files
but
no information was forthcoming. Anyone know if it is possible to edit
the
head? section of SS pages?


"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9hutq$cnk$1@support.shopsite.com...
After doing a bit of searching, I was able to get it to work when used
inconjunction with some free tools at www.bfndevelopment.com the tools
are
available after you join as a member. I will try to see if my ISP can
implement them so as not to always be linking to an external location.

Here is the script:
Copy and past this code in the <head> of any html document. After
you
past this code in the correct place, you will be able to get the users
information using the javascript variables anywhere in the remaining
html
document.


script language = "JavaScript" src =



"http://www.bfndevelopment.com/cgi-bin/home/Members/Environment/Environment.
cgi?User=2337"
// bfnIP - Contains the users IP address
// bfnUserAgent - Contains the users User Agent information, including
browser.
/script

script language = "JavaScript"
// Example:
// document.write(bfnIP);
// document.write(bfnUserAgent);
/script

I am testing it on the bottom of our 'about-us' page
http://www.essential-data.com/about-us.html


"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE14D35.62F3%scott@yourhost.com...
What type of server are you on Unix, Linux, Windows? I believe you
need
to
make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure
javascript
was enabled in my browser, and made sure the code was between the
body
tags.
Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...
Yes. If it doesn't work try saving the file as .shtml or .asp.
Make
sure
the code goes in the body of the page (between the <body> and
/body
tags).
If you don't have knowledge of HTML send me an email and I can
help
you
out
with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in
message
news:b9fe7v$3p0$1@support.shopsite.com...
Tried, but didn't work. Any special things necessary to
configure
server
to
use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...
The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in
message
news:b9f9pb$3c3$1@support.shopsite.com...
What I think people are wanting (at least it's what I want) is
a
way
to
display the IP address BEFORE order completion - right up
front!
So
people
know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...
If you have pro or manager version of ShopSite using the
order.api
with
Perl
or any other CGI you can output the ip address plus all the
other
fields
plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which
shows
all
the
fields that you can use to create your own thankyou screen.
You
put
the
file
in shop-bin/sc. Make sure the file has execute privileges. In
the
order
API
screen put custom-dump.pl in the Custom CGI Location
location.

You could have a Perl script that outputs the ip address at
the
top
and
show
the regular ShopSite thankyou screen, though you'll get the
following
"
Content-type: text/html" when it prints out and I haven't
figure
out
if
there's a way to get rid of it. Also this method actually
creates
two
completely html pages in one browser screen which works, but
not
sure
that's
the best way to do things.

If you need any programming done with the Order API I'm
available
to
do
that.

Scott

On 5/7/03 7:13 PM, in article
b9cef8$pa4$1@support.shopsite.com,
"Daves
Discount Motors" <webmaster@davesmotors.com> wrote:

I would also be VERY interested to hear if anyone has found
out
how
to
do
this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...
Has anyone found a way to display the IP address that a
customer
is
using
when placing an order. We would like to use this variable
on
our
order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not
sure
how
to
get
it
to display on an order screen.























Daves Discount Motors
 

Re: Displaying IPHOSTNAME

Postby Guest » Sat May 10, 2003 6:50 pm

There are two ways to put something in the Head section of ShopSite pages.
1. You can used a custom template and just include what you need in the
head section of the template.
2. You can add the information through the Meta tag field of the page
information. Check out knowledge base solution # S02825.
http://support.shopsite.com/kbase for some information on how to do this.

Jim
Daves Discount Motors wrote:
Hmmm... if you look at the raw HTML of a SS generated page, the page header
does not actually appear within the <head> </head> section of the page, but
in the main page body...

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9j9nm$gp1$1@support.shopsite.com...

In ShopSite go to preferences, then Page Header & Footer and insert the
script in the header section. That way it will be available for all pages.

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in message
news:b9j2en$g5a$1@support.shopsite.com...

Works great! Thanks :)

One minor problem... cant seem to insert in to <head> section of an
auto-generated ShopSite page. I have tried searching all the help files

but

no information was forthcoming. Anyone know if it is possible to edit

the

head? section of SS pages?


"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9hutq$cnk$1@support.shopsite.com...

After doing a bit of searching, I was able to get it to work when used
inconjunction with some free tools at www.bfndevelopment.com the tools

are

available after you join as a member. I will try to see if my ISP can
implement them so as not to always be linking to an external location.

Here is the script:
Copy and past this code in the <head> of any html document. After

you

past this code in the correct place, you will be able to get the users
information using the javascript variables anywhere in the remaining

html

document.


script language = "JavaScript" src =


"http://www.bfndevelopment.com/cgi-bin/home/Members/Environment/Environment.

cgi?User=2337"
// bfnIP - Contains the users IP address
// bfnUserAgent - Contains the users User Agent information, including
browser.
/script

script language = "JavaScript"
// Example:
// document.write(bfnIP);
// document.write(bfnUserAgent);
/script

I am testing it on the bottom of our 'about-us' page
http://www.essential-data.com/about-us.html


"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE14D35.62F3%scott@yourhost.com...

What type of server are you on Unix, Linux, Windows? I believe you

need

to

make sure Server Side Includes (SSI) are running on your server.

Scott

On 5/9/03 6:50 AM, in article b9gbmm$744$1@support.shopsite.com,

"Daves

Discount Motors" <webmaster@davesmotors.com> wrote:


Hmmm...
tried saving the page as both .shtml and .asp, checking to ensure

javascript

was enabled in my browser, and made sure the code was between the

body

tags.

Still no luck :(

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9ficf$443$1@support.shopsite.com...

Yes. If it doesn't work try saving the file as .shtml or .asp.

Make

sure

the code goes in the body of the page (between the <body> and

/body

tags).

If you don't have knowledge of HTML send me an email and I can

help

you

out

with the specifics.

Jason Jones
"Daves Discount Motors" <webmaster@davesmotors.com> wrote in

message

news:b9fe7v$3p0$1@support.shopsite.com...

Tried, but didn't work. Any special things necessary to

configure

server

to

use this code properly?

"Jason Jones" <jmjones@uci.edu> wrote in message
news:b9fatf$3e6$1@support.shopsite.com...

The following code may work depending on your server setup.

SCRIPT LANGUAGE="JavaScript"
!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP address is "+ip);
// End --
/script

"Daves Discount Motors" <webmaster@davesmotors.com> wrote in

message

news:b9f9pb$3c3$1@support.shopsite.com...

What I think people are wanting (at least it's what I want) is

a

way

to

display the IP address BEFORE order completion - right up

front!

So

people

know they are being watched. Any thoughts?

"Scott Norman" <scott@yourhost.com> wrote in message
news:BAE077B5.62C2%scott@yourhost.com...

If you have pro or manager version of ShopSite using the

order.api

with

Perl

or any other CGI you can output the ip address plus all the

other

fields

plus others that you see on the thankyou page.

I've attached custom-dump.pl which ShopSite sent me which

shows

all

the

fields that you can use to create your own thankyou screen.

You

put

the

file

in shop-bin/sc. Make sure the file has execute privileges. In

the

order

API

screen put custom-dump.pl in the Custom CGI Location

location.

You could have a Perl script that outputs the ip address at

the

top

and

show

the regular ShopSite thankyou screen, though you'll get the

following

"

Content-type: text/html" when it prints out and I haven't

figure

out

if

there's a way to get rid of it. Also this method actually

creates

two

completely html pages in one browser screen which works, but

not

sure

that's

the best way to do things.

If you need any programming done with the Order API I'm

available

to

do

that.

Scott

On 5/7/03 7:13 PM, in article

b9cef8$pa4$1@support.shopsite.com,

"Daves

Discount Motors" <webmaster@davesmotors.com> wrote:


I would also be VERY interested to hear if anyone has found

out

how

to

do

this! ShopSite... take note - feature request for 6.4....

"BruceM" <mckeag@cdrecorders.com> wrote in message
news:b9butg$no5$1@support.shopsite.com...

Has anyone found a way to display the IP address that a

customer

is

using

when placing an order. We would like to use this variable

on

our

order

screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not

sure

how

to

get

it

to display on an order screen.















Guest
 

Re: Displaying IPHOSTNAME - Another Option

Postby Scott Norman » Sun May 11, 2003 7:52 pm

I've been learning Perl in use with the order.api and also the CALL tag in
ShopSite Templates. I've attached two Perl scripts for use with the CALL tag
that will get IP address and User Agent in Templates.

To use:
1. Perl needs to be running on the server
2. In the Perl files use may need to change the location of Perl depending
on the server setup.
3. Place file in shop-bin/ss/ or location that is setup for ShopSite cgi-bin
4. Make sure file has execute privileges
5. In template use command [-- CALL getIP.pl --] or [-- CALL getUserAgent.pl
--]

Scott Norman

On 5/7/03 2:47 PM, in article b9butg$no5$1@support.shopsite.com, "BruceM"
<mckeag@cdrecorders.com> wrote:

Has anyone found a way to display the IP address that a customer is using
when placing an order. We would like to use this variable on our order
screen to help dissuade potential fraudulent orders.

The IPHOSTNAME variable is available in reports but not sure how to get it
to display on an order screen.

Scott Norman
 

Next

Return to User Forum Archive

Who is online

Users browsing this forum: Google [Bot] and 34 guests