Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Multi Image Add-on Plus PrettyPhoto popups


spooks

Recommended Posts

Simple Multi Image Add-on Plus PrettyPhoto

 

There are many multi image contributions, but I found many have become much too bloated or just didn't fit, so I created this, allowing as many extra product pictures as you want with

admin control and fancy lightbox like popups.

 

This is a different varient of my Simple Multi Image Add-on, the only difference to the previous is this uses PrettyPhoto for the popups in place of the Fancybox ones, which offers a different style & some options not available with Fancybox, but then missing some that Fancybox had, I leave it up to you to descide which you prefer.

 

This initial release is in a fairly rough form, fine tuning will come later

 

Features:

 

Its a simple strait forward design, only three files to edit

 

An un-limited number of additional images can be added to any product without modification.

 

Any product can have as many (or few) images as wanted.

 

Additional images can be deleted if needed.

 

PrettyPhoto is used for the image popups, so all product images can be browsed within a single popup.

 

Additional image layout can be modified in admin, selecting a horizontal or vertical layout and the number or images to show per row

 

Additional image size is also set in admin.

 

I recommend this is used with OscThumb for auto thumbnailing & faster load times.

 

As a bonus addition, a function is added in the product edit page to give a instant update option.

 

Images can be placed in subfolders of the images folder at product edit.

 

 

PrettyPhoto is released under the Creative Commons Attribution 2.5, details and examples can be found here .

 

 

 

Tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals off compatible.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • Replies 109
  • Created
  • Last Reply

Top Posters In This Topic

DOWNLOAD

 

 

The contribution can be download here http://addons.oscommerce.com/info/7121

 

 

 

Enjoy biggrin.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

DOWNLOAD

 

 

The contribution can be download here http://addons.oscommerce.com/info/7121

 

 

 

Enjoy biggrin.gif

 

 

Sir i have installed this contribution and when i try to run the SQL command or upload the SQL file it give me the following error:

 

Error

 

SQL query:

 

ALTER TABLE `products` ADD `products_image_array` blob;

 

MySQL said: Documentation

#1146 - Table 'bombayrc_smf1.products' doesn't exist

 

Could you please help me as i really like this contribution.

Link to comment
Share on other sites

I have installed this contribution completely.

 

I am able to upload images from the admin section but on the online store i am not able to see any additional pictures.

 

Can any one please guide me where i might have gone wrong with installation

 

Kindly HELP

Link to comment
Share on other sites

Hello, I have already installed your previous Simple Multi Image Add-on but I like the look of this one more, I was just wondering if I need to uninstall that before I install this one? as I really dont want to break my store, so thought it best to ask first.

 

Thanks

 

Ewan

Link to comment
Share on other sites

Hello, I have already installed your previous Simple Multi Image Add-on but I like the look of this one more, I was just wondering if I need to uninstall that before I install this one? as I really dont want to break my store, so thought it best to ask first.

 

Thanks

 

Ewan

 

 

No, you don't most of the code is the same, you only need to upload the new files, in product_info.php change the head section to the new, and the code within the div classs = fancy section

 

there is no need to run the sql either. smile.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

No, you don't most of the code is the same, you only need to upload the new files, in product_info.php change the head section to the new, and the code within the div classs = fancy section

 

there is no need to run the sql either. smile.gif

 

Thanks Spooks, you're awesome!

Link to comment
Share on other sites

Right I have now installed it and it looks good, but a couple of things:

 

I have embeded some youtube movies in some of my product info pagees but this popup, pops up under it, is their anyway you can think of around this?

 

and is it possible to remove the description that is displayed above the popup?

 

 

Thanks again.

 

 

Ewan

Link to comment
Share on other sites

Right I have now installed it and it looks good, but a couple of things:

 

I have embeded some youtube movies in some of my product info pagees but this popup, pops up under it, is their anyway you can think of around this?

 

and is it possible to remove the description that is displayed above the popup?

 

 

Thanks again.

 

 

Ewan

 

Did you read the faq on z-index?

 

Also in the head section there are some options:

 

showTitle: true, /* true/false */

 

Set that to false will remove title above.

 

hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */

 

Set that to true if your movie is flash. wink.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi, I really like the contribution but I have a problem with it. I am using a dhtml jscook menu and when product_info is opened the menu is all out of shape. Is this due to only 1 instance of jquery being able to run? Is there any way to fix this?

 

This is the dhtml menu I am using

http://www.oscommerce.com/community/contributions,2844/category,3/search,jscook

Link to comment
Share on other sites

Hi, I really like the contribution but I have a problem with it. I am using a dhtml jscook menu and when product_info is opened the menu is all out of shape. Is this due to only 1 instance of jquery being able to run? Is there any way to fix this?

 

This is the dhtml menu I am using

http://www.oscommerc...y/contributions,2844/category,3/search,jscook

 

 

Yes, please read the FAQ, the 1st effetivly deals wth this. wink.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\wamp\www\catalog\includes\functions\database.php on line 103

 

with the product_info from the code works good but with product_info that I've changed come with the error abobe

 

any sugestions

Link to comment
Share on other sites

Messed up install !!

Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\wamp\www\catalog\includes\functions\database.php on line 103

 

with the product_info from the code works good but with product_info that I've changed come with the error abobe

 

any sugestions

 

 

Check your edits again very carefully, you have made errors in the install, try using a file compare tool if you have trouble with the manual method. This add-on has been tested on a variety of server configs, with MS2 to RC2a versions, there are no known flaws, so if you get one then its 99% certain you have made errors. smile.gif

 

 

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

A. PrettyPhoto is jquery based, if you have any other jquery apps on the product info page you must ensure that there is only one instance of jquery, that its version is what's needed for all apps using it and it contains all the calls needed.

Jquery is incompatible with mootools, if you have any mootools apps within product info, either they or this will fail (depends what came first). Some bookmarking scripts use mootools.

 

So does this mean the current dhtml menu I am using will never work with your contrib or it is possible to make it work? I just dont want to spend time on something thats not doable, thanx

Link to comment
Share on other sites

So does this mean the current dhtml menu I am using will never work with your contrib or it is possible to make it work? I just dont want to spend time on something thats not doable, thanx

 

 

NO, it can work fine, as I said read the FAQ, the solution is there already. huh.gif

 

 

As you quoted,

you must ensure that there is only one instance of jquery
why is that hard for you to do? cool.gif Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

This n that don't work!!

 

 

Check your edits again very carefully, you have made errors in the install, try using a file compare tool if you have trouble with the manual method. This add-on has been tested on a variety of server configs, with MS2 to RC2a versions, there are no known flaws, so if you get one then its 99% certain you have made errors. smile.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

ARGHHHHHH LOL..

 

I have followed this step by step and still get this in my categories section;

 

OSC1.jpg

 

Also when i try upload multiple images, I cat this on bottom of page;

 

OSC2.jpg

 

 

In the code-line 873-879 this is what is there;

 

// Simple multi image addon

$i=1;reset($products_image_array);

while (list($key, $value) = each($products_image_array))

{

echo tep_draw_hidden_field('products_image_' . $i, stripslashes($value));

++$i; }

// EOF Simple multi image addon

 

 

-------------------------------------------------------------------------------------

 

Any ideas? Feedback greatly appreciated guys :-)

Link to comment
Share on other sites

 

 

Check you edits again very carefully, you have made errors in the install, try using a file compare tool if you have trouble with the manual method. This add-on has been tested on a variety of server configs, with MS2 to RC2a versions, there are no known flaws, so if you get one then its 99% certain you have made errors. Try using the supplied files in place of yours, you don't have to keep it that way, but it will show you that it works. smile.gif

 

 

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

My link

help .. are these people still alive . i have tried to install your adons..

and it was a success but i but i have 1 problem my product descriptions prices etc are all gone im just testing this out can you help me??

 

 

check it all again, with more care!!!

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...