[Contribution] STS v4
#6101
Posted 02 November 2011 - 10:36 AM
What could be causing this please?
Thanks, Michael
#6102
Posted 02 November 2011 - 11:04 AM
offie, on 02 November 2011 - 10:36 AM, said:
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, 02 November 2011 - 11:18 AM.
#6103
Posted 02 November 2011 - 11:30 AM
offie, on 02 November 2011 - 11:04 AM, said:
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, 02 November 2011 - 11:31 AM.
#6104
Posted 03 November 2011 - 04:11 PM
<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
#6105
Posted 04 November 2011 - 03:45 AM
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
#6106 ONLINE
Posted 04 November 2011 - 08:41 AM
HewnArt, on 04 November 2011 - 03:45 AM, said:
Yes, 306 pages are many, but 1 page back not -> the answer on the previews page
#6107
Posted 24 December 2011 - 04:54 AM
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
#6108 ONLINE
Posted 24 December 2011 - 07:51 AM
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?
#6109
Posted 24 December 2011 - 01:34 PM
#6110
Posted 24 December 2011 - 10:02 PM
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.
#6111
Posted 24 December 2011 - 11:00 PM
#6112
Posted 24 February 2012 - 04:56 PM
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??
#6114
Posted 28 February 2012 - 01:43 AM
No, STS was made extinct with the launch of v2.3.1.
You can use Theme Roller to change the look of v2.3.1
Chris
#6115
Posted 28 February 2012 - 09:19 PM
abdelatif, on 24 February 2012 - 04:56 PM, said:
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??
Works like a charm!
#6116
Posted 29 February 2012 - 11:43 PM
DunWeb, on 28 February 2012 - 01:43 AM, said:
No, STS was made extinct with the launch of v2.3.1.
You can use Theme Roller to change the look of v2.3.1
Chris
How do I install the theme I downloaded? I can't find the information.
#6117
Posted 16 March 2012 - 02:58 PM
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, 16 March 2012 - 03:11 PM.
#6118
Posted 20 March 2012 - 10:13 AM
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
#6119
Posted 20 March 2013 - 11:40 PM
I have limited knowledge of php so I am hoping that someone has a suggestion for a possible solution.
Thank you
#6120
Posted 21 March 2013 - 01:34 AM
lyinggod, on 20 March 2013 - 11:40 PM, said:
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.









