Paulie Posted June 30, 2004 Posted June 30, 2004 Hello, I am new to osCommerce and PHP, so please bare with me. I would like to know how I can use my own custom site design with osCommerce? Do I just edit one template with the design and all of my dynamic pages will automatically generate with my design? Also, what is the best editor to use when working with PHP? I currently have Frontpage 2003 which I understand is not really designed for this. Thanks, Paul
CentralMass Posted June 30, 2004 Posted June 30, 2004 search contributions for STS to use your own design great contrib, I use it for all my customers Need Hosting? Just ask!
GraphicsGuy Posted June 30, 2004 Posted June 30, 2004 You will probably want to take a look at one of the template systems available, for example http://www.oscommerce.com/community/contributions,1524 There are a number of PHP code enditors available to download. PHP Coder is a pretty good one. You can download it from http://www.phpide.de And it is free. I will echo what you have heard about Frontpage with osc. The two don't mix very well. Largely because of the many proprietary changes that Frontpage makes to files and folders. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
Paulie Posted June 30, 2004 Author Posted June 30, 2004 Hey guys, Thanks for the suggestions! Now that know how to use the STS tool a little bit, I have another question. How do I get the page located at /catalog/index.php to load as the default main page when I go straight to the URL? Right now the URL points to index.html which is located in the main root. Thanks, Paul
808smokey Posted June 30, 2004 Posted June 30, 2004 you have to change the .htaccess file in the root directory to something like this: RewriteEngine On Options +FollowSymlinks RewriteCond %{HTTP_HOST} your_domain.com$ RewriteCond %{REQUEST_URI} !catalog/ RewriteRule ^(.*)$ catalog/$1 :)
Paulie Posted June 30, 2004 Author Posted June 30, 2004 I'm running on a Windows server so I don't have a .htaccess file. Is there another way? Thanks, Paul
GraphicsGuy Posted June 30, 2004 Posted June 30, 2004 You can move everything (folders and files) that are in catalog up one level. Then change all entries in both configure.php files to reflect the new paths. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
Guest Posted June 30, 2004 Posted June 30, 2004 I have a oscommerce website www.duckout.com which is live but which has not been modified much from the basic installation. I paid for an IT guy to install the site originally and it does work and we do sell stuff! Great but now I would like to fix some of the annoying and frustrating thing about the site. I am new to webdesign, PHP and OSCommerce and feel rather frustrated... where do I start! I would like to find an experienced PHP student and duckout of this problem too! If this is possible where do I find such a person? The code seems extreemly complicated and there is always something more. I dare not edit anything as the site would go down and if I back it up it takes ages.. and then I have to restore it back. Is it posible to have a copy on a local machine and "play"?? Mark, duckout :huh:
Mike_Jandreau Posted June 30, 2004 Posted June 30, 2004 Or you could use a simply Javascript forwarding code on your index.html page. That's the easiest thing, and what I use for most of mine. <head><script language="JavaScript"><!-- setTimeout("top.location.href = 'http://www.yourdomain.com/catalog",0000); //--></script> </head> the yourdomain part you obviously change. the 0000 is the amount of time in milliseconds that the page will wait before it redirects. 0000 is instant, 1000 is 1 second, 2000 is two seconds, etc. www.moviesnobs.net - Reel Reviews, Real Viewers
GraphicsGuy Posted June 30, 2004 Posted June 30, 2004 Or you could use a simply Javascript forwarding code on your index.html page. That's the easiest thing, and what I use for most of mine.<head><script language="JavaScript"><!-- setTimeout("top.location.href = 'http://www.yourdomain.com/catalog",0000); //--></script> </head> the yourdomain part you obviously change. the 0000 is the amount of time in milliseconds that the page will wait before it redirects. 0000 is instant, 1000 is 1 second, 2000 is two seconds, etc. I could be wrong, but I have understood that many of the major search engines won't index a site that uses javascript redirects. I know that the pay per click search engine listings (Overture and AdWords) reject such submissions. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
agiftcodotcom Posted June 30, 2004 Posted June 30, 2004 See if your host offers a server side redirect. That's what I used until I moved everything up a level. Duckout.... and there is always something more. That's the wonderful world of the web :D Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll
Mike_Jandreau Posted June 30, 2004 Posted June 30, 2004 I use them for most any site I design that's either a PHP include, or an OsCommerce site, and I've never had any problem using a javascript forwarder. Though I also include the META tags within the index.html page, which is what most of the spiders look for. Atleast I know Lycos does, cause I work for them. Though most engines are the same build on the backend. www.moviesnobs.net - Reel Reviews, Real Viewers
CentralMass Posted June 30, 2004 Posted June 30, 2004 Atleast I know Lycos does, cause I work for them. Though most engines are the same build on the backend. Shouldn't you be at the company picknick today then? ;) :lol: :lol: :lol: :lol: :lol: Need Hosting? Just ask!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.