Latest News: (loading..)
rigadin2

[Contribution] STS v4

6,140 posts in this topic

Hi, I have just installed this contribution and amended all my files as requested in the version 4.6_1. I have checked and re-checked all my changes but when I log on to the admin side and click the modules link I get a white screen. I have not only re-read the instructions but checked that I have made the right changes in the correct places by using a file comparison tool and checking it against the files supplied for a fresh install.

 

What could be causing this please?

 

Thanks, Michael

Share this post


Link to post
Share on other sites

Hi, I have just installed this contribution and amended all my files as requested in the version 4.6_1. I have checked and re-checked all my changes but when I log on to the admin side and click the modules link I get a white screen. I have not only re-read the instructions but checked that I have made the right changes in the correct places by using a file comparison tool and checking it against the files supplied for a fresh install.

 

What could be causing this please?

 

Thanks, Michael

 

I have just done some testing and amended the code piece by piece and tested the admin side after each change and the white screen is appearing after changing the code in catalog/admin/modules.php.

 

This piece of code is causing the problems:

 

Find:

 

		  eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
	} else {

 

Replace with:

 

		  eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
	// STS V4.6 drop start
	} else {
		if($key == 'MODULE_STS_TEMPLATE_FOLDER'){
			$dir_name = array();
			if ($handle = opendir('../'.MODULE_STS_TEMPLATES_FOLDER.'/')) {
			   while (false !== ($file = readdir($handle))) {
					$pos = strpos($file, ".");
					if($pos === false){
						$dir_name[] = array("id" => $file, "text" => $file);
						$i++;
					}
				}
				closedir($handle);
			}
			$keys .= tep_draw_pull_down_menu('configuration[MODULE_STS_TEMPLATE_FOLDER]', $dir_name, $value['value']);
		}else{
			$keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
		}
	}
	// STS V4.6 drop end

 

Once I do this change then I get a white screen as soon as I click the link Modules in my admin.

 

I have discovered the problem was that I had an identical piece of code just below the change which was:

 

           	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
           }

 

So once I removed this the page did not go white anymore.

 

Hope this helps someone else.

 

Thank you

Edited by offie

Share this post


Link to post
Share on other sites

 

I have discovered the problem was that I had an identical piece of code just below the change which was:

 

		   	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
		}

 

So once I removed this the page did not go white anymore.

 

 

Just to clarify the above, the extra piece of code that removed was also written in the "change code" so these were two instances of the same two lines above. perhaps the install instructions should include this piece of code when telling you what to look for and change. However it is quite possible that other versions of Osc do not have that line installed and I have not checked to see so you can check your own versions instead.

 

Thanks again.

Edited by offie

Share this post


Link to post
Share on other sites

Hi. I'm in the process of putting a Facebook like button on my products. All working well with STS and the button works but it would be handy to have the product image appear on the Facebook page who liked me (at the moment facebook seems to pick a random image on the page and not the product image). To force that, I need to put (in the header of the product page) the following code...

 

 

<meta property="og:image" content="<?php print 'http://' . $_SERVER['SERVER_NAME'] . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; ?>" />

 

At the moment, if I put that in my product_info.php template I get...

 

<meta property="og:image" content="http://www.domain.co.uk/images/" />

 

i.e. the actual image $product_info['products_image'] isn't tagged onto the end.

 

Excuse my lack of knowledge but I'm assuming that's a mysql array that it's working on? Is there a way of getting the image inserted into the code?

 

Thanks

Martin

Share this post


Link to post
Share on other sites

Hey Guys,

 

306 pages is alot to go thru. I'm just wanting to know does STS work with 2.3.1? I've downloaded the 4.6 version but there are only folders for MS2 RC1 & 2. Any help would be a great help

 

Thanks

Share this post


Link to post
Share on other sites

306 pages is alot to go thru. I'm just wanting to know does STS work with 2.3.1? I've downloaded the 4.6 version but there are only folders for MS2 RC1 & 2. Any help would be a great help

 

Yes, 306 pages are many, but 1 page back not -> the answer on the previews page

Share this post


Link to post
Share on other sites

I hope someone can help with this. I have an issue with to much space before and after the category list. In Firefox everything is tight. In IE and Chrome I have an extra table cell before and after the category list.

 

I'm fairly certain it isn't a CSS issue. I have added/changed margins, line-heights and a few others. Nothing works. Even set up a separate stylesheet for IE.

 

Here is the URL http://www.turnkeysitedesigns.com/. I have the borders visible. Check it out in Chrome and IE, then Firefox.

 

Michael

Share this post


Link to post
Share on other sites

Table class="SideinfoBoxContents" has a tr that contains an non existing image. This has nothing to do with STS it self, check your category box file

 

It sounds a bit, how to say, strange, that you start a website offering webdesign services, not knowing how to setup your own, how are you going to support your future clients?

Share this post


Link to post
Share on other sites

Thank you for your help and I will admit I don't know everything about web design. With that said, I have managed to make a few dollars over the years in my spare time, building sites for people that know less then I do. My goal is to keep learning and eventually make a living doing this full time.

Share this post


Link to post
Share on other sites

After futher review, it seems your suggestion doesn't help. The tr's seem to be generated by the STS Boxes.php file. The categories.php file doesn't appear to create any table html, but the STS Boxes.php file does.

 

I removed the word text from line 328 and 341 in the STS Boxes.php file and that fixed my problem. If anyone knows of a reason why I shouldn't do it that way or a better cleaner way, then let me know.

Share this post


Link to post
Share on other sites

Well now, don't I feel dumb. After comparing my boxes.php with the one that came with STS. It seems the problem came from a previous Mod I had done to the boxes.php file to add a css style class to the category list.

Share this post


Link to post
Share on other sites

I am using STS module versie 4.6_1 on a RC2a install, the site looks fine the contib works, but I have a problem with one contribution.

Randelia Custom Meta Tag per Item, wich is located here:

http://www.oscommerce.com/community/contributions,3726

 

Unfortunately the metatags are not working and i have al lot of them.

I have posted this issue on the forum of the above contrib,

 

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

but it seems to be a dead threat.

Anyone??

Share this post


Link to post
Share on other sites

I am using STS module versie 4.6_1 on a RC2a install, the site looks fine the contib works, but I have a problem with one contribution.

Randelia Custom Meta Tag per Item, wich is located here:

http://www.oscommerce.com/community/contributions,3726

 

Unfortunately the metatags are not working and i have al lot of them.

I have posted this issue on the forum of the above contrib,

 

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

but it seems to be a dead threat.

Anyone??

I Finally uninstalled this contrib (randelia custom meta tag per item) and installed Header Tags SEO 3.2.8 with instructions how to work with STS.

Works like a charm!

Share this post


Link to post
Share on other sites

Hello,

 

I am working on a project for a store that has been online for many years that is using version 2.2-MS2, not 2.2-MS2 milestone 2.

 

I wanted to recreate their installation on my local machine using xampp, which is using the latest version of PHP.

 

I did a fresh install of 2.2-MS2, installed the latest version of STS, and then performed a few updates to fix problems with deprecated functions.

 

I installed STS by copying / pasting / overwriting files, using the "Files for MS2" folder of the STS download.

 

Then, I performed a few fixes to clean up error messages I was receiving because I am using the latest version of PHP and 2.2-MS2 uses deprecated functions.

 

I updated the eregi() deprecated problems via: http://forums.oscommerce.com/topic/341025-function-eregi-is-deprecated/

 

I turned off deprecated error reporting via: http://forums.oscommerce.com/topic/343898-deprecated-function-session-is-registered-is-deprecated/

 

I addressed a fatal error message via: http://forums.oscommerce.com/topic/166123-fatal-error-cannot-re-assign-this/

 

After doing all of this, I went into the admin area, selected modules, selected STS, and clicked the install button for the Default entry.

 

Nothing happened.

 

I then selected Index, Popup image, and Product info, and clicked install for each of them, which worked perfectly fine.

 

For some reason, clicking install for the Default entry is not working. I do not receive any error messages, the page simply refreshes and nothing happens, but as I said, clicking install for Index, Popup image, and Product info all installed just fine, and I'm able to edit them with no errors.

 

I went back and removed the ~E_DEPRECATED portion from both application_top.php files to turn back on deprecated error reporting, and doing so, clicking the install button resulted in a "Cannot modify header information - headers already sent by (output started at C:\xampplite\htdocs\oscommerce\catalog\admin\includes\functions\sessions.php:75) in C:\xampplite\htdocs\oscommerce\catalog\admin\includes\functions\general.php on line 18" error message, and when I add the ~E_DEPRECATED portion back to the two application_top.php files to turn off deprecated error reporting, clicking install results in no error messages, the page simply refreshes and nothing happens.

 

Help!

Edited by robertwhitis

Share this post


Link to post
Share on other sites

Hi,

 

is STS also works for osCommerce 2.3.1 version?

 

how to modify the php files, i copied the folder into my catalog proper location, but the module did not show any change. Please help, many thanks in advance.

 

ce7

Share this post


Link to post
Share on other sites

I have installed STS on a fresh installation of OSC 2.2 and I am having a problem implementing category templates. The rest of STS seems to work fine. The problem relates to the "index.php.htm" template. This template works fine, however the template "index.php_21.html" is ignored when "catalog/index.php?cPath=21" is called. I have placed it in the root template folder and "/template/content" without success. I have "Use templates for index page" set to true.

 

I have limited knowledge of php so I am hoping that someone has a suggestion for a possible solution.

 

Thank you

Share this post


Link to post
Share on other sites

I have installed STS on a fresh installation of OSC 2.2 ...

 

It is strongly advised to move away from the 2.2 platform, especially when doing a fresh instalation. 2.3.X is structured in such a way that STS is no longer needed for ease of theming.

 

With the time you may very well spend working on STS and building out a theme you are satisfied with, the same could be accompished using the most up to date and secure version of osCommerce.

 

Another factor to think of is any future addons or updates.

Share this post


Link to post
Share on other sites

Sure!! Make it work on V2.3.3 I have a post under General trying to find near duplicates for your contribution I am using on an earlier version. Thanks for the work you did some time back for me, but the site was hacked and the host insisted on upgrading to V2.3.3 but the earlier version you installed for me won't work on it and I liked it so very much.

Share this post


Link to post
Share on other sites

STS / BTS WILL NOT WORK ON V2.3.X CARTS. THIS THREAD IS EXTINCT (should be archived)

 

 

 

 

Chris

Share this post


Link to post
Share on other sites

Hi boys and girls,

 

I am using both STS and HTC and found a problem. With both enabled and active I get twice the line: <metahttp-equiv="Content-Type"content="text/html; charset=iso-8859-1">.

 

Page source header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html $htmlparams>

<head>

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

<link rel="icon" href="/favicon.ico" type="image/x-icon">

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

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

<title>fairkopen.nl | Uw webwinkel voor Fairtrade producten - fairkopen.nl</title>

<meta name="Description" content="mooie fairtrade kado's en (woon)accessoires - mooie fairtrade kado's en (woon)accessoires" >

<meta name="Keywords" content="Kado, Cadeau, Relatie, Geschenk, Fairtrade, fair trade, accessoires, eerlijke handel , Kado, Cadeau, Relatie, Geschenk, Fairtrade, fair trade" >

<meta name="googlebot" content="all" >

<meta name="robots" content="noodp" >

<meta name="slurp" content="noydir" >

<meta name="robots" content="index, follow" >

<link rel="canonical" href="http://www.fairkopen.nl/" >

<!-- EOF: Header Tags SEO Generated Meta Tags -->

<base href="http://www.fairkopen.nl//">

 

 

I tracked it down to these two parts of code/files:

 

includes/header_tags.php:

// ALL OTHER PAGES NOT DEFINED ABOVE
default:
$header_tags_array['title'] = tep_db_prepare_input($defaultTags['default_title']);
$header_tags_array['desc'] = tep_db_prepare_input($defaultTags['default_description']);
$header_tags_array['keywords'] = tep_db_prepare_input($defaultTags['default_keywords']);
break;
}

echo ' <me[color=#0000FF]ta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '" />'."\[/color]n";
echo ' <title>' . $header_tags_array['title'] . '</title>' . "\n";
echo ' <meta name="Description" content="' . $header_tags_array['desc'] . '" >' . "\n";
echo ' <meta name="Keywords" content="' . $header_tags_array['keywords'] . '" >' . "\n";

 

includes/classes/sts.php:

// Load up the <head> content that we need to link up everything correctly. Append to anything that may have been set in sts_user_code.php
// Note that since v3.0, stylesheet is not defined here but in the template file, allowing different stylesheet for different template.
$this->template['headcontent'] = $this->template['headcontent'].'';
$this->template['headcontent'] = $this->template['headcontent'].'[color=#0000FF]<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">'[/color] . "\n";
$this->template['headcontent'] = $this->template['headcontent'].$this->template['headertags']. "\n"; ;
$this->template['headcontent'] = $this->template['headcontent'].'<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '">' . "\n";
$this->template['headcontent'] = $this->template['headcontent'].get_javascript($this->template['applicationtop2header'],'get_javascript(applicationtop2header)');

$this->script->replace($this->template); // Module can make tricks here, just before replacing, like using own content template

 

 

 

If this is the problem, how do I turn of one of the '<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">' lines smartly (so not just comment it out, but if-it or something)?

 

Greetz,

René

Edited by rruyter

Share this post


Link to post
Share on other sites

Hi Bill,

 

It's been a few years since I've setup an osCommerce site - seems we are up to v2.3.4 now in osC!  What version of STS do I need to install for osCommerce 2.3.4?

Trying to search the Addons site isn't proving very beneficial at this point - LOL!

 

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now