Jump to content



Latest News: (loading..)

* * * * * 2 votes

[Contribution] Additional Images Module


  • Please log in to reply
1473 replies to this topic

#1441   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 31 October 2010 - 11:14 PM

Hello,

I have a problem with the modified contribution Additional Images for STS content pages - Version 1.

I see the tags $imageblock1$, $imageblock2$, $imageblock3$, $imageblock4$ instead of the images.

I installed, as the setup txt file instructs the addons Additional Images version 2.1.0 and STS version 4.5.8 (and I used these older versions just because they were tested). I followed all instructions in all addons very carefully.
Everything works fine except of course the imageblocks. Lightbox is working fine, I can add more than one image in products but I can see only the first image.

I read in previous pages in this thread that someone had the same problem, but there wasn't any solution.

Can someone please help me?

Thanks in advance
George

#1442   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 05 November 2010 - 09:51 AM

anyone?

I thought this addon was better supported. :(

#1443   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,384 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 05 November 2010 - 11:01 AM

View Postweb2dev, on 05 November 2010 - 09:51 AM, said:

anyone?

I thought this addon was better supported. :(

Well, I'm sorry that the customer service is that slow :)

I can not reproduce your situation, since everything works fine for me (also with STS 4.6), so maybe some more info from your side will help.

1) Did you add the code to file includes/modules/sts_inc/product_info.php? (I guess yes)
2) Do you use a atg (ie $imageblock1$) in a CONTENT template of product_info.php.html?
3) What do you see on the screen instead of the images? The tag name?
4) What tag do you use to get the first product image into the template
5) How are you admin settings for additional images?

#1444   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 05 November 2010 - 01:34 PM

View Postmultimixer, on 05 November 2010 - 11:01 AM, said:

Well, I'm sorry that the customer service is that slow :)

I can not reproduce your situation, since everything works fine for me (also with STS 4.6), so maybe some more info from your side will help.

1) Did you add the code to file includes/modules/sts_inc/product_info.php? (I guess yes)
2) Do you use a atg (ie $imageblock1$) in a CONTENT template of product_info.php.html?
3) What do you see on the screen instead of the images? The tag name?
4) What tag do you use to get the first product image into the template
5) How are you admin settings for additional images?

Hi, thanks for the reply.

1. yes, I copied both changes from installation.txt and I just checked product_info.php from the addon folder and from the eshop folder and they are the same.
2. I used all tags $imageblock1$, $imageblock2$, $imageblock3$, $imageblock4$ to see how they appear and to test it and I used it on includes/sts_templates/full/content/product_info.php.html
3. I see the tags $imageblock1$, $imageblock2$, $imageblock3$ and $imageblock4$. Only these tags appear, the rest tags work fine ($additionalpopsmall$, $mainimagepop$, $additionalpopsmall$, $additionalpopmed$, $mainimagebig$, $mainimagemed$, $mainimagesmall$ <-- these work fine).
4. I guess you mean the $additionalpopsmall$ tag? This is the first I see.
5.
Automatically create 3 image set         true
Background color
Pre-fill upload dir w/ Category names         true
Pre-fill starting with this sub-dir         products
Use image size restrictions                 false
Product Info: Show Additional Images         true
Product Info: Product Image Behavior         popup
Product Info: Group parent with sub-images false
Product Info: Restrict parent image size true
Product Info: Table alignment                 center
Product Info: Table location                 below
Product Info: Number of columns         3
Product Info: Number of rows                 2
Popup: Show Thumbnail Menu                 true
Thumb Menu: Show parent image                 true
Thumb Menu: Use image size restrictions false
Thumb Menu: Table alignment                 center
Thumb Menu: Table location                 below
Thumb Menu: Number of columns                 3
Thumb Menu: Number of rows                 2
Lightbox effect                         true

These are the settings you want, right?

In general I haven't changed anything in the original product_info.php.html from sts 4.6.1 except the addition of the Additional images tags.

thanks again.
george

#1445   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,384 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 05 November 2010 - 02:10 PM

View Postweb2dev, on 05 November 2010 - 01:34 PM, said:

4. I guess you mean the $additionalpopsmall$ tag? This is the first I see.

No, I mean, do you see the $tag$ name, like $imageblock1$ on th screen, or just nothing?

Try to change following admin setting -> Product Info: Product Image behavior popup
to be -> Product Info: Product Image behavior product_info

and tell me what happens.

Edited by multimixer, 05 November 2010 - 02:10 PM.


#1446   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 05 November 2010 - 02:51 PM

View Postmultimixer, on 05 November 2010 - 02:10 PM, said:

No, I mean, do you see the $tag$ name, like $imageblock1$ on th screen, or just nothing?

Try to change following admin setting -> Product Info: Product Image behavior popup
to be -> Product Info: Product Image behavior product_info

and tell me what happens.

Hi again,
just to clarify...

You ask:
3) What do you see on the screen instead of the images? The tag name?

I answer:
3. I see the tags $imageblock1$, $imageblock2$, $imageblock3$ and $imageblock4$. Only these tags appear, the rest tags work fine ($additionalpopsmall$, $mainimagepop$, $additionalpopsmall$, $additionalpopmed$, $mainimagebig$, $mainimagemed$, $mainimagesmall$ <-- these work fine).

You ask:
4) What tag do you use to get the first product image into the template

I answer:
4. I guess you mean the $additionalpopsmall$ tag? This is the first I see.

So you probably mixed my answers for 3 and 4. :)

AND YES...THANK YOU
that did the trick...changed it to Product Info: Product Image behavior product_info and it now works fine

thank you very much again!!
george

Edited by web2dev, 05 November 2010 - 02:55 PM.


#1447   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,384 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 05 November 2010 - 03:00 PM

View Postweb2dev, on 05 November 2010 - 02:51 PM, said:

So you probably mixed my answers for 3 and 4. :)

that did the trick...changed it to Product Info: Product Image behavior product_info and it now works fine

Yes, I see now that I mixed up in the hurry.

Glad anyway that it works, I just checked and see that in includes/modules/sts_inc/product_info.php, over ie imageblock1 it is stated

Quote

// displays the block of additional images in small size (with or without parent image, depending on admin settings in "Product Info: Group parent with sub-images" Admin need to be set to display on product info. On click = lightbox if enabled. If disabled use thumbs for mouseover
$template_pinfo['imageblock1'] =    $imagemenu->groupoutput();

Maybe it's not clear enough, if I have time one day I'll write better instructions and make some better tags

#1448   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 05 November 2010 - 03:42 PM

View Postmultimixer, on 05 November 2010 - 03:00 PM, said:

Yes, I see now that I mixed up in the hurry.

Glad anyway that it works, I just checked and see that in includes/modules/sts_inc/product_info.php, over ie imageblock1 it is stated


Maybe it's not clear enough, if I have time one day I'll write better instructions and make some better tags

Oo, really sorry then, since that's the case, because after so many times reading the files to see if anything was wrong when I copied the lines I never noticed that.

But, since this whole mixed-addons addon is for additional images on sts with lightbox why don't you set default behavior for the Product Info: Product Image behavior to be product_info?

Just saying as an idea, but please be lenient with me, since I'm not an advanced programmer in php and maybe my idea is not applicable.

thanks again
george

#1449   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,384 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 05 November 2010 - 05:01 PM

View Postweb2dev, on 05 November 2010 - 03:42 PM, said:

Oo, really sorry then, since that's the case, because after so many times reading the files to see if anything was wrong when I copied the lines I never noticed that.
But, since this whole mixed-addons addon is for additional images on sts with lightbox why don't you set default behavior for the Product Info: Product Image behavior to be product_info?

Everything is fine, I just thought maybe the "instruction line" was not there.

Why I don't set a default behavior? Because I think each one should have the choice, also possible that you want to use this, having the additional images in the pop up.There are other scripts available where you can have the a whole galerry in a lightbox style pop up etc etc

#1450   lyonsperf

lyonsperf
  • Members
  • 305 posts
  • Real Name:Matt
  • Gender:Male
  • Location:CT

Posted 06 November 2010 - 12:32 AM

Is there a gallery add on that works with this mod?
If the only tool you have is a hammer, all your problems look like nails

#1451   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,384 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 06 November 2010 - 04:03 AM

View Postlyonsperf, on 06 November 2010 - 12:32 AM, said:

Is there a gallery add on that works with this mod?
will be one day for sure :)

#1452   web2dev

web2dev
  • Members
  • 31 posts
  • Real Name:George

Posted 07 November 2010 - 05:20 PM

Hi again :)

Can someone please help me on something else as well?
I'm still a novice in php. :(

I want the product_reviews_info.php and the product_reviews.php to be able to show the image popup using lightbox.
I don't want to create sts template for these two pages.

How do I edit the following code (which is the same for both files) in order to view the big image when click to enlarge or the thumbnail is clicked?

<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

I have already added the js and css declarations in the head section.

thanks in advance
George

#1453   mran

mran
  • Members
  • 25 posts
  • Real Name:Miranda

Posted 05 December 2010 - 11:20 PM

Hi, I wonder if someone can help me, please?  I have two pages, one of which is displaying the images correctly, and the other which is, for some reason, resizing the large image to display at 60px:

http://natrlobs.sc22.info/product_info.php?cPath=26&products_id=29  <--the good page

http://natrlobs.sc22.info/product_info.php?cPath=23&products_id=32  <---the "bad" page

On both pages, the "large" version of the image is being called, but on the good page, the javascript is rewriting the image to be 200px, and on the bad page, it's rewriting it as 60 px.  Why???

#1454   mran

mran
  • Members
  • 25 posts
  • Real Name:Miranda

Posted 05 December 2010 - 11:27 PM

Actually, in looking again at my issue, I see that the problem is more likely to be the image resize function.  If I right-click and view the images, here is what I see:

http://natrlobs.sc22.info/images/Sprucem.jpg  <--Medium-sized image, correct size

http://natrlobs.sc22.info/images/products/silk-and-milk/IMG_0711m.jpg <--also medium image, improperly sized.

Can anyone tell me where I've gone wrong in my set-up to cause these resizes to be so far off?  Thanks!!

#1455   sackling

sackling
  • Members
  • 265 posts
  • Real Name:robert stein

Posted 06 January 2011 - 05:34 AM

Hello all,

I just installed this contribution on my test site and have a couple of problems.

1. All of my product_info main images are not showing up unless I add a second image. Once I add a second image as the "Thumb or Single Large Image" then the original image and the second image show up correctly. But I'd like to have all my images show up without doing this in case there is no alternate image needed.

2. when I add a second image to the "Products Info Image" instead of the  "Thumb or Single Large Image" the image is just a shrunken version of the main image no matter what I choose.

Any idea on what could be causing this?

#1456   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,074 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

Posted 16 January 2011 - 12:13 PM

I have been using this contribution on my current site and think that its the best image contribution that there is.  

As i am upgrading my site slowly to 2.3.1, i was wondering if anyone with more skills than me, is trying to get the funcionallity of this contribution to work with this new version.  I am looking for something that will create thumbnails and automatically store them is a sensible place within the image directory.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.  

OSC has a steep learning curve, but in general the program does work.  If it doesnt work, the chances are it is something you have done.

#1457   Dianna668

Dianna668
  • Members
  • 11 posts
  • Real Name:Dianna
  • Gender:Female

Posted 27 February 2011 - 04:24 PM

Hi everyone, this is a FANTASTIC image contribution!  LOVE IT!  

It's exactly what I need. I'm not sure if I'm not setting something properly or if it's not setup to do this.  My product listing images are larger than most people display in the listing...they are 150x200.  My problem is that on the product info page, that same "small image" setting is used for the thumbnails.  

Is there a way to have a separate setting for the thumbnails size (I'm wanting 75x100) so that they can be much smaller on the product info page than the size on the product listing page?  

Since this contribution says three size for images, I'm thinking it might be not having a setting correct.  

Thanks in advance for any help  :)

Edited by Dianna668, 27 February 2011 - 04:26 PM.


#1458   itscoldoutside

itscoldoutside
  • Members
  • 12 posts
  • Real Name:tim
  • Gender:Male
  • Location:Canada

Posted 04 April 2011 - 09:54 PM

Hi, im having some trouble installing this module... Ive followed the steps and have tried this installation several times now each time with the same result.
Essentially i am able to get the options in the admin/back-end to show up correctly complete with the 3 upload boxes for the various images. My problem is after merging the files from teh installation package with those of which i already had (on the server), once i upload the new files to my shop i start getting errors on the front end (none on the back end)... specifically the following:
______________________
Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /path_to/includes/application_top.php on line 76

Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /path_to/includes/application_top.php on line 76
______________________

Im just not sure how to resolve this... I checked my original installation and i DID have a file called logger.php located exactly where it is being called.

Any ideas???

Im running OSC v 2.2rc2

Thank you in advance,

Iain

Edited by Jan Zonjee, 17 January 2012 - 05:45 PM.


#1459   itscoldoutside

itscoldoutside
  • Members
  • 12 posts
  • Real Name:tim
  • Gender:Male
  • Location:Canada

Posted 05 April 2011 - 03:43 PM

View Postitscoldoutside, on 04 April 2011 - 09:54 PM, said:

Hi, im having some trouble installing this module... Ive followed the steps and have tried this installation several times now each time with the same result.
Essentially i am able to get the options in the admin/back-end to show up correctly complete with the 3 upload boxes for the various images. My problem is after merging the files from teh installation package with those of which i already had (on the server), once i upload the new files to my shop i start getting errors on the front end (none on the back end)... specifically the following:
______________________
Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /path_to/includes/application_top.php on line 76

Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /path_to/includes/application_top.php on line 76
______________________

Im just not sure how to resolve this... I checked my original installation and i DID have a file called logger.php located exactly where it is being called.

Any ideas???

Im running OSC v 2.2rc2

Thank you in advance,

Iain


Bit of an update on my issue, or rather some clarification. I just wiped the store, installed a fresh copy of OSC 2.2rc2 and then before making any changes outside of general configuration (store name etc) i installed this module. Once again, everything in the backend is working fine and the module appears to have been installed correctly. Front end issues persist and am stuck with the same error as mentioned above.

As the installation guide is somewhat vague in regard to how to merge the files using windif what i did exactly is as follows:

Compared the files in the module against those on my server, merged the two and uploaded again to the server.

Did i do something wrong? Outside of the above, im not sure what else to do.

Thank you in advance for your help here!!

Edited by Jan Zonjee, 17 January 2012 - 05:46 PM.


#1460   itscoldoutside

itscoldoutside
  • Members
  • 12 posts
  • Real Name:tim
  • Gender:Male
  • Location:Canada

Posted 05 April 2011 - 04:49 PM

Ok, so i remerged everything starting from scratch... (Another fresh install as well).

This time there is no error on line 76 and the front end is loading, at least some what. The problem now is the layout of the store is a total mess and only gets worse when i click into one of the prepopulated test products...

www.citywideappliance.ca/e-store

Any ideas?