marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Template Question

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Template Question »
Welcome, Guest. Please Login or Register.
12/14/17 at 10:09:05
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Template Question
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Template Question  (Read 819 times)
markwood
Green Dragon
*

Gender: male
Posts: 10




    crzmm11

WWW E-Mail
Template Question
« on: 05/31/03 at 15:10:40 »
Reply with quote Modify message

Hey Marty!

I'm trying to make a template for my site.

My template is: http://www.markwood.org/buchos/store.asp
and store is:http://www.markwood.org/cgi-bin/store/cpshop.cgi

My problem is that my header & footer are not working properly, primarily the login section. Is there anything you can think of that will help me out?

Any help greatly appreciated!
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Template Question
« Reply #1 on: 06/02/03 at 01:04:22 »
Reply with quote Modify message

You have to make sure you use absolute links.  I'm not sure if I've explained the difference between the two yet, so I guess this is as good a time as any.

When cpshop runs, it typically runs out of the /cgi-bin/store directory.  That means whatever links you have in your template will work as if they originated from a page in that directory.

I repeat: It doesn't matter where your template is stored -- the browser will interpret all links as if they came from the cpshop directory.

Let's try an example.

Assume cpshop is in this directory:
c:/websites1/markwood.org/cgi-bin/store/

If you have a link to "policy.asp", the browser will see that filename, and assume it exists in the same directory as cpshop.  As a result, it'll look for this file:
c:/websites1/markwood.org/cgi-bin/store/policy.asp

What I recommend is you use absolute links.  That's where you start each link with a slash ("/"), and then give the complete path to the page you want to use.

So instead of linking to "policy.asp", you'd link to "/buchos/policy.asp".  That tells the browser to go to the root of the current domain (www.markwood.org/), and then go to the path specified.

As for your login section, what exactly is the problem?  It seems to be pointing to the correct file.  Is that working now?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
markwood
Green Dragon
*

Gender: male
Posts: 10




    crzmm11

WWW E-Mail
Re: Template Question
« Reply #2 on: 06/04/03 at 17:22:24 »
Reply with quote Modify message

Thanks Marty.

I think the login problem is an issue with cookies, I think I had it set for the directory and I'll change it to the whole site and see if it works.

Thanks Again!
Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.