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.