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

YOU ARE HERE:
[content] tag in CPShop

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « [content] tag in CPShop »
Welcome, Guest. Please Login or Register.
12/14/17 at 02:17:50
Home Help Search Login Register
   marty.net message board
   General
   General Stuff
   [content] tag in CPShop
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: [content] tag in CPShop  (Read 757 times)
Xeon
Guest

E-Mail
[content] tag in CPShop
« on: 03/27/04 at 20:25:40 »
Reply with quote Modify message

Hi Marty! I finally got CPShop!
(sent my payment to Ed and he purchased it for me)

Anyway, on the Installation guide, it says, :

Quote:
<[content]> required
The main content generated by cpshop. This can go anywhere in the body of your template, typically where you'd put the main content for your site. Keep in mind that this space should be at least 450-500 pixels wide, in order to fit


But what must I do to create the "450 - 500 pixels" space?
Do I press down and hold the "Enter" key until I get this amount of space?

I'm kinda confused, though.

Thanks!
Xeon.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: [content] tag in CPShop
« Reply #1 on: 03/28/04 at 03:10:36 »
Reply with quote Modify message

It means that you need to make sure your template (which is essentially a web page with a big empty space in the middle of it) has a spot in the middle that's wide enough for cpshop to put your store content.

A very simple template would look like this:


Code:
<html>
<head>
<title><[title]></title>
</head>
<body>
<img src="yourlogo.gif">
<table width=750>
<tr>
<td width=150>Menu goes here</td>
<td width=600><[content]></td>
</tr>
</table>
</body>
</html>


Note that the table cell containing the cpshop <[content]> tag is 600 pixels wide, which is plenty of space for cpshop to put your store content.

Now generally, instead of using a template that's as simple as my example here, you'd create a template that looked just like a standard page from your website.  Then place the <[title]> tag in the title area, and the <[content]> tag in the central content area of your page.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #2 on: 03/28/04 at 04:19:44 »
Reply with quote Modify message

Thanks a lot for the lightning-fast reply, Marty!
Logged
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #3 on: 03/28/04 at 06:14:12 »
Reply with quote Modify message

Phew! After some playing and stuff, my shop is finally up and running!

I noticed that CPShop generates store links like : http://www.mysite.com/cgi-bin/store/cpshop.cgi/22149483

Is it possible to "embed" such pages into my site using SSI code?

I know how to embed PHP pages within PHP pages, like :

<?php include "nav.php"?>

But how do we do the same for such "CGI-generated" pages?
Is it even possible?

Thanks Marty!
Xeon.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: [content] tag in CPShop
« Reply #4 on: 03/28/04 at 14:07:00 »
Reply with quote Modify message

You might want to look in the Tutorials section of this board.  There's a full tutorial on how to incorporate cpshop into php pages.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #5 on: 03/29/04 at 06:59:00 »
Reply with quote Modify message

Hi Marty!
Thanks for your reply!

PHP stuff aside, the main problem now is : Internal 500 Server error.

Everything is fine, but after 10 minutes of testing and such, and I click the "CPShop.cgi" link at the top of the CPShop admin page, it gives me an Internal 500 Server error.

To solve this, I need to delete all the files and upload everything again.
After a while, the d@mn problem appeared again and I gotta reset everything and redo everything.

This is really wasting a lot of precious time and I can't concentrate on the main issues.

Is there any cause and fixes for this, Marty?

Thanks a lot!
Xeon.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: [content] tag in CPShop
« Reply #6 on: 03/29/04 at 15:23:51 »
Reply with quote Modify message

Do you have access to any error logs?  There are plenty of potential reasons why server errors occur, and enumerating them all might take a while.  

Have you done any customizing of your files at all?  It sounds a lot like an endless loop error, or something similar.

Worst case scenario, you can email me the login info, and I can try to diagnose the problem myself.  But that's a worst-case scenario kind've thing.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #7 on: 03/31/04 at 02:24:32 »
Reply with quote Modify message

Thanks Marty!

I'll try to find out what's the problem tonight.
By the way, your installation guide mentions that we should have several files in the package, including cpshop.cgi.config.

But in the package I received, I only had cpshop.txt.config and not cpshop.cgi.config.

Am I missing out something here?

Thanks Marty!
Xeon.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: [content] tag in CPShop
« Reply #8 on: 03/31/04 at 09:52:33 »
Reply with quote Modify message

cpshop.txt.config?  I've never named any file like that.

Where exactly did you find that file?  I just checked the archives available in the download area, and none of them have any file named cpshop.txt.config.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #9 on: 04/01/04 at 04:57:09 »
Reply with quote Modify message


Quote:
cpshop.txt.config?  I've never named any file like that.

Where exactly did you find that file?  I just checked the archives available in the download area, and none of them have any file named cpshop.txt.config.

Hi Marty! Well, remember that I purchased CPShop through Ed of JMF-Pub?
He sent the CPShop.zip file to me and when I extract the contents, there's no cpshop.cgi.config, but cpshop.txt.config.

The contents is roughly as follows :

Quote:
<<<SECTION>>>
fonttags
face="arial,helvetica,verdana" size=2
<<<SECTION>>>
MainInsertFile

<<<SECTION>>>
MainURL

<<<SECTION>>>
thumbheight
120
<<<SECTION>>>
ShowZoomLink
yes
<<<SECTION>>>
ShowHorizontalLines
no
<<<SECTION>>>
HTMLtemplate

<<<SECTION>>>
DummyStoreID
cpdefault
<<<SECTION>>>
thumbwidth
120
<<<SECTION>>>
nextlink
next design
<<<SECTION>>>
greeting
<b>Welcome to our store.<br>Please select a category to browse our products.</b>
<<<SECTION>>>
prevlink
prev design
<<<SECTION>>>
tablewid

.
.
.
.
.blah blah blah.....
.
.
.
.
My Store
<<<SECTION>>>
StoreIDs
1001_110002||||Standard Store||||This is an example of a typical store.
1001_500006,1001_500027,1001_500003||||Multiple Store ID Store||||This store is made up of three store IDs, to combine products from multiple storefronts.


Should I just rename this file to cpshop.cgi.config?
If no, then can you send me the cpshop.cgi.config file to xeonboy@hotmail.com?

Thanks Marty!
Xeon.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: [content] tag in CPShop
« Reply #10 on: 04/01/04 at 12:31:13 »
Reply with quote Modify message

Yes, you can just rename it to cpshop.cgi.config.  And you might want to fire off an email to Ed and let him know that the file is misnamed.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #11 on: 04/02/04 at 04:50:39 »
Reply with quote Modify message

I'll be sure to let him know, Marty.

Good day,
Xeon.
Logged
jmfpub
Green Dragon
*

Posts: 7



Probably my fault!
  jmfpub jmfpub   jmfpub

WWW E-Mail
Re: [content] tag in CPShop
« Reply #12 on: 04/02/04 at 05:34:43 »
Reply with quote Modify message

Wow!  Sorry Xeon.  I have no idea why I would have done that.  I've touched the original archive a total of 3 times since I bought it.  The first time was when I first installed it for myself.  The second was after I "talked" to Marty about reselling it when I wrote an installer to save myself time when I had someone buy it from me with hosting.  The third time was one day that I had consumed way too much coffee and suddenly decided that I needed CPShop to output valid XHTML Transitional.  I can't for the life of me figure out why I would have renamed that file at all, much less cpshop.txt.config.

Anyway, I'm glad you got it working.  Sorry about the headache, Marty.
Logged
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #13 on: 04/02/04 at 06:07:45 »
Reply with quote Modify message

It's totally alright, Ed!
We all make blunders sometimes.
In our case, this is not even consider a harmful mistake and has no real impacts on anything.

Good day!
Xeon.
Logged
Xeon
Guest

E-Mail
Re: [content] tag in CPShop
« Reply #14 on: 04/03/04 at 19:38:26 »
Reply with quote Modify message

PROBLEM SOLVED!

Thanks again, guys!
Xeon.
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.