Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Template System (STS)


Guest

Recommended Posts

Hi,

 

is there or will there be a way to install your template system oever an existing shop what has different contribs allready installed ?

 

thanks for your nice contrib

 

regards

 

privacynet

 

So long as the contributions haven't changed the includes files that this modified you should be able to just replace the includes files with the ones from this contribution and it should work without any more changes.

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

After installing this (contrib ver 1.2) there are several lines before the doctype declaration:

<html>

<head>

<title>$title</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">



<!-- start get_javascript(applicationtop2header) //-->

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<title>osCommerce</title>

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<!-- end get_javascript(applicationtop2header) //-->

</head>

<body>

Am I doing something wrong or is it a little bug? (it does not happen in "normal mode")

 

Thanks for the contrib, it looks very good! Also the comments you added to the PHP code are great, even I can understand some of it now.

 

Yes, this is a bug. I'll try to fix it in the next version, as well as mapping the <title> string to the $title variable and adding a variable for "osCsid" parameter for linking on non-cookie sites.

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

well im sure your use to dumb questions by now.. So one more shouldnt hurt.. Im new to this and attempting to learn by trail n error along with some reading, but ive downloaded the sts system and uploaded all the php files and the html file into includes.. this is the message I get ,

 

Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/freedom/public_html/test/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freedom/public_html/test/includes/application_top.php on line 53

 

I have tinkered, edited and every thing that my limited knowledge can think to do.. now im looking for some meger education.. Thanks

Jerry

 

Dumb questions are fine, as long as they're easy ones. :wink:

 

Did you test your installation and see if it worked before installing the STS mods?

 

I notice that you don't have a /catalog/ directory listed in the error message. Are the files from your /catalog/ directory actually stored in your /home/freedom/public_html/test/ directory?

 

Make sure all the OSC files are actually in the .../catalog/includes/ directory.

 

It looks like you might have deleted the files in the directory (filenames.php in particular). It looks like you might have deleted them and then installed the ones from STS. Don't do that. Simply copy the files from STS into the directory to replace what's there. Leave the rest of the files alone.

 

Then, check the permissions of the files and make sure that the web server process (usually, Apache runs as the user "nobody"). If you're running Linux/Unix try typing

cd /home/freedom/public_html/test/includes/

chmod 755 *.php

 

This will set all your PHP files to be readable to all processes on the system, and only writable by you.

This should make sure that the web server can actually read your files.

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

After installing this (contrib ver 1.2) there are several lines before the doctype declaration:

<html>

<head>

<title>$title</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">



<!-- start get_javascript(applicationtop2header) //-->

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<title>osCommerce</title>

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<!-- end get_javascript(applicationtop2header) //-->

</head>

<body>

Am I doing something wrong or is it a little bug? (it does not happen in "normal mode")

 

Thanks for the contrib, it looks very good! Also the comments you added to the PHP code are great, even I can understand some of it now.

 

Yes, this is a bug. I'll try to fix it in the next version, as well as mapping the <title> string to the $title variable and adding a variable for "osCsid" parameter for linking on non-cookie sites.

 

Greate contribution! First time i took a look at your idea, i thought i must be slower than the "normal" way. But I did a direct comparison of the Page Parse Times of two clean installations and it even seems to be faster with STS !??? Any idea why this could be? "Where light is, there is shadow"... so what will be the disadvantage? More memory-usage? (Couldnt find out yet).

 

the snippet "applicationtop2header" contains not only the JS-Code as it should, so the header-information will be put out a second time. And also the body-tag.

I want to have controll of the body-tag via the template, so if you work out a bugfix, take a look on this too.

 

Great work! Am looking for your next update!!!

 

Cord

Link to comment
Share on other sites

sorry, my first reply... this time with bb-code:

 

After installing this (contrib ver 1.2) there are several lines before the doctype declaration:

<html>

<head>

<title>$title</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">



<!-- start get_javascript(applicationtop2header) //-->

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<title>osCommerce</title>

<base href="http://localhost/test.nl/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<!-- end get_javascript(applicationtop2header) //-->

</head>

<body>

Am I doing something wrong or is it a little bug? (it does not happen in "normal mode")

 

Thanks for the contrib, it looks very good! Also the comments you added to the PHP code are great, even I can understand some of it now.

 

Yes, this is a bug. I'll try to fix it in the next version, as well as mapping the <title> string to the $title variable and adding a variable for "osCsid" parameter for linking on non-cookie sites.

 

Greate contribution! First time i took a look at your idea, i thought i must be slower than the "normal" way. But I did a direct comparison of the Page Parse Times of two clean installations and it even seems to be faster with STS !??? Any idea why this could be? "Where light is, there is shadow"... so what will be the disadvantage? More memory-usage? (Couldnt find out yet).

 

the snippet "applicationtop2header" contains not only the JS-Code as it should, so the header-information will be put out a second time. And also the body-tag.

I want to have controll of the body-tag via the template, so if you work out a bugfix, take a look on this too.

 

Great work! Am looking for your next update!!!

 

Cord

Link to comment
Share on other sites

Hi

 

if someone got this installed on their site can someone post a demo for me to see. how it really look like. how customize isthis..

 

thanks

 

It doesn't look very different (just table-borders and br between boxes). Customizing is just done in template.html (html-editing)

Link to comment
Share on other sites

would it be possible to have a hint in the readme or somewhere else about the changes made to the original files?

It is not needed for all of them but for ex. the aplication_top.php is changed by a lot of contribs and it is hard to compare each line.

 

thanks for this desperatly needed addon. i?m installing it right now and if it should work for me, my grafic - buddy will kiss me!

 

george

Link to comment
Share on other sites

would it be possible to have a  hint in the readme or somewhere else about the changes made to the original files?

It is not needed for all of them but for ex. the aplication_top.php is changed by a lot of contribs and it is hard to compare each line.

 

thanks for this desperatly needed addon. i?m installing it right now and if it should work for me, my grafic - buddy will kiss me!

 

george

 

Just use a file-compare tool like araxis merge and compare (even compares folder-structures) to a clean installation of osc

Link to comment
Share on other sites

would it be possible to have a  hint in the readme or somewhere else about the changes made to the original files?

It is not needed for all of them but for ex. the aplication_top.php is changed by a lot of contribs and it is hard to compare each line.

 

thanks for this desperatly needed addon. i?m installing it right now and if it should work for me, my grafic - buddy will kiss me!

 

george

 

I'll try to add it in the update. Basically, the only changes are the ob_start() code at the bottoms, the ob_get_contents() at the tops, and all the stripping/formatting/displaying code in application_bottom.php.

 

I'll probably move all that code out into another file to keep the original codebase "purer", but this was written in an afternoon and I just wanted to get it working.

 

My Rule:

1) Make it work.  2) Make it fast.  3) Make it pretty.  

Options 2 and 3 are interchangable depending on the job.

 

- bg

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

thanks for the fast reply. Got it working.

But the contact_us is not parsed in. Maybe it?s because i have the information pages addon installed. but the pages generated by this are shown correctly.

looked at your bugfix mentioned earlier but this was already corrected by you.

 

here?s the address of the shop i?m currently working on if you would like to try it out.

 

http://www.shop.dasdepot.com

Link to comment
Share on other sites

thanks for the fast reply. Got it working.  

But the contact_us is not parsed in. Maybe it?s because i have the information pages addon installed. but the pages generated by this are shown correctly.

looked at your bugfix mentioned earlier but this was already corrected by you.

 

here?s the address of the shop i?m currently working on if you would like to try it out.

 

http://www.shop.dasdepot.com

 

From looking at the $osc_block['footer2applicationbottom'] block that it is including the column_right.php output. Did you not update the column_right.php file?

 

None of this stuff should be in that block after the <!-- right_navigation //--> comment. All this shouldn't be there, indicating that you missed some of the capture code somewhere:

<!-- right_navigation_eof //-->

 </table> </table> </td>

 </tr>

</table>

<!-- body_eof //-->



<!-- footer //-->





<table border="0" width="840" cellspacing="0" cellpadding="0"> 

 <tr class="footer"> 

   <td class="footer">  Mittwoch, 10. September 2003  </td>

   <td align="right" class="footer">  6119 Zugriffe seit Montag, 28. Juli 2003  </td>

 </tr>

</table>





<!--?start globale breite - siehe auch header -->

</td>

</tr> 

</table></center><!-- end globale breite - siehe auch header -->



<!-- footer_eof //-->

<br>

</body>

</html>

 

It should look like you see it on here:

http://www.jhtalk.org/22ms2clean/catalog/c...php?sts_debug=1

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

Actually it's a warning thingie, it's moments like these that I wonder if I will ever get this stuff right :::sigh::: It is saying over a clean install

 

Warning: mysql_connect(): Access denied for user: 'nobody@localhost' (Using password: NO) in /home/tester/www/tester/shop/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

 

Now my passwords are the same and stuff, the install was completely clean, and I did just what the directions told me to :( help.

 

Parin

You only get to live *this* life one time, so do as well as you can but be sure to also enjoy it.

Link to comment
Share on other sites

Thanks DiamondSea for the input... It appears I may have a older version of Oscommerse.. Im new with PHP entirely, Ive done what is prolly basic modifications on two carts, www.dixietronix.com/store and www.southernbargains.com/store with in my first two weeks. Im using space I have on another account to tamper deeper in to this cart.. Ive seen some real kewl designs from people on this board and hope I can get up to their ranks ..

 

Thanks again

Jerry

Link to comment
Share on other sites

Hi,

 

Hope you can help. I'm completely new to this stuff and have no idea if this is an easy fix or not. Hopefully it falls into the silly question/easy answer catagory.

 

I'm trying to instal STS 1.2 and using osCommerce 2.2MS2 and linux. I had a clean install (after much work :) ) and I'm now trying to add some contributions. My first is STS. I've run forum searches for this error, but I haven't found a match.

 

I'm getting the following error:

Parse error: parse error in /home/miniatur/public_html/catalog/includes/configure.php on line 18



Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/miniatur/public_html/catalog/includes/application_top.php on line 53



Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/miniatur/public_html/catalog/includes/application_top.php on line 53

 

Here are line 18 & 53 from the catalog/index.php file. I hope this is helpful:

 

Line 18

   $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");



Line 53

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

 

On a side note, can anyone recommend some other good contributions to add into osCommerce after I get STS up and running?

 

Thanks for your help,

 

Dave

Link to comment
Share on other sites

Parse error: parse error in /home/miniatur/public_html/catalog/includes/configure.php on line 18

 

It sounds like your error is in configure.php on line 18 and that is error is rippling through the other scripts.

 

From the rest of the messages, it sounds like you have a bad quotation mark or a missing period on that line.

 

- bg

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

Have they changed the header files in the 2.2CVS from the MS2 release?

 

I haven't played with the CVS code yet.

 

If they have changed things, you might want to make sure you don't clobber something important by replacing the files.

 

FYI, I'm working on the next release now that is a little cleaner to install and the changes are clearly marked. Also a couple bugfixes and new featuers. Should be up in a couple days.

 

- bg

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

Brian,

 

Thanks alot for your great contribution.

 

I have installed it as well as the basic template system for MS2. With a few tweaks they both work well together. There are some great possibilities with this template system. Keep up the great work!

 

By the way, it looks like we are neighbors. I am from Bel Air.

 

Eric Stamper

Link to comment
Share on other sites

Version 1.3 of STS is out now.

 

I've moved the support thread to a new one to go with the new forum server (and added the format [contribution] header to the thread.

 

Check it out here:

http://www.oscommerce.com/forums/index.php?showtopic=58541

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

thx for this great contrib - but how do i add for example infoboxes - newsdesk or other contribs ?

 

thx in advance ;)

geizhals

I posted the response to your message in the other thread.

 

Please don't use this thread any more (if you want to get a response).

 

The new "Official" support thread is here:

 

http://www.oscommerce.com/forums/index.php?showtopic=58541

 

Thanks!

 

- Brian

Simple Template System (STS)

Layout your site with 1 (or more) HTML file!

Download STS: http://www.oscommerce.com/community/contributions,1524

Support: http://www.oscommerce.com/forums/index.php?showtopic=58541

Link to comment
Share on other sites

  • 3 weeks later...

I'm one of those newbie's to OSC, tried the install, but got an error when I tried to view the default page... A point in the right direction would be appreciated... I'm guessing it's gonna be a simple step I'm missing... Thanks. JK

 

The Error Code:

 

Warning: main(includes/filenames.php): failed to open stream: No such file or directory in /home/mehalick/public_html/cars/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'includes/filenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mehalick/public_html/cars/includes/application_top.php on line 53

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...