Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

I have been trying to integrate the more categories contribution with the sts template contribution.

For most parts this has been successful, but I have one small problem.

 

The site I'm working on has multiple languages, so I was trying to use the box titles of the more categories as a basis for the images.

 

I created the reference to the box

  require(DIR_WS_BOXES . 'more_categories.php');
 $sts->restart_capture ('more', 'box');

 

I created an infobox_more_categories.php.html file in the template folder.

 

<div>
 <div style="width:170px; height:59px; ">
<img border="0" src="images/box title/$headertext$langid.gif" width="170" height="59"> I also tried categorie$langid.gif
 </div>
 <div>$content</div>
</div>

 

Now in a perfect world I should get an image with source nameofbox + mylangid (1 for English for example).

 

But when i run this the source of the image file says www.site.com/images/box title/categories$langid.gif

 

The $langid and the $headertext are not working in my custom created boxes. (they do work for all my other boxes that come wit osc)

 

Anyone with an idea or clue to the solution?

Link to comment
Share on other sites

Tracy,

I have been implementing the Nested Unordered List contribution from Nate and found that it is more flexible than the Dynamenu one. I have been able to get the exact look that I want with it just using CSS. Also, I add the code required directly to my template.

 

As to why you have to add the code to the application_bottom.php for the Dynamenu contribution thats just the way Nate designed it. Again, I haven't used the Dynamenu contribution in a while since I have really liked his other contribution better.

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

I have been trying to integrate the more categories contribution with the sts template contribution.

For most parts this has been successful, but I have one small problem.

 

The site I'm working on has multiple languages, so I was trying to use the box titles of the more categories as a basis for the images.

 

I created the reference to the box

  require(DIR_WS_BOXES . 'more_categories.php');
 $sts->restart_capture ('more', 'box');

 

I created an infobox_more_categories.php.html file in the template folder.

 

<div>
 <div style="width:170px; height:59px; ">
<img border="0" src="images/box title/$headertext$langid.gif" width="170" height="59"> I also tried categorie$langid.gif
 </div>
 <div>$content</div>
</div>

 

Now in a perfect world I should get an image with source nameofbox + mylangid (1 for English for example).

 

But when i run this the source of the image file says www.site.com/images/box title/categories$langid.gif

 

The $langid and the $headertext are not working in my custom created boxes. (they do work for all my other boxes that come wit osc)

 

Anyone with an idea or clue to the solution?

Interesting....Are you sure it is working for your other boxes? Can you give an example.

I can't see why it wouldn't work with your custom boxes but it does with the stock ones. It makes me think that the custom boxes are not designed in the osC manner. Are the custom boxes located in the includes/boxes folder?

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Interesting....Are you sure it is working for your other boxes? Can you give an example.

I can't see why it wouldn't work with your custom boxes but it does with the stock ones. It makes me think that the custom boxes are not designed in the osC manner. Are the custom boxes located in the includes/boxes folder?

 

example but the more_categories contribution is not added on the server yet.

It failed on my desktop test server hence the delay :-" .

 

But it shows you that the other images are being changed when you change language.

 

the more categories contribution can be found using this link.

 

example2.png This is a screen shot of my local install.

Edited by dimi78
Link to comment
Share on other sites

I scrolled through the support forum for that contribution and noticed something in particular that may be causing your issue.

 

In includes/boxes/more_categories.php, you may have the following line of code:

 

 

echo '<img src="/images/' . $infoBox['name'] . '.gif">';

If so, you may need to change it to the following:

 

includes/boxes/more_categories.php

 

 

echo '<img src="/images/' . $infoBox['name'] . '' . $language_id . '.gif">';

or something similiar. Anyway, the point is that it appears that the More Categories contribution code is causing the problem and I am not familiar enough with that add-on to troubleshoot it exactly.

 

By the way, looks like you are making good use of the $langid tag. Good job!

 

Hope this helped,

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

I'm having a bit of trouble trying to integrate php into the template system, for example I have tried running the following in "sts_user_code.php":

 

$getpathID = $_GET['cPath'];

if ($getpathID = 30) {

$mypathimage = 'newpartstab.gif'; }

else if ($getpathID = 34) {

$mypathimage = 'usedpartstab.gif'; }

else { $mypathimage = "shop.gif"; }

$sts->template['mypathimages']=$mypathimage;

 

This initially returns the correct result in the template for $mypathimages , however once moving through different categories where the cPath is changing, the result is not updated and stays as it was the very first time it loaded.

 

Would anyone be able to explain to me how I can get the function to update each time a page loads?

 

The reason behind this code is that I require a new image to load depending on the category being viewed, eg. New Parts, Used Parts, etc. The STS seems to only retrieve and process this code once then store it permanently for the rest of the session. I've been struggling to find a way around it.

 

I have found however, that running the following:

 

$getpathID = $_GET['cPath'];

$sts->template['mypathimages']=$getpathID;

 

will return the correct cPath number each time a page loads, however when running the entire code it will only process the initial result. Using the codes directly within the "index.php.html" template file produces the same outcome.

 

Any help is very much appreciated,

 

Roy.

Edited by Virtual-R
Link to comment
Share on other sites

Managed to figure it out, was a problem with my code not STS, my appologies :)

Roy, Glad to see that you got it working.

What code did you end up with if you don't mind sharing?

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Thx man, you rock!

 

You gave me the right spot to look.

 

In includes/boxes/more_categories.php, you may have the following line of code:

 

 

echo '<img src="/images/' . $infoBox['name'] . '.gif">';

 

First I was puzzled cause I couldn't find that reference in my file, but I searched the forum over there and found this and followed the instructions but added the $languages_id like you suggested.

 

By the way, looks like you are making good use of the $langid tag. Good job!

 

Hope this helped,

 

Yes the $langid helped a lot in designing a multi languages site. It was exactly what I needed.

 

thx again.

Edited by dimi78
Link to comment
Share on other sites

Roy, Glad to see that you got it working.

What code did you end up with if you don't mind sharing?

 

Sure happy to share :)

 

Used the following code within "sts_user_code.php":

 

if ($cPath==30) {

$mypathimage = '/img/shopspecific/categories_newparts_tab.gif'; }

elseif ($cPath==34) {

$mypathimage = '/img/shopspecific/categories_usedparts_tab.gif'; }

else {

$mypathimage = '/img/shopspecific/categories_index_tab.gif'; }

 

$sts->template['categoryimage']="$mypathimage";

 

Now within the template files "index.php.html" or "product_info.php.html" placing $categoryimage within a <img src=" "> tag returns the image related to the category being viewed.

 

If anyone else is looking to use the code you will just need to replace the $cPath==*number* and the image links with ones that correspond to your own oscommerce install.

 

Now that this is working with all the cPath related areas, I'll extend it to do the same functions with other areas such as checkout and my account.

 

Thanks for all the work you have put into STS Bill, it really is a huge asset to oscommerce and the community.

Link to comment
Share on other sites

Sure happy to share :)

 

Used the following code within "sts_user_code.php":

 

if ($cPath==30) {

$mypathimage = '/img/shopspecific/categories_newparts_tab.gif'; }

elseif ($cPath==34) {

$mypathimage = '/img/shopspecific/categories_usedparts_tab.gif'; }

else {

$mypathimage = '/img/shopspecific/categories_index_tab.gif'; }

 

$sts->template['categoryimage']="$mypathimage";

 

Now within the template files "index.php.html" or "product_info.php.html" placing $categoryimage within a <img src=" "> tag returns the image related to the category being viewed.

 

If anyone else is looking to use the code you will just need to replace the $cPath==*number* and the image links with ones that correspond to your own oscommerce install.

 

Now that this is working with all the cPath related areas, I'll extend it to do the same functions with other areas such as checkout and my account.

 

Thanks for all the work you have put into STS Bill, it really is a huge asset to oscommerce and the community.

Roy, that code is nice but I can't help but wonder why you just didn't create a category template and add the image that you needed.

For example, for your category 30, you could have just created a index.php_30.html and added the categories_newpart_tab.gif graphic.

You could do the same for your other category pages in which you wanted a specific graphic to be called just for that category.

 

Same goes for the My Account page and all of the others.

 

Is this what you wanted to do?

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Hi, I'm trying to install the STSv4.5.2 and HTCv2.6.3 Bundle by Bill Kellum. Following the instructions I have carried out the following stages:

- Backed up

- Copied all the files to my store (it was a fresh install, so I've just copied everything in)

- Made the database changes using database_setup.php (I got the Database installation successful message)

 

Now I'm on to the STS configuration and am told to go to admin panel - modules. But when I try to go into admin I get a page saying:

*****

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

*****

 

What's displaying in the address bar is: http://localhost/ecommerce/oscommerce/admin/FILENAME_LOGIN (as you can see I'm working on it locally).

 

I've tried a couple of times with a fresh installation but get the same problem every time. Am I missing something obvious?

 

Cheers for any help.

Emily

Link to comment
Share on other sites

Hi, I'm trying to install the STSv4.5.2 and HTCv2.6.3 Bundle by Bill Kellum. Following the instructions I have carried out the following stages:

- Backed up

- Copied all the files to my store (it was a fresh install, so I've just copied everything in)

- Made the database changes using database_setup.php (I got the Database installation successful message)

 

Now I'm on to the STS configuration and am told to go to admin panel - modules. But when I try to go into admin I get a page saying:

*****

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

*****

 

What's displaying in the address bar is: http://localhost/ecommerce/oscommerce/admin/FILENAME_LOGIN (as you can see I'm working on it locally).

 

I've tried a couple of times with a fresh installation but get the same problem every time. Am I missing something obvious?

 

Cheers for any help.

Emily

 

Emily,

You are using the latest version of osCommerce (RC1) and that bundle was created for the older 060817 version. The capital letters FILENAME_LOGIN indicate you are missing a definition, meaning there is something wrong with the admin/includes/filenames.php file. You most likely copied the one inlcuded with the contribution over yours. You will need to restore your original file and make the required changes manually to that file.

 

The new RC1 osC version has a login feature that the old 060817 version did not have and you simply erased part of the code needed for that feature.

 

:thumbsup: Click on the link in my signature below on how to manually install HTC with the latest version of STS (4.5.8). This little step by step will work for any version of HTC and STS as well as the new RC1 version of osCommerce.

 

Hope this helped,

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Roy, that code is nice but I can't help but wonder why you just didn't create a category template and add the image that you needed.

For example, for your category 30, you could have just created a index.php_30.html and added the categories_newpart_tab.gif graphic.

You could do the same for your other category pages in which you wanted a specific graphic to be called just for that category.

 

Same goes for the My Account page and all of the others.

 

Is this what you wanted to do?

 

Ah I didn't know that was possible, I thought only the included files were able to be changed, didn't realise it recognises new templates if another page name is used. Thanks for the tip should save me even more time now :)

Link to comment
Share on other sites

Ah I didn't know that was possible, I thought only the included files were able to be changed, didn't realise it recognises new templates if another page name is used. Thanks for the tip should save me even more time now :)

 

I thought you were missing something to go to all that work to reinvent the wheel so to speak. :lol:

Take a look at the STS User Manual under the sections of 3.6 - 3.9. This will open a whole new world of STS functionallity for you to enjoy.

 

Have fun and don't go too wild with all those new tools at your disposal,

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Emily,

You are using the latest version of osCommerce (RC1) and that bundle was created for the older 060817 version. The capital letters FILENAME_LOGIN indicate you are missing a definition, meaning there is something wrong with the admin/includes/filenames.php file. You most likely copied the one inlcuded with the contribution over yours. You will need to restore your original file and make the required changes manually to that file.

 

The new RC1 osC version has a login feature that the old 060817 version did not have and you simply erased part of the code needed for that feature.

 

:thumbsup: Click on the link in my signature below on how to manually install HTC with the latest version of STS (4.5.8). This little step by step will work for any version of HTC and STS as well as the new RC1 version of osCommerce.

 

Hope this helped,

 

Thanks Bill, that makes a lot of sense. I'll have a look at your instructions.

Best wishes, Emily

Link to comment
Share on other sites

Mysterious Firefox bug fix for Bill's "Add New Pages Using STS" package

 

I downloaded Bill's package "Add New Pages Using STS" and used the newpage.php.html template and found that if I opened that file (directly from the zip package) in Firefox, all seemed normal.

When I uploaded all the files and opened the page in IE, all seemed normal, however in Firefox 2 the first 3 characters on the page always were:  (doesn't look nice with a banner starting after those 3 characters)

These characters cannot be seen in Notepad, not in Dreamweaver, but they are there.

It was driving me mad.

In the end, I opened the file in notepad, hit Ctrl a, Ctrl c, made a new empty textfile in notepad, hit Ctrl v, saved. Same file, looked identical, only 3 bits smaller

 

I have uploaded the Bill's complete package, exept for those 3 characters.

 

Do a comparison between Bill's newpage.php.html and mine an you might see those 3 characters. I used Total commander's file comparison feature for the comparison

 

I wonder if my Mac will show those characters?

Unfortunately I can't check that anymore because I deleted Bill's original files, and I'm not that curious to download them again

Edited by wotsupdoc
Link to comment
Share on other sites

Mysterious Firefox bug fix for Bill's "Add New Pages Using STS" package

 

I downloaded Bill's package "Add New Pages Using STS" and used the newpage.php.html template and found that if I opened that file (directly from the zip package) in Firefox, all seemed normal.

When I uploaded all the files and opened the page in IE, all seemed normal, however in Firefox 2 the first 3 characters on the page always were:  (doesn't look nice with a banner starting after those 3 characters)

These characters cannot be seen in Notepad, not in Dreamweaver, but they are there.

It was driving me mad.

In the end, I opened the file in notepad, hit Ctrl a, Ctrl c, made a new empty textfile in notepad, hit Ctrl v, saved. Same file, looked identical, only 3 bits smaller

 

I have uploaded the Bill's complete package, exept for those 3 characters.

 

Do a comparison between Bill's newpage.php.html and mine an you might see those 3 characters. I used Total commander's file comparison feature for the comparison

 

I wonder if my Mac will show those characters?

Unfortunately I can't check that anymore because I deleted Bill's original files, and I'm not that curious to download them again

Robert, see the following post regarding those characters:

http://www.oscommerce.com/forums/index.php?sho...p;#entry1108885

 

You can thank Microsoft Expression Web for adding those silly characters!!! :angry: I don't know what it is with those guys over there but they refuse to accept PHP as a programming language and try to force everyone to use asp.net instead. The files I uploaded had the code slipped in before I noticed the problem with using their program to edit PHP code. :blink:

Edited by bkellum

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

I just installed HTC 2.6.3 and STS 4.5.2 bundled.... twice, with the same results. I used Beyond Compare to change my files, and then uploaded them. When I went to my site I got this error:

 

Template file does not exist: [MODULE_STS_TEMPLATES_FOLDERfull/sts_template.html]

 

Thinking I made a mistake, I uploaded my "save", which returned things to normal, re-edited all of the files, up loaded again and got the same result. I switched from using the "test" templates folder to using the "full" folder ( I only have one sts template created at this time) and still the same results, with a generic template being displayed and not the one I created installed.

 

I think part of my problem my be that it appears that a "/" or maybe something else is missing between "FOLDER" and "full" in the code as seen above. I just don't have a clue where to look for that line to try to fix it.

 

 

Another problem - I have permissions for catalog/includes/header_tags.php and catalog/includes/languages/english/header_tags.php set to 755 , and I tried 777, but i still get an error on the admin HTC page saying that I need to reset the permissions to 755 ?

Edited by GregZ
Link to comment
Share on other sites

I just installed HTC 2.6.3 and STS 4.5.2 bundled.... twice, with the same results. I used Beyond Compare to change my files, and then uploaded them. When I went to my site I got this error:

 

Template file does not exist: [MODULE_STS_TEMPLATES_FOLDERfull/sts_template.html]

 

Thinking I made a mistake, I uploaded my "save", which returned things to normal, re-edited all of the files, up loaded again and got the same result. I switched from using the "test" templates folder to using the "full" folder ( I only have one sts template created at this time) and still the same results, with a generic template being displayed and not the one I created installed.

 

I think part of my problem my be that it appears that a "/" or maybe something else is missing between "FOLDER" and "full" in the code as seen above. I just don't have a clue where to look for that line to try to fix it.

 

 

Another problem - I have permissions for catalog/includes/header_tags.php and catalog/includes/languages/english/header_tags.php set to 755 , and I tried 777, but i still get an error on the admin HTC page saying that I need to reset the permissions to 755 ?

Gregg, both issues are a result of user error I'm afraid....

 

As for the permissions, be sure those files have the same permissions as your images folder.

As for the no template found error, if you are sure you uploaded the files and folders into the correct locations, then try STS by using the default settings in the STS Default Module. If that works, then change the settings to the following:

 

Use Templates?

true

 

Code for debug output

debug

 

Files for normal template

sts_user_code.php

 

Base folder

includes/sts_templates/

 

Template folder

full

 

Default template file

sts_template.html

 

Use template for infoboxes

true

 

That should do it.

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

I have STS installed but no products show up on the frontpage of my store sad.gif They do show up in categories and in new products ect...

 

How can I make it display 10 products on my fronpage (I havn't changed the default settings in maxim value's).

 

What am I doing wrong?

 

 

This is my source code for index.php.html

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="http://myshop.com/site/images/css/default.css" />
<style type="text/css">
<!--
.style1 {
font-family: Mistral;
font-size: 33px;
color: #CC6666;
}
body,td,th {
font-family: Comic Sans MS;
}
.style4 {color: #333333}
-->
</style>
</head>
<body>
<div id="container">
 <div id="top">
<div id="header">

</div>
<div id="content">
  <div id="left_contact">
	<h2 align="left" class="style1"><span class="style4"> myshop.com</span></h2>
	<table width="100%" border="0">
	  <tr>
		<td><p class="headerNavigation">$breadcrumbs<br />
		</p></td>
		<td colspan="2"><div align="right"><span class="headerNavigation">$myaccountlogoff | $cartcontents | $checkout </span></div></td>
	  </tr>
	  <tr>
		<td> </td>
		<td valign="top"><p>This is the template for index.php page. You can find it here: 
		  $templatedir/index.php.html<br />
		   </p>
			<p>$content</p>
		</td>
		<td> </td>
	  </tr>
	  <tr>
		<td colspan="3"> </td>
	  </tr>
	</table>
  </div>

</div>
<div class="footer tl">
  <div class="tr">
	<div class="br">
	  <div class="bl">
		<div id="copyright">Copyright © 2007 Myshop </div>
		<div id="footerr_right"><a href="http://myshop.com/site/index.html">Home</a> | <a href="http://Mmyshop.com/site/shop/">Products</a><a href="http:/myshop.com/site/products.html"></a> | <a href="http://myshop.com/site/php/feedback/feedback.php">Feedback</a> | <a href="http://myshop.com/site/links.html">Links</a> | <a href="http://myshop.com/site/contact.html">Contact Us</a></div>
	  </div>
	</div>
  </div>
</div>
 </div>
 <div id="bottom"> </div>
</div>
</body>
</html>

 

Thanks :rolleyes:

Link to comment
Share on other sites

I have STS installed but no products show up on the frontpage of my store sad.gif They do show up in categories and in new products ect...

 

How can I make it display 10 products on my fronpage (I havn't changed the default settings in maxim value's).

 

What am I doing wrong?

 

 

This is my source code for index.php.html

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="http://myshop.com/site/images/css/default.css" />
<style type="text/css">
<!--
.style1 {
font-family: Mistral;
font-size: 33px;
color: #CC6666;
}
body,td,th {
font-family: Comic Sans MS;
}
.style4 {color: #333333}
-->
</style>
</head>
<body>
<div id="container">
 <div id="top">
<div id="header">

</div>
<div id="content">
  <div id="left_contact">
	<h2 align="left" class="style1"><span class="style4"> myshop.com</span></h2>
	<table width="100%" border="0">
	  <tr>
		<td><p class="headerNavigation">$breadcrumbs<br />
		</p></td>
		<td colspan="2"><div align="right"><span class="headerNavigation">$myaccountlogoff | $cartcontents | $checkout </span></div></td>
	  </tr>
	  <tr>
		<td> </td>
		<td valign="top"><p>This is the template for index.php page. You can find it here: 
		  $templatedir/index.php.html<br />
		   </p>
			<p>$content</p>
		</td>
		<td> </td>
	  </tr>
	  <tr>
		<td colspan="3"> </td>
	  </tr>
	</table>
  </div>

</div>
<div class="footer tl">
  <div class="tr">
	<div class="br">
	  <div class="bl">
		<div id="copyright">Copyright © 2007 Myshop </div>
		<div id="footerr_right"><a href="http://myshop.com/site/index.html">Home</a> | <a href="http://Mmyshop.com/site/shop/">Products</a><a href="http:/myshop.com/site/products.html"></a> | <a href="http://myshop.com/site/php/feedback/feedback.php">Feedback</a> | <a href="http://myshop.com/site/links.html">Links</a> | <a href="http://myshop.com/site/contact.html">Contact Us</a></div>
	  </div>
	</div>
  </div>
</div>
 </div>
 <div id="bottom"> </div>
</div>
</body>
</html>

 

Thanks :rolleyes:

 

A link would be better...

The only products that show up be default on the index page are the "New Products for Month" listing. Have you removed this tag in the catalog/index.php file?

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

Gregg, both issues are a result of user error I'm afraid....

 

As for the permissions, be sure those files have the same permissions as your images folder.

As for the no template found error, if you are sure you uploaded the files and folders into the correct locations, then try STS by using the default settings in the STS Default Module. If that works, then change the settings to the following:

 

Use Templates?

true

 

Code for debug output

debug

 

Files for normal template

sts_user_code.php

 

Base folder

includes/sts_templates/

 

Template folder

full

 

Default template file

sts_template.html

 

Use template for infoboxes

true

 

That should do it.

 

I now have the catalog/images folder set to 755, and still no change. This is interesting: In my control panel, in the "Default" settings I do not have the text "Base folder" appearing , however there is an empty box for an entry. The same situation exists for "Use template for infoboxes" - no text above an empty entry box.

I tried entering "includes/sts_templates/" into the first box and "true" into the second and no change occured. When I tried to edit the settings, those 2 boxes were empty again.

 

Here's the source code from that page:

 

 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
     <tr>
       <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading">STS Modules</td>
           <td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt="" width="125" height="125"></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr class="dataTableHeadingRow">
               <td class="dataTableHeadingContent">Modules</td>
               <td class="dataTableHeadingContent" align="right">Sort Order</td>
               <td class="dataTableHeadingContent" align="right">Action </td>
             </tr>
             <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_default&action=edit'">
               <td class="dataTableContent">Default</td>
               <td class="dataTableContent" align="right">1</td>
               <td class="dataTableContent" align="right"><img src="images/icon_arrow_right.gif" border="0" alt=""> </td>
             </tr>
             <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_index'">
               <td class="dataTableContent">Index</td>
               <td class="dataTableContent" align="right">2</td>
               <td class="dataTableContent" align="right"><a href="http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_index"><img src="images/icon_info.gif" border="0" alt="Info" title=" Info "></a> </td>
             </tr>
             <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_popup_image'">
               <td class="dataTableContent">Popup image</td>
               <td class="dataTableContent" align="right">6</td>
               <td class="dataTableContent" align="right"><a href="http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_popup_image"><img src="images/icon_info.gif" border="0" alt="Info" title=" Info "></a> </td>
             </tr>
             <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_product_info'">
               <td class="dataTableContent">Product info</td>
               <td class="dataTableContent" align="right">3</td>
               <td class="dataTableContent" align="right"><a href="http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_product_info"><img src="images/icon_info.gif" border="0" alt="Info" title=" Info "></a> </td>
             </tr>
             <tr>
               <td colspan="3" class="smallText">Module Directory: /hsphere/local/home/gregze/magnumhp.com//catalog/includes/modules/sts/</td>
             </tr>
           </table></td>
           <td width="25%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="infoBoxHeading">
   <td class="infoBoxHeading"><b>Default</b></td>
 </tr>
</table>
<form name="modules" action="http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_default&action=save" method="post">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
   <td class="infoBoxContent"><b>Use Templates?</b><br>Do you want to use Simple Template System?<br><br><input type="radio" name="configuration[MODULE_STS_DEFAULT_STATUS]" value="true" CHECKED> true<br><input type="radio" name="configuration[MODULE_STS_DEFAULT_STATUS]" value="false"> false<br><br><b>Code for debug output</b><br>Code to enable debug output from URL (ex: index.php?sts_debug=debug<br><input type="text" name="configuration[MODULE_STS_DEBUG_CODE]" value="debug"><br><br><b>Files for normal template</b><br>Files to include for a normal template, separated by semicolon<br><input type="text" name="configuration[MODULE_STS_DEFAULT_NORMAL]" value="sts_user_code.php;headertags.php"><br><br><b></b><br><br><input type="text" name="configuration[MODULE_STS_TEMPLATES_FOLDER]"><br><br><b>Template folder</b><br>Location of templates inside the includes/sts_templates/ folder. Do not start nor end with a slash<br><input type="text" name="configuration[MODULE_STS_TEMPLATE_FOLDER]" value="full"><br><br><b>Default template file</b><br>Name of the default template file<br><input type="text" name="configuration[MODULE_STS_TEMPLATE_FILE]" value="sts_template.html"><br><br><b></b><br><br><input type="text" name="configuration[MODULE_STS_INFOBOX_STATUS]"><br></td>
 </tr>
 <tr>
   <td align="center" class="infoBoxContent"><br><input type="image" src="includes/languages/english/images/buttons/button_update.gif" border="0" alt="Update" title=" Update "> <a href="http://www.magnumhp.com/admin/modules.php?set=sts&module=sts_default"><img src="includes/languages/english/images/buttons/button_cancel.gif" border="0" alt="Cancel" title=" Cancel "></a></td>
 </tr>
</table>
</form>
           </td>
         </tr>
       </table></td>
     </tr>
   </table></td>
<!-- body_text_eof //-->

Link to comment
Share on other sites

I now have the catalog/images folder set to 755, and still no change. This is interesting: In my control panel, in the "Default" settings I do not have the text "Base folder" appearing , however there is an empty box for an entry. The same situation exists for "Use template for infoboxes" - no text above an empty entry box.

I tried entering "includes/sts_templates/" into the first box and "true" into the second and no change occured. When I tried to edit the settings, those 2 boxes were empty again.

 

First question - are you uploading your PHP files in ASCII or Binary ? (Binary can and often will corrupt your php code during the transfer - you should always use ASCII for PHP)

 

Second question - if you are uploading in ASCII - what version of MySQL is your server running?

~Tracy
 

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...