Jump to content
surfalot

[Contribution] More_pics_6 v1.1 For osC 2.2 MS2

Recommended Posts

Check your database. All of the added lines should be in the configuration_group and configuration tables, probably near the end.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Cheers for that piece of code Jim, I think it worked, but waiting on an answer from my host as my images display with an red cross and i think its because file permissions are 644 on the images, but 777 on the folder.

Share this post


Link to post
Share on other sites

*grumble* still got the red cross. Would the permissions be the culprit? so close to getting this done..

Share this post


Link to post
Share on other sites

It could be. Try changing the permissions on one of your images to 644 and see if it shows up.

 

If that's not it, do View Source in your browser and look at the image tag. Is it calling the image from the correct location? Is the image name incorrect or missing?

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hi Guys,

 

I installed this contribution and my admin->Products Images shows:

 

1146 - Table 'allscoot_enly.TABLE_PRODUCTS_IMAGES' doesn't exist

select count(*) as total from TABLE_PRODUCTS_IMAGES pi, products_description pd where pd.products_id = pi.products_id and pd.language_id = '1'

 

I did insert the database.sql into my database. I checked and products_images is there.

 

Anything I'm missing?

 

Thanks much for your input.

Share this post


Link to post
Share on other sites
<snipped>

Anything I'm missing?

The changes to catalog/admin/includes/database_tables.php, apparently.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites
It could be. Try changing the permissions on one of your images to 644 and see if it shows up.

 

If that's not it, do View Source in your browser and look at the image tag. Is it calling the image from the correct location? Is the image name incorrect or missing?

 

Regards

Jim

 

Hi Jim,

 

According to my host image permissions are fine, but where i put the code you gave me it is returning this

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

So it looks like it is not calling the images properly. Any ideas..

Share this post


Link to post
Share on other sites

That tells me that

$product_info['products_image'], $product_info['products_name']

are not being set. Perhaps your template has changed the database query for the information. Check your original version for the image tag. Is the query result $product_info? If that has changed, substitute the variable that your site uses.

 

If that is not the problem, then have you accidentally deleted the database query, or have you pasted the code I gave you above the query? The query needs to come first.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites
That tells me that
$product_info['products_image'], $product_info['products_name']

are not being set. Perhaps your template has changed the database query for the information. Check your original version for the image tag. Is the query result $product_info? If that has changed, substitute the variable that your site uses.

 

If that is not the problem, then have you accidentally deleted the database query, or have you pasted the code I gave you above the query? The query needs to come first.

 

Regards

Jim

 

You are right, Just comparing it together i can see which query you mean. Now to try and solve it without messing up the template. Feel like starting again and just use sts or something to create my own. :')

Share this post


Link to post
Share on other sites

You probably missed an edit to catalog/index.php or catalog/includes/modules/product_listing.php.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites
You probably missed an edit to catalog/index.php or catalog/includes/modules/product_listing.php.

 

Regards

Jim

 

Nope.. are you sure it is in catalog/index.php or catalog/includes/modules/product_listing.php?? could not find anything here..

 

The problem occurs only when you click on a subcategorie product.

 

Anyone?

 

Regards!

Share this post


Link to post
Share on other sites

This contribution only affects product images. Subcategory images are not altered by More Pics. Did you assign images to your subcategories?

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

"Did you assign images to your subcategories?" How do i do this?

 

 

My problem is the ...includes/modules/new_products.php file, i tried to upload this file from morepics contribution and it works with that file. but my design is then missing...

 

Can you please have a look at this file:

http://rapidshare.com/files/210809403/new_products.php.html

Edited by premium

Share this post


Link to post
Share on other sites

I have an older version of this code, I am hoping someone can help me. I am having the same issue as a previous post Here

 

When I click a product in the shopping cart, I go back to the product info page and the image is the full size (not the restricted parent image) and the url is a little different. Exactly as in the post linked to above.

 

I scrolled through the posts in response to that one and I couldn't quite follow if there had been a resolution to this or not.

 

I do not want to upgrade to the most recent more pics since I have mine working on a very heavily modified site and don't want to "break" it. Can anyone help me find the answer to that previous post to solve my problem?

 

Thank you in advance for your help!

Share this post


Link to post
Share on other sites

Go to your Admin -> Catalog -> Categories/Products, select your category and click Edit. Add an image and click Save.

 

In your New Products file, you missed the changes to the database query on Line 27. Your file comparison program should highlight that error. If you're not using one, I strongly recommend that you do so.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites
I have an older version of this code, I am hoping someone can help me. I am having the same issue as a previous post Here

<snipped>

Do you have either Use SMALL_IMAGE_ Restrictions or Restrict parent image size set to true?

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Restrict parent image is true. I need it to be smaller because our images are huge (there is a reason for them to be huge).

 

I did just discover this. It does NOT happen on products which have no options (attributes). It is only happening on products with options. Maybe that would help determine the problem since I cant figure it out.

 

Thank you for your help!

Share this post


Link to post
Share on other sites

That is an odd problem. The attributes are certainly the key factor. osCommerce adds attribute codes onto the end of the products_id. We have to strip that off to use it for database querys, etc. I just haven't found where it would cause this problem. Yet.

 

As a preemptive strike, let's make certain that the attributes are bing stripped. In catalog/products_info.php, find all of the occurances of

$HTTP_GET_VARS['products_id']

in a database query. Make certain that all of them have (int) in front of that code. If it's not there, add it. There are quite a few places on that page, so be careful that you have them all.

 

If that doesn't work, look at the page source for a page that works and one that fails, and see what's in the <img > tags. Maybe the difference will give me a clue.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

Hi Everybody!

 

I'm sooo excited to find this feature!! Here is my problem... I'm not sure anymore what to download. There are so many contributions listed. I downloaded the More Pics 2.0.5 - Bugfix, but it only had the code and no read me text. So I'm thinking I need to download something else first. Is there more than one file I'm supposed to download?

 

Please be gentle with me... I'm new! :blush:

Share this post


Link to post
Share on other sites

Jim,

 

Thanks for the help! I checked for the (int) and it was missing in a couple places. But, alas, it didnt matter. I dont know why I didnt think to compare the files! So, I did just that. Here's what I've found, it looks like an imagemagic issue!

 

The page with the image in the size uploaded, "incorrect":

 

<img src="images/20090318130106-Untitled-7090318.jpg"

 

The page with the image in the adjusted "correct" size:

 

<img src="imagemagic.php?page=prod_info&img=images/20090318130106-Untitled-7090318.jpg&w=250&h=386" width="250" height="386"

 

I dont think imagemagic is supported anywhere, so I might be screwed here. I'll have to take more time to look at it to see if I can find the cause.

Share this post


Link to post
Share on other sites
Go to your Admin -> Catalog -> Categories/Products, select your category and click Edit. Add an image and click Save.

 

In your New Products file, you missed the changes to the database query on Line 27. Your file comparison program should highlight that error. If you're not using one, I strongly recommend that you do so.

 

Regards

Jim

 

Thanks!!! line 27 is now edited and it`s working. :)

 

 

Hi Everybody!

 

I'm sooo excited to find this feature!! Here is my problem... I'm not sure anymore what to download. There are so many contributions listed. I downloaded the More Pics 2.0.5 - Bugfix, but it only had the code and no read me text. So I'm thinking I need to download something else first. Is there more than one file I'm supposed to download?

 

Please be gentle with me... I'm new! :blush:

download More Pics 2.0.5.

Share this post


Link to post
Share on other sites

Hello,

 

It appears to be a need for at least 3 images for the extra image function shows the images. When 'show original image on product info page' is set to false, there will no images be shown.

 

Can this be changed easily? Is there a special reason for this?

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

×