Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

I'm looking for a contrib that works well with OSC RC1, STS 4.4, EasyPopulate.

So far I've tried:

multi images extra 1.02

UltraPics

Additional Images v2.0.0

And nothing works.

 

Does anyone have any ideas on which contrib to use?

TIA

 

what is it you are trying to achieve? If it is dfferent ways of showing images?

Share this post


Link to post
Share on other sites
I'm looking for a contrib that works well with OSC RC1, STS 4.4, EasyPopulate.

So far I've tried:

multi images extra 1.02

UltraPics

Additional Images v2.0.0

And nothing works.

 

Does anyone have any ideas on which contrib to use?

TIA

 

What do you want to do?

 

I'm not sure, but I think Ultra Pics and STS are working together. At the moment I'm looking for a Thumbnailer, so I tested Ultra Pics. I'm not happy with it: The quallity is very ugly. But the multi-language Integration is nice.

 

fF you are also searching for a good Thumbnailer try OTF (On the fly) Auto Thumbnailer. The quallity is amazing.

If you just want additional Images try More Pics. Within the package you can also find a installation howto to integrate it in STS. The manual is for More Pics 1.2 but I'm sure it will work also for 1.3.

Share this post


Link to post
Share on other sites
You probably have absolute links in your template. Check that all your images in template have relative URL, not absolute.

 

- Chris

The URL is the secure address (https://....), it just doesn't seem to connect properly. My template header still sets the base URL correctly and everything functions, it's just that some elements are obviously not being parsed/loaded securely.

 

I've spent about 2 or 3 months customising this shopping cart now. I don't find osCommerce to be particularly flexible (or easily updatable), even when using a template - though that does dramatically decrease the time required. I hope osCommerce 3 has been drastically improved and streamlined. If I can sort out this SSL problem and get my credit card payments to process successfully, I'll be done with it I hope.

Share this post


Link to post
Share on other sites
What do you want to do?

I'm making a knitware shop (sweaters).

The customer chooses a model, color and size, and when the customer is on the page where he/she can order the product, he/she must still be able to see (not change) the components (=yearns+colors)

So basically I need a lot of extra product popups, that I can associate with more than one product, because some (not all) models (sweaters) have several components (yearns) in common.

 

I have dissuaded my client to want the functionality that a customer can pick all colors of a sweater (and see the final product updated in the chosen colors).

Now they are given a few combinations to choose from.

That makes my work a lot easier

 

I have tried to install Ultrapics 1 and Ultrapics 1.06 for such a long time and so many times that I have come to the conclusion that it won't work with STS4.5.5 and/or OSCv2.2 RC1

 

I still haven't figured out what is a good contribution (for the popus) for what I need.

 

Can somebody offer some suggestions?

TIA!

Share this post


Link to post
Share on other sites

More Pics 6 and Ultrapics are working with STS, maybe with small adjustment. Check the STS Power Pack (link in my signature), this is where other contribution tips and tricks are placed.

 

- Chris


STS v4.5 SP5 is out, and check the STS Power Pack contribution too!

New thumbnailer using phpThumb: oscThumb. Works great.

Share this post


Link to post
Share on other sites
More Pics 6 and Ultrapics are working with STS, maybe with small adjustment.

I guess I will have to find out if they work with Org OSCv2.2 RC1

Or maybe there is not so much difference between RC1 and the last version?

Share this post


Link to post
Share on other sites
The URL is the secure address (https://....), it just doesn't seem to connect properly. My template header still sets the base URL correctly and everything functions, it's just that some elements are obviously not being parsed/loaded securely.

 

I've spent about 2 or 3 months customising this shopping cart now. I don't find osCommerce to be particularly flexible (or easily updatable), even when using a template - though that does dramatically decrease the time required. I hope osCommerce 3 has been drastically improved and streamlined. If I can sort out this SSL problem and get my credit card payments to process successfully, I'll be done with it I hope.

Grant, what Chris was refering to was you probably have an image or some other hyperlink within your template that is not secure such as an image source pointing to http://www.yoursite.com/image.gif or something similar. Your links need to be relative links to keep things secure. Look in the STS manual for more info regarding absolute/relative links.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
I guess I will have to find out if they work with Org OSCv2.2 RC1

Or maybe there is not so much difference between RC1 and the last version?

Robert, STS does not have any issues with RC1. You will have to look at the other contributions to rule them out.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Grant, what Chris was refering to was you probably have an image or some other hyperlink within your template that is not secure such as an image source pointing to http://www.yoursite.com/image.gif or something similar. Your links need to be relative links to keep things secure. Look in the STS manual for more info regarding absolute/relative links.

Ah. Well, that might be it then... I've had to use some absolute links in my template, but I'll change them.

 

Other than that, I have a problem with processing Camtech (credit card) payments. It's always listed as "Transaction declined.". It's in testing mode with a correct testing username/password entered, and I'm using the dummy credit card number/expiry.

Share this post


Link to post
Share on other sites
I guess I will have to find out if they work with Org OSCv2.2 RC1

Or maybe there is not so much difference between RC1 and the last version?

I have been installing contribs recently with RC1 and I have noticed that RC1 and the version before that have significant differences. You will have to check every file with winmerge or something similar. I have On the Fly thumbnailer working with RC1, STS, HTC, Easy Populate and some other things. It is possible, don't stop trying :)

 

gina

Share this post


Link to post
Share on other sites

Hi,

 

I´m trying to get "Your Recent History V3" and STS4 running. If I turn STS4 off, the history box shows as acpected.

But as soon as I turn STS4 on it is gone.

 

My application_bottom.php

// YOUR RECENT HISTORY RECORDING

if ((tep_session_is_registered('your_recent_history')) and ($your_recent_history->on)) {

if ((isset($HTTP_GET_VARS['products_id'])) and (stristr(basename($PHP_SELF),'product_info.php'))){

$your_recent_history->add_viewed($HTTP_GET_VARS['products_id']);

} elseif ((isset($_GET['products_id'])) and (stristr(basename($PHP_SELF),'product_info.php'))){

$your_recent_history->add_viewed($_GET['products_id']);

}

if ((isset($_GET['cPath'])) and (stristr(basename($PHP_SELF),'index.php'))) {

$your_recent_history->add_cat($_GET['cPath']);

}

if (stristr(basename($PHP_SELF),'advanced_search_result.php')) {

if ($products_found) {

$your_recent_history->add_search(trim(strtolower($_GET['keywords'])));

}

}

}

 

// START STS 4.3.3

if ($sts->display_template_output) {

$sts->stop_capture();

include DIR_WS_MODULES.'sts_inc/sts_display_output.php';

}

//END STS 4.3.3

 

 

// close session (store variables)

tep_session_close();

.

.

 

 

footer.php

// YOUR RECENT HISTORY

include(DIR_WS_MODULES . 'your_recent_history.php');

echo $yrh;

 

// START STS 4.5

if ($sts->display_template_output) {

// Get content here, in case column_right is not called.

if (!isset($sts->template['content'])) $sts->restart_capture ('content');

} else {

//END STS

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

.

.

 

The $product_found=true/false are set lik described in this thread. (It works when I disable STS)

 

At the top of sts_user_code.php:

include(DIR_WS_BOXES . 'your_recent_history.php');

$sts->restart_capture ('yrhbox', 'box'); // Get your recent history box

$sts->template['yrhbox']=$sts->template['yrhbox']; // Show your recent history products

 

in sts_templat.html I try to display $yrhbox

 

What am I doing wrong?

Share this post


Link to post
Share on other sites

You still need to define the STS tag for the new infobox being created by that contribution.

 

:thumbsup: How to add a new infobox variable(tag) to STS:

Add this code to sts_user_code.php

$sts->start_capture();
  require(DIR_WS_BOXES . 'infobox_name.php');
  $sts->stop_capture('infobox_name', 'box');

 

The above would create a STS user tag called $infobox_name. Change what you need to make it work for your specific box name.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Thank you, Bill.

You put me in the right direction. I am new to PHP. So here is what I did to get it working:

 

In the Contribution "Your Recent History" the box is shown wih the command "echo $yrh". This is normaly done in footer.php when you dont use STS.

So I added a file called show_yrh.php in the includes/boxes directory:

 

<?php

echo $yrh

?>

 

in sts_user_code.php I added like you explained:

 

$sts->start_capture();

require(DIR_WS_BOXES . 'show_yrh.php');

$sts->stop_capture('SuSyrhbox', 'box');

 

and now I have $SuSyrhbox wich I can put anywhere in my sts_template.html.

 

Maybe this will help someone else.

Share this post


Link to post
Share on other sites
I am running oscommerce 2.2 - ms2 and installed sts 4.5.4 (full) and then installed 4.5.5 and 4.5.6. When I go to modules to activate it, I get the following error:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, gary@ez1stopshop.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

Any ideas?

It is telling me I don't have access to either my moduls or includes folder, when I try to activate the module. Anyone? I have double and triple checked the permissions and I do have access.

Share this post


Link to post
Share on other sites
It is telling me I don't have access to either my moduls or includes folder, when I try to activate the module. Anyone? I have double and triple checked the permissions and I do have access.

Gary,

The error you are getting is referring to a server problem, not a coding problem. Have you contacted your host to inform them of this problem? Also, what version of osC 2.2 are you using (there are several updates to that version with the most recent being the RC1 release)?

 

:thumbsup: If you have a clean osCommerce, meaning no other contributions are installed, you can simply copy over the files from the STS contribution. Use a File Comparison tool such as Beyond Compare to compare your current files with the files from the contribution to be sure you have not misplaced any STS files.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Thank you, Bill.

You put me in the right direction. I am new to PHP. So here is what I did to get it working:

 

In the Contribution "Your Recent History" the box is shown wih the command "echo $yrh". This is normaly done in footer.php when you dont use STS.

So I added a file called show_yrh.php in the includes/boxes directory:

 

 

 

in sts_user_code.php I added like you explained:

 

 

 

and now I have $SuSyrhbox wich I can put anywhere in my sts_template.html.

 

Maybe this will help someone else.

Yeah, that I guess you would have to do it this way since the author for that contribution did not create an infobox in the normal osCommerce manner.

Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Check the STS Power Pack

I installed the Mo Pics contrib

I followed the STS power pack (MoPics6 popup)

I got a bit confused by all the required contributions (ACA, patchSP3 for v2.6, modules, TinyMCE, more pics + 6_v1.2c updates) and the conflicting instructions: ACA manual (aca2.html) says: "Install first the .... contribution but when asked to modify admin/categories.php, do not do it."

If I don't modify that file, nothing works for ACA, so I tried to figure out what to install from the more pics admin/categories file into my shop files,

Now I've almost got it.

 

Only, in the admin section under Modules/ACA for products it reads: Module directory: /catalog/admin/includes/modules/products/ but I have no products directory in /catalog/admin/includes/modules/.

Where do I specify where the modules reside?

 

And when I specify and upload the extra pictures in the editor, I do get the thumbnails with the link (click to enlarge) in the shop and it somewhat works (I do get the popup window modified as I specified in STS) but where the picture should be, I get the red cross thingie (missing picture).

The first thumbnail (OSC standard) works fine, though.

It looks like something simple is amiss, can anyone tell me what it is?

 

Thanks!

Share this post


Link to post
Share on other sites

You don't need ACA and tinyMCE Anywhere to use MoPics6 with STS, it's just that the example given in the STS Power Pack has been made using the ACA version of MoPics, so there are few adaptations to do if not using ACA. For example with the ACA version, the max nbr of images can be chosen from admin (value placed in config parameter), while in the standard version it is fixed to 6.

 

When you get the red cross, look at the html of the page and chech where it tries to read the image.

 

- Chris


STS v4.5 SP5 is out, and check the STS Power Pack contribution too!

New thumbnailer using phpThumb: oscThumb. Works great.

Share this post


Link to post
Share on other sites

In the admin section under Modules/ACA for products it reads:

Module directory: /catalog/admin/includes/modules/products/ but I have no products directory in /catalog/admin/includes/modules/.

Where do I specify where the ACA modules reside?

For example with the ACA version, the max nbr of images can be chosen from admin (value placed in config parameter), while in the standard version it is fixed to 6.

Good, because I probably need to have over 6 pics in the near future, where can I find this blessed config parameter?

 

 

When you get the red cross, look at the html of the page and check where it tries to read the image.

There is no name for the picture, if I click the thumbnail, (popup_image.php opens as:)

java script:popupWindow('http://www.mydomain.com/catalog/popup_image.php?pID=25&invis=2')

and it just looks in the images folder for no picture at all:

<img src="images/" border="0" alt="" name="prodimage">

Not so surprising it doesn't find a picture in that way

 

So now I have to figure out if the name is not passed onto the popup window from the admin section (not likely because all the thumbnails themselves work fine)

Or if the popup_image.php itself is screwey (not likely because the default OSC popup window does show the picture)

The alterations I made with STS do come through on the popup

 

Interesting, what can I do next?

Does anybody have any ideas?

Share this post


Link to post
Share on other sites

The first step is to have ACA working correctly, with the modules you want. Modules are downloaded separately from the contribution (same page but different download). Modules must be copied to admin/includes/modules/categories or admin/includes/modules/products. You'll then see several parameters for the MoPics, one of them is the maximum nbr of images (this number should not be over what you have in your products table in db!). More informations can be asked from the ACA forum.

 

To see if it's working, check if you have extra images saved in database.

 

Once you have image names in your database, try again your popup.

 

Note: the ACA module for MoPics6 requires tinyMCE Anywhere in order to select/upload images, I don't think it'll work without.

 

- Chris


STS v4.5 SP5 is out, and check the STS Power Pack contribution too!

New thumbnailer using phpThumb: oscThumb. Works great.

Share this post


Link to post
Share on other sites
Modules must be copied to admin/includes/modules/categories or admin/includes/modules/products.

I forgot to put the modules there, now they're there it works!

 

 

Note: the ACA module for MoPics6 requires tinyMCE Anywhere in order to select/upload images, I don't think it'll work without.

I followed the ACA installation manual as close as I could, so I installed the tinyMCE Anywhere module and uploaded product_image_abs.php as well

 

Gee, it finally works (at least the popups work, let's see if all the other contribs still work)!

Thanks, you saved my day (month, actually)!

And all those extra modules, I guess I'll have to fiddle around with them to see what they actually do.

 

I also replaced the script in the popup_image.php file:

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

It claimed that I would have better browser detection and a full popup window (so you can see the complete window at once) but now I always get the same small windows in IE6 and Firefox 1.5 (haven't tested for other browsers).

So I guess I'll have to put the old script back again and fiddle with the height and width so the popup window opens to fully show the picture, I hope the window will actually resize again when I'm ready.

 

Gee, nice work, folks!

Thanks for helping out

Share this post


Link to post
Share on other sites

I went back to the version where I was before I installed ACA.

Now I finally have Ultrapics working, but the popup window won't resize for bigger pictures.

The question has been posted before on this board http://forums.oscommerce.com/index.php?sho...&start=2300, but no answer has been given.

I suppose I could try and copy & paste the resize script from the original popup_image.phpfile into the sts popup template, but maybe there is a more elegant solution.

If I switch off STS, the popup window resize fine

 

Has anyone tried this before?

Share this post


Link to post
Share on other sites
I went back to the version where I was before I installed ACA.

Now I finally have Ultrapics working, but the popup window won't resize for bigger pictures.

The question has been posted before on this board http://forums.oscommerce.com/index.php?sho...&start=2300, but no answer has been given.

I suppose I could try and copy & paste the resize script from the original popup_image.phpfile into the sts popup template, but maybe there is a more elegant solution.

If I switch off STS, the popup window resize fine

 

Has anyone tried this before?

Robert,

Not sure how you got UltraPics to work so I'll post this first:

 

STS and Ultra Pics users should replace /includes/modules/sts_inc/popup_image.php with the following:

 

 

 

<?php
/*
 $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com/"]http://www.oscommerce.com[/url]

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
// Ultrapics mods
 $products_query = tep_db_query("select pd.products_name, p.products_model, p.products_image, p.products_image_lrg, p.products_image_xl_1, p.products_image_xl_2, p.products_image_xl_3, p.products_image_xl_4, p.products_image_xl_5, p.products_image_xl_6 from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$_GET['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
 $products = tep_db_fetch_array($products_query);
 $sts->template['productname'] = $products['products_name'];
 $sts->template['productmodel'] =  $products['products_model'];

	   if ($_GET['image'] ==0) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_lrg'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==1) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_1'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==2) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_2'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==3) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_3'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==4) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_4'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==5) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_5'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==6) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_6'],'','','', 'name="prodimage"');
 } elseif ($_GET['image'] ==7) {
 $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image'],'','','', 'name="prodimage"');
 } ?>

If you popup image still does not work properly, then it is not an STS issue. Compare your shop with a stock osC shop to find your error.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Robert,

Not sure how you got UltraPics to work so I'll post this first:

STS and Ultra Pics users should replace /includes/modules/sts_inc/popup_image.php with the following:

I had to do that in order to get my bigger pictures, before I pasted that code into the popup_image.php I got my thumbnals for the extra pictures, but when I ckicked them, I got the old standard OSC picture (I hadn't changed that standard picture) in the pop-up window

So yes, I've done that.

 

If you popup image still does not work properly, then it is not an STS issue. Compare your shop with a stock osC shop to find your error.

Do you mean by this that STS4.5 with OSC 2.2 RC1 SHOULD resize the popup window for a bigger picture?

Shoot! Then it's back to editing files again, just when I thought I was out of the woods.

Thanks for responding

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

×