Jump to content
surfalot

[Contribution] More_pics_6 v1.1 For osC 2.2 MS2

Recommended Posts

I gave up on the lightbox (which is a wonderful mod - and I will probably try again after I do some speed optimizing) so I went back to the last mod uploaded by Surfalot.

Does anyone know of a way to add a css border to all product pictures including the category and product listings? I have done a google search on the osc forums, and read the posts, but I do not want to make 'unsanctioned' changes. And I am sure that someone has done this with morepics.

There isn't an easy way. You can add this to your stylesheet, but it's real generic and may affect other images.

 

TD.smallText img {

border: 1px solid #999999;

}

 

The best way is to add a class name to the image places you wish and define a new style for that specifically.

 

hehe, 'unsanctioned'? You can make any changes you wish to the GNU code posted in osC contributions. And you can post your changes (with a new version number) back to the contribution if you wish (except for Wolfens Featured Sets because Wolfens is a trademark company name, and we won't go there here). But it will be up to you to support any new contrib for others.

Share this post


Link to post
Share on other sites

where on earth do i limit the width / height of the popup images?


Kind Regards

 

Paul Brown

Share this post


Link to post
Share on other sites
where on earth do i limit the width / height of the popup images?

it would be approximately where you uploaded your code if you are using my latest version. :D

The code is built into the popup_image.php file. just uncomment it.

 

change

/* 
//
// for use if you want to define a maximum width and height for the large popup images.
//

to

//
  // for use if you want to define a maximum width and height for the large popup images.
  //

and remove the following

*/
//
// to use the above code, you must remove the next two lines.
//
$img = DIR_WS_IMAGES . $insert;
echo '<tr><td align="center"><img src="' . $img . '"></td>';

Share this post


Link to post
Share on other sites

damn, sadly i used v2 listed there with the lightbox css thing :(

 

any ideas how do do it with it? i can change it to 1.3 as client has seen v2 and loves the effect :(


Kind Regards

 

Paul Brown

Share this post


Link to post
Share on other sites
damn, sadly i used v2 listed there with the lightbox css thing :(

 

any ideas how do do it with it? i can change it to 1.3 as client has seen v2 and loves the effect :(

sorry, I don't. I've not payed with the lightbox contrib. you would find more help for that in a support topic focusing on the lightbox contrib. If you can't find that, PM matrix_france for help since they didn't include a support topic link with the contribution post.

 

although there is nothing improper done, I wouldn't encourage folks to combine contributions and repost to an individual contributions page. And particularly when they don't stick around to support it. >_<

Share this post


Link to post
Share on other sites

Hi there,

Fantastic contribution! I love it, so thankyou for all the work that has been done!

 

This was the last thing I installed on my site. So my question to anyone and everyone who has mopics6 installed....

 

Do you have it running successfully with the Cross Sell (X SELL) Version 2.3 (or any version really) contrib.?

As I can't see it now at catalog end, but it works fine in admin.

Would love to have both working together!! :)

 

Thanks,

Monica

Share this post


Link to post
Share on other sites

The answer is yes!

You can have both above contributions working harmoniously together.

I looked over my xsell files again and found code that was missing. Same story as usual, eh?

Monica

Share this post


Link to post
Share on other sites

Hello,

 

First of all thank you so much to everybody who worked on this contribution. It is a superb addition to OSC.

It is working almost flawlessly for me. I am sure we will be able to resolve the small problem I encountered.

 

INFO:

 

I have installed More Pics 6 v1.2

I have made the quickfix for thumbnails

 

RECENT CHANGES:

 

I have changed the DOCTYPE declaration of all my php files recently because I was having a problem with my left column in Firefox. This problem is now fixed. (more details here)

 

PROBLEM:

 

When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly.

 

This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again.

 

 

 

 

I don't know where to look. It seems to be related to me changing the DOCTYPE declaration.

 

Let me know if you have any idea.

 

Thanks in advance :thumbsup:

 

Have a great day!

 

Karim

Share this post


Link to post
Share on other sites
Hello,

 

First of all thank you so much to everybody who worked on this contribution. It is a superb addition to OSC.

It is working almost flawlessly for me. I am sure we will be able to resolve the small problem I encountered.

 

INFO:

 

I have installed More Pics 6 v1.2

I have made the quickfix for thumbnails

 

RECENT CHANGES:

 

I have changed the DOCTYPE declaration of all my php files recently because I was having a problem with my left column in Firefox. This problem is now fixed. (more details here)

 

PROBLEM:

 

When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly.

 

This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again.

 

 

 

 

I don't know where to look. It seems to be related to me changing the DOCTYPE declaration.

 

Let me know if you have any idea.

 

Thanks in advance :thumbsup:

 

Have a great day!

 

Karim

try the validator http://validator.w3.org/ may give you clues to what is wrong.

Share this post


Link to post
Share on other sites
try the validator http://validator.w3.org/ may give you clues to what is wrong.

 

 

thank you, I tried and I get:

 

Error Line 7 column 29: required attribute "TYPE" not specified.
<script language="javascript"><!--
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are  type="text/css" for <style> and type="text/javascript" for <script>.

 

and

 

Error Line 38 column 47: required attribute "ALT" not specified.
  <tr><td align="center"><img src="images/"></td>		</tr>

 

Any idea what the javascript "type" is supposed to be?

 

Thanks again for the lead :thumbsup:

Share this post


Link to post
Share on other sites

I changed this :

<script language="javascript">

 

to this:

<script language="javascript" type="text/javascript">

 

It fixed one validation error. But the image still doesn't load.

 

when viewing the source of popup_image.php, the image name seems to be there even if I can't see the image:

<tr><td align="center"><img src="images/Dyno1-ECISE46323.jpg"></td>		</tr>

 

 

After reloading, the source is still the same but the image is displayed. The only error is a missing alt for the image.

Share this post


Link to post
Share on other sites
I am out of ideas.

 

Anybody?

the next step would be to correct that error.

 

find in popup_image.php

$img = DIR_WS_IMAGES . $insert;
echo '<tr><td align="center"><img src="' . $img . '"></td>';

change to

echo '<tr><td align="center">' . tep_image($img, '', '', '', 'border="0"') . '</td>';

Share this post


Link to post
Share on other sites
the next step would be to correct that error.

 

find in popup_image.php

$img = DIR_WS_IMAGES . $insert;
echo '<tr><td align="center"><img src="' . $img . '"></td>';

change to

echo '<tr><td align="center">' . tep_image($img, '', '', '', 'border="0"') . '</td>';

 

 

I made the change and I still get the same problem unfortunately :'(

Edited by KPGroup

Share this post


Link to post
Share on other sites

Hi

 

Need Some Help

 

Trying to install Categories and Products Images Folder Tree.

 

Got it installed but when i try and add an image the folder is created but the image is not uploaded to the new folder.

 

Any one else got this to work?

 

 

Thanks

 

Rob

Share this post


Link to post
Share on other sites

een trying to work this out for the past 3 days. :'(

 

I recently installed (first) "more pics V1.3b" and since I got errors I then installed "more pics V1.2c". Both versions gave me the same outcome.

 

The issues are as follows...

 

1. MYSQL gave me this error:

Error

SQL query:

ALTER TABLE `products` ADD `products_subimage1` VARCHAR( 64 ) AFTER `products_image` ;

MySQL said: Documentation
#1060 - Duplicate column name 'products_subimage1' 

 

2. The Catalog page shows the thumbnail image, but when I click on it I go to product_info.php page with the product desription, no image appering here. But when I click the "review button" on the bottom, I get the thumbnail image and the "click to enlarge" button which opens the popup window with the arrows and images. :'(

 

3. In the admin area there is a "More Pics" tab, but no pics displayed.

 

4. The "remove image" function in admin, product update doesnt work.

 

 

Please,please,please....I need your help. :'(

Share this post


Link to post
Share on other sites
...

 

When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly.

 

This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again....

 

 

this is somehow related to whether the image is cached, because you can re-create the problem by clearing your cache.

 

i just solved this exact same problem on my site. the trick was to get rid of the width and height assignment in the javasript function, which lets them be set automatically.

 

in product_info.php, find:

 

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}

//--></script>

 

and delete the bit in red.

 

if all your big images happen to be the same size, you could replace the '100' with the actual pixel height/width of your big images.

 

cheers,

rj

Share this post


Link to post
Share on other sites

It works!!!

 

You're my hero. ;)

 

I replaced the 100 with my big images' dimensions.

 

Thanks a lot. I had almost given up at this point. :thumbsup:

 

 

this is somehow related to whether the image is cached, because you can re-create the problem by clearing your cache.

 

i just solved this exact same problem on my site. the trick was to get rid of the width and height assignment in the javasript function, which lets them be set automatically.

 

in product_info.php, find:

and delete the bit in red.

 

if all your big images happen to be the same size, you could replace the '100' with the actual pixel height/width of your big images.

 

cheers,

rj

Share this post


Link to post
Share on other sites
in phpMyAdmin, click on the little "SQL" link image. Copy all the text from the database_additions.txt file into the Run SQL query window, click go. that's all there is to that.

 

 

I'm so sorry for my unknowledge in this but. There are 2 SQL images.... and I don't have the "go" button. :'(

 

I don't know what to do? :blink:

 

All I know is that it doesn't work yet.

 

Best regards

Jessica


Jessica Fuchs

Share this post


Link to post
Share on other sites

Hey Guys

 

Has anyone used the morepics contribution with SPPC, i have used, and the thumbnails no longer show up on the product_info.php page.

 

However, when i click the main image, i can still scroll to the next image

 

Has anyone experienced this?

 

Thanks

 

Tarek

RACESPEC

Share this post


Link to post
Share on other sites
I'm so sorry for my unknowledge in this but. There are 2 SQL images.... and I don't have the "go" button. :'(

 

I don't know what to do? :blink:

 

All I know is that it doesn't work yet.

 

Best regards

Jessica

 

 

Ok, I've fixed this so don't bather. :)

 

Have a nice day!


Jessica Fuchs

Share this post


Link to post
Share on other sites

Could you help me please?

 

I don't know what I've done wrong. :huh:

 

I have STS installed and now MorePics as well. I do get all the pictures on the product info page BUT it doesn't matter which image I click at I still get the first one in the pop-up window!! WHY?? And why doesn't the "back and next" buttons show?

 

Do any of you have a clue what I may have done wrong?

 

Take a look and you'll see what I mean. Just click any image at the page

 

http://rcmaffian.se/oscommerce_st/catalog/...;products_id=23

 

Please anyone??

 

Best reards

Jessica :blink:


Jessica Fuchs

Share this post


Link to post
Share on other sites
Nobody?

I'm out of ideas. Looks like you'll have to do some debugging. Either remove items or add items from the page until you narrowed the problem down. Check your PHP error reporting and make sure errors are being displayed.

Share this post


Link to post
Share on other sites

Hello!

 

Just wanted to thank you all for this great contribution. :thumbsup: Also a special mention to Spax/Peter, who helped me through completing this wonderful addition. :D

 

Keep it up!

 

Liza ;)

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

×