Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 9 votes

[contribution] Simple Template System (sts)


5806 replies to this topic

#5681 wezside

  • Community Member
  • 1 posts
  • Real Name:Wesley

Posted 03 September 2010, 12:09

Hi,

Was wondering if it is possible to create one's own $content template? I would like to avoid the table that it is currently using?

#5682 ekapujiw2002

  • Community Member
  • 1 posts
  • Real Name:EX4

Posted 05 September 2010, 22:34

hello,
how to download the files? i always get corrupted zip file
try to download it dozen times and still get corrupted file
your guidance please

#5683 germ

  • Community Member
  • 13,471 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 05 September 2010, 23:13

Download the bkellum 15 Feb 2010 version.

The person who has uploaded the last two obviously is having issues with zip files.

>_<




Added in edit - I have reported the corrupt zip files.

Maybe they will be removed soon.

Edited by germ, 05 September 2010, 23:17.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#5684 bkellum

  • Community Member
  • 4,892 posts
  • Real Name:Bill Kellum
  • Gender:Male
  • Location:Chicago

Posted 06 September 2010, 05:24

View Postgerm, on 05 September 2010, 23:13, said:

Download the bkellum 15 Feb 2010 version.

The person who has uploaded the last two obviously is having issues with zip files.

[img]http://forums.oscommerce.com/public/style_emoticons/default/pinch.gif[/img]




Added in edit - I have reported the corrupt zip files.

Maybe they will be removed soon.


Seeing how "coolwool_1221" has never so much as even posted in the forums, I highly doubt his upload was valid to begin with. Seeing that there IS NO missing folders in the previous download (Feb 2010), I'm sure this was nothing more than a virus attack or attempted spam.
Bill Kellum

Sounds Good Productions
STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

#5685 mran

  • Community Member
  • 25 posts
  • Real Name:Miranda

Posted 14 September 2010, 02:05

Hi. I'm having the same problems as two previous posters, getting this error:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174


I am using the Feb 15 V4.6 version with manual file edit, and have tried re-uploading twice, and have compared my files with the ones in the RC2 folder twice using a file comparison program. I can only suppose I have an error in my configure file. Can anyone tell me if this is so?

This is a new site, but it was working properly before I tried installing this. I have previously installed most of the suggested contributions in the Secure Your Site thread, so no problem making installations, but I did have a problem with my configure.php settings before.

<?php
  define('HTTP_SERVER', 'http://natrlobs.sc22.info/');
  define('HTTP_CATALOG_SERVER', 'http://natrlobs.sc22.info/');
  define('HTTPS_CATALOG_SERVER', 'http://natrlobs.sc22.info/');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); 
  define('DIR_WS_ADMIN', 'heddle/');
  define('DIR_FS_ADMIN', '/home/www/naturalobsessionsfiber.org/heddle/');
  define('DIR_WS_CATALOG', '/naturalobsessionsfiber.org/');
  define('DIR_FS_CATALOG', '/home/www/naturalobsessionsfiber.org/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . '/home/www/naturalobsessionsfiber.org/includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . '/home/www/naturalobsessionsfiber.org/includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/home/www/naturalobsessionsfiber.org/backups/');

I appreciate any feedback!

#5686 bkellum

  • Community Member
  • 4,892 posts
  • Real Name:Bill Kellum
  • Gender:Male
  • Location:Chicago

Posted 14 September 2010, 03:22

View Postmran, on 14 September 2010, 02:05, said:

Hi. I'm having the same problems as two previous posters, getting this error:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174


I am using the Feb 15 V4.6 version with manual file edit, and have tried re-uploading twice, and have compared my files with the ones in the RC2 folder twice using a file comparison program. I can only suppose I have an error in my configure file. Can anyone tell me if this is so?



STS does not require any changes to the configure.php files.

If you are having the same problem as the others you listed, it is because of user error on your part. You need to focus on the installation and install STS completely and accurately.
Bill Kellum

Sounds Good Productions
STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

#5687 mran

  • Community Member
  • 25 posts
  • Real Name:Miranda

Posted 14 September 2010, 03:33

View Postbkellum, on 14 September 2010, 03:22, said:

STS does not require any changes to the configure.php files.

If you are having the same problem as the others you listed, it is because of user error on your part. You need to focus on the installation and install STS completely and accurately.

I realize that STS does not require any change to the configure.php file. Having spent the entire afternoon attempting to find whatever error I made, and reinstalling STS completely and accurately, I am left wondering whether some existing error in my configure.php file might be getting triggered by STS. This is only an hypothesis.

As I say, I've gone over the installation multiple times without finding whatever error I made. Any clues which ones might be more likely to kick out the error I'm getting? There is nothing else on the page but those two error warnings--the whole admin is now inaccessible.

#5688 gimmedonuts

  • Community Member
  • 6 posts
  • Real Name:Alain

Posted 14 September 2010, 18:54

Hi all, first post here, I don't have too much knowledge about php but trying to get around :)

So my question is about the quick horizontal search ( http://www.oscommerce.com/community/contributions,4456 )
It works fine, but I want it to make the search box automatically resizable to its max length depending on window size.

I tried to add a width=100% but the problem is that it kicks the dropdown category menu and the GO button to the next line, and the text I put in front goes on the line before the search box.

is there any way around this? Thanks!

here's the code

	$sts->start_capture();
	echo "\n<!-- Search -->\n";
	$hide = tep_hide_session_id();
	echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => 'All Categories')))); 
	echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';
	echo $hide . '<input type="text" name="keywords" onFocus=this.value="" size="20" style="width:100%;" maxlength="30" value="' . BOX_SEARCH_TEXT . '">&nbsp;';
	echo '<input type="submit" value="Go"> <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . tep_draw_hidden_field('inc_subcat', '1') . '</a>';
	echo '</form>';
	echo "<!-- End Search -->\n";
    	$sts->stop_capture('hsearch');


#5689 mran

  • Community Member
  • 25 posts
  • Real Name:Miranda

Posted 15 September 2010, 00:39

Can anyone advise me? I've been trying to uninstall STS, in order to restore my admin and see where I went wrong. I've removed every STS file I can find and have removed all changes to the existing files, and I'm still getting this same error message:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

I can't get into admin at all. There is NOTHING in any of the files mentioned pertaining to STS, and the includes/classes/sts.php file is not there.

Is this a cache problem? How can I clear the cache without access to the admin? And where is this include_path='.:/usr/local/php5/lib/php' coming from? I have no path like that on my server.

#5690 mran

  • Community Member
  • 25 posts
  • Real Name:Miranda

Posted 15 September 2010, 01:45

Neeevermind! It seems I'm not getting Notepad++ to save as well as I thought. Bet that's been the problem all along--some of the edits must not have "taken."

Sorry for the whining. Off to try again.

#5691 bkellum

  • Community Member
  • 4,892 posts
  • Real Name:Bill Kellum
  • Gender:Male
  • Location:Chicago

Posted 15 September 2010, 03:50

View Postmran, on 15 September 2010, 00:39, said:

Can anyone advise me? I've been trying to uninstall STS, in order to restore my admin and see where I went wrong. I've removed every STS file I can find and have removed all changes to the existing files, and I'm still getting this same error message:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/php5/lib/php') in /home/www/naturalobsessionsfiber.org/heddle/includes/application_top.php on line 174

I can't get into admin at all. There is NOTHING in any of the files mentioned pertaining to STS, and the includes/classes/sts.php file is not there.

Is this a cache problem? How can I clear the cache without access to the admin? And where is this include_path='.:/usr/local/php5/lib/php' coming from? I have no path like that on my server.

This is most likely from uploading the wrong application_top.php or sts.php in the wrong folder on your server.
Bill Kellum

Sounds Good Productions
STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

#5692 mran

  • Community Member
  • 25 posts
  • Real Name:Miranda

Posted 15 September 2010, 04:11

View Postbkellum, on 15 September 2010, 03:50, said:

This is most likely from uploading the wrong application_top.php or sts.php in the wrong folder on your server.

Yep. There are several files that have the same name, but some belong in the /admin folder and others in the /catalog folder. If anyone else is going nuts over this, try making sure you haven't confused them. That and a wonky bluetooth keyboard that doesn't always register my saves cost me a day and a half of wasted time.

Also, for some reason, my includes/header.php file was substantially different than the one in the original OSC download--maybe I overwrote that with the wrong file, too. This caused the front end to disappear until I figured it out. All installed now.

#5693 iltec

  • Community Member
  • 7 posts
  • Real Name:Sarah
  • Gender:Female

Posted 17 September 2010, 21:42

View Postnefertari, on 20 July 2010, 14:31, said:

[img]http://nefertaricreations.com/download/print.JPG[/img]

I have innstald a fresh copy and the sts module but why can't I innstall? the infoboxses is missing. please help. thank you

I am having this same problem. I have a fresh install of v.2.2rc2a. I uploaded all of the files from RC2 which includes:

catalog\admin\modules.php
catalog\admin\includes\boxes\modules.php
catalog\admin\includes\languages\english.php (plus all other languages you may have in your setup)
catalog\admin\includes\languages\english\modules.php (plus all other languages you may have in your setup)
catalog\includes\application_bottom.php
catalog\includes\application_top.php
catalog\includes\column_left.php
catalog\includes\column_right.php
catalog\includes\footer.php
catalog\includes\header.php
catalog\includes\classes\boxes.php
catalog\includes\functions\html_output.php

As each file was uploaded it overwrote another file. I checked off each one as I did it. They were all there. I've tried reinstalling several times but it still won't work. The install button is there for the STS Modules but when I press the button nothing happens. Any ideas?

#5694 iltec

  • Community Member
  • 7 posts
  • Real Name:Sarah
  • Gender:Female

Posted 17 September 2010, 21:50

View Postiltec, on 17 September 2010, 21:42, said:

I am having this same problem. I have a fresh install of v.2.2rc2a. I uploaded all of the files from RC2 which includes:

catalog\admin\modules.php
catalog\admin\includes\boxes\modules.php
catalog\admin\includes\languages\english.php (plus all other languages you may have in your setup)
catalog\admin\includes\languages\english\modules.php (plus all other languages you may have in your setup)
catalog\includes\application_bottom.php
catalog\includes\application_top.php
catalog\includes\column_left.php
catalog\includes\column_right.php
catalog\includes\footer.php
catalog\includes\header.php
catalog\includes\classes\boxes.php
catalog\includes\functions\html_output.php

As each file was uploaded it overwrote another file. I checked off each one as I did it. They were all there. I've tried reinstalling several times but it still won't work. The install button is there for the STS Modules but when I press the button nothing happens. Any ideas?

Also, I have this error when I try to see my store:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in ......//includes/application_top.php on line 501

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in .../includes/application_top.php on line 501

Before I installed the sts this error was not there and I could see my store just fine.

#5695 bkellum

  • Community Member
  • 4,892 posts
  • Real Name:Bill Kellum
  • Gender:Male
  • Location:Chicago

Posted 18 September 2010, 00:35

View Postiltec, on 17 September 2010, 21:50, said:

Also, I have this error when I try to see my store:

Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in ......//includes/application_top.php on line 501

Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in .../includes/application_top.php on line 501

Before I installed the sts this error was not there and I could see my store just fine.

You did not upload the files from the STS folder. You need both sets of files!
Bill Kellum

Sounds Good Productions
STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

#5696 iltec

  • Community Member
  • 7 posts
  • Real Name:Sarah
  • Gender:Female

Posted 18 September 2010, 01:12

View Postbkellum, on 18 September 2010, 00:35, said:

You did not upload the files from the STS folder. You need both sets of files!
That did the trick.

I guess I didn't read the install instructions close enough :) Thank you so much for your help.

#5697 goodbeast

  • Community Member
  • 6 posts
  • Real Name:kim enkeli

Posted 18 September 2010, 21:17

Hi all,

Just installed a copy of STS manually on cycdirect.co.uk and I did everything just as the manual set, but now half my pages are showing up completely blank and I can't get to the admin panel to change anything, I didn't enable anything or turn anything on, completely clueless what to do! Really interested in this add on and want to try it out so any help would be really really appreciated

Thanks a lot hope someone can assist me!! :(

-N00b

#5698 gimmedonuts

  • Community Member
  • 6 posts
  • Real Name:Alain

Posted 20 September 2010, 02:49

View Postgoodbeast, on 18 September 2010, 21:17, said:

Hi all,

Just installed a copy of STS manually on cycdirect.co.uk and I did everything just as the manual set, but now half my pages are showing up completely blank and I can't get to the admin panel to change anything, I didn't enable anything or turn anything on, completely clueless what to do! Really interested in this add on and want to try it out so any help would be really really appreciated

Thanks a lot hope someone can assist me!! :(

-N00b

what do mean you cannot get to the admin panel and didn't enable anything? Go to the osCommerce admin panel, go to module>STS and then install, you can then choose which template you want to start working on. To change stuff later on you need to modify the templates files manually (using File Manager of your Cpanel) and maybe also some other files depending of what changes you want to do.



BTW, my question from below is still unanswered if anybody can help :)

View Postgimmedonuts, on 14 September 2010, 18:54, said:

Hi all, first post here, I don't have too much knowledge about php but trying to get around :)

So my question is about the quick horizontal search ( http://www.oscommerce.com/community/contributions,4456 )
It works fine, but I want it to make the search box automatically resizable to its max length depending on window size.

I tried to add a width=100% but the problem is that it kicks the dropdown category menu and the GO button to the next line, and the text I put in front goes on the line before the search box.

is there any way around this? Thanks!

here's the code

	$sts->start_capture();
	echo "\n<!-- Search -->\n";
	$hide = tep_hide_session_id();
	echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => 'All Categories')))); 
	echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';
	echo $hide . '<input type="text" name="keywords" onFocus=this.value="" size="20" style="width:100%;" maxlength="30" value="' . BOX_SEARCH_TEXT . '">&nbsp;';
	echo '<input type="submit" value="Go"> <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . tep_draw_hidden_field('inc_subcat', '1') . '</a>';
	echo '</form>';
	echo "<!-- End Search -->\n";
    	$sts->stop_capture('hsearch');


#5699 goodbeast

  • Community Member
  • 6 posts
  • Real Name:kim enkeli

Posted 20 September 2010, 10:09

I cant get into the admin panel, I installed it manually and it won't let me get onto the modules page or any of my normal pages on the site :-/ lost!!

#5700 gimmedonuts

  • Community Member
  • 6 posts
  • Real Name:Alain

Posted 20 September 2010, 14:57

not to sound stupid, but did you install osCommerce? If yes, I would reinstall and try again intalling sts