Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

photo gallery for oscommerce


Recommended Posts

Welcome to the forum thread of the photo gallery contribution for oscommerce.

 

You can download the first (test)version here: http://addons.oscommerce.com/info/6181

 

features:

*new infobox with link to the gallery to draw your visitors' attention

*highslide plugin for cool opening of thumbnails

*automatic thumbnail generation with OTF autothumbnail contribution

*up to 6 pictures per client allowed

*more then 1 picture can be uploaded at once

*each client can view his own pictures, and remove them to make space for new pictures, via my accout page

*uploaded files are checked for filesize, dimensions, extension and content, so not possible to upload harmfull scripts

*clients name will be automatically displayed under the full-sized picture

 

future:

*admin interface where you can set

------>amount of rows displayed per page

------>subgalleries

------>allowed file formats, file size and dimensions

------>amount of pics allowed per customer

------>allow specified customers to have more pics

*(logged in?) visitors can leave a comment with each picture

*use of subgalleries

*better layout

*random picture in infobox

*description and title per picture

*change picture size during upload to match conditions

 

changelog:

version 0.1 - August 24, 2008

 

 

Please use this thread for support, feature requests, and to be notified of new releases.

 

Enjoy!

Edited by killerwhale65

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

  • Replies 320
  • Created
  • Last Reply

Top Posters In This Topic

screenshots:

public gallery: http://users.pandora.be/biologie/gallery_screen1.jpg

customers upload: http://users.pandora.be/biologie/gallery_screen2.jpg

Edited by killerwhale65

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

Hi :D,

Hello,

thanks for your contrib !!!

However, I have one problem : it doesnt work with my OSC 2.2 (+more 6 pics + features)

When I want to go to the gallery section, I have this below error :

 

 

QUOTE

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\Program Files\EasyPHP 2.0b1\www\catalog\gallery.php on line 172

 

Klik hier om uw eigen foto's toe te voegen aan deze gallerij.

 

 

 

An idea?

 

 

And, I forgot to say you that I keep my HTML_OUTPUT.PHP (best quality image with it).

Here, the code for the function_tep_image :

 

 

CODE

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

 

// ######################### Added No Image ###########"

$img=true;

if ($src == "images/"){

$img = false;

$src = "images/noimg.png";

}

// ################ End Added ##############

 

 

 

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

 

if (tep_not_null($alt)) {

$image .= ' title="' . tep_output_string($alt) . '"';

}

 

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

if ($image_size = @getimagesize($src)) {

if (empty($width) && tep_not_null($height)) {

$ratio = $height / $image_size[1];

$width = intval($image_size[0] * $ratio);

} elseif (tep_not_null($width) && empty($height)) {

$ratio = $width / $image_size[0];

$height = intval($image_size[1] * $ratio);

} elseif (empty($width) && empty($height)) {

$width = $image_size[0];

$height = $image_size[1];

}

} elseif (IMAGE_REQUIRED == 'false') {

return false;

}

}

 

if (tep_not_null($width) && tep_not_null($height)) {

///### ADD homothetie image

if ($get_size_image = @getimagesize($src)) {

$ratio_image_product = $get_size_image[0]/$get_size_image[1];

$ratio_image_print = $width/$height;

if ($ratio_image_product > $ratio_image_print) {

$height = floor($width / $ratio_image_product);

}

elseif($ratio_image_product < $ratio_image_print) {

$width = $height * $ratio_image_product;

}

}

///### end ADD

$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

}

 

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

 

$image .= '>';

 

return $image;

}

 

 

 

Is it compatible with MORE PICS 6 ?

Link to comment
Share on other sites

When I want to go to the gallery section, I have this below error :

 

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\Program Files\EasyPHP 2.0b1\www\catalog\gallery.php on line 172

 

Klik hier om uw eigen foto's toe te voegen aan deze gallerij.

 

 

Is it compatible with MORE PICS 6 ?

 

Hello,

 

It looks like there is an error with the gallery table in your database. Are you sure you have executed the gallery.sql file? Did it return any errors? If you go to your database, is there a table called 'gallery'?

Also, do you get an error on gallery_user.php?

 

It is possible to have more then 6 pics, but you will have to edit some code in gallery_user.php. In the future, this number will be editable in the admin.

 

Thanks!

Edited by killerwhale65

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

Yes, I have correctly executed the sql file, and it return no error.

I have the table gallery also (but it is empty).

And for "more 6 pics", it is a populate contrib :P

It is allowed us to put 6 pics for one article.

 

I have droped gallery table, and executed again the sql command : same error at opening the gallery box.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\Program Files\EasyPHP 2.0b1\www\catalog\gallery.php on line 172

Klik hier om uw eigen foto's toe te voegen aan deze gallerij.

Link to comment
Share on other sites

what about gallery_user.php?

 

It is normal that the gallery table is empty, you have not yet uploaded any pictures. There should be 3 fields however: id, cID en pID.

 

I misunderstood you about "more 6 pix". This should be compatible, since "more 6 pix" is for use together with products, while the photo gallery is not product related and is something completely different.

Edited by killerwhale65

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

Line 201 of gallery_user.php : $target_path = "gallery/";

I dont understand what do you want I do...

I have created folder with pictures, in order to test, but same probleme.

 

no, you should not make any folders yourself, nor should you put any pictures in folders yourself. gallery_user.php is made for this. Log in, go to your account.php, and you'll find there a new entry "my photo gallery". Click on it and you'll enter gallery_user.php. Here you can upload your pics.

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

no, you should not make any folders yourself, nor should you put any pictures in folders yourself. gallery_user.php is made for this. Log in, go to your account.php, and you'll find there a new entry "my photo gallery". Click on it and you'll enter gallery_user.php. Here you can upload your pics.

 

Yes, I know. It's the same problem if I'm logged or not...

Link to comment
Share on other sites

Hi there.

Thanks for putting this contribution together and sharing it with us all.

 

I've successfully managed to integrate it onto my (heavily edited) site.

I have a small problem. I use Flash for the header image and for various banner adverts.

When I click on an image in the gallery, the image zooms in in front of the page, but appears behind the Flash items!

 

Have you any clues as to how I might make them appear in front of everything?

 

You can see my results at: www.drumcentral.co.uk/gallery

 

Many thanks

 

Kenny

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

Link to comment
Share on other sites

Hi there.

Thanks for putting this contribution together and sharing it with us all.

 

I've successfully managed to integrate it onto my (heavily edited) site.

I have a small problem. I use Flash for the header image and for various banner adverts.

When I click on an image in the gallery, the image zooms in in front of the page, but appears behind the Flash items!

 

Have you any clues as to how I might make them appear in front of everything?

 

You can see my results at: www.drumcentral.co.uk/gallery

 

Many thanks

 

Kenny

 

Hello,

 

I can't make the full-sized images shop uw on your site. When i click on an image it says "loading" but nothing more happens.

 

I notice that all links on your site are like this: http://www.drumcentral.co.uk///snare-drums-c-339.html with 3 slashes. I think 1 should be enough ;-)

I also cant open the full size images in a seperate brwoser window: when you rightclick a thumbnail, choose open in new window, then a new browser window should open with the full pic. That doesnt happen so i am guessing there is a problem with the link to your full sized pic.

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

I can't make the full-sized images shop uw on your site. When i click on an image it says "loading" but nothing more happens.

I notice that when i go directly to 1 of your full sized pics: http://www.drumcentral.co.uk/gallery/7_6.jpg, the page is redirected to http://www.drumcentral.co.uk/gallery.php/7_6.jpg, which is not the image, but the gallery page, hence it's not working. Not sure why it does that, but thats probably because of some modification you did to your store.

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

Link to comment
Share on other sites

Ok it's early good !!!!!!!

I have succeeded to install your contrib, but, when I want to upload a photo (after register or not), I choose my picture, and in clicking on "upload", it display the open_account page .... An idea please?

Link to comment
Share on other sites

Thanks for all the help.

 

The extra /// in the address has always been there. It seems to have appeared after the secure certificate was installed some time ago.

Everything on the site works with one slash or three, so I've never attempted to change it. (if it ain't broke etc)

 

It is a little bit odd. When I was testing the gallery pages earlier, just after I installed the contribution, everything was working fine, except for the problem with the Flash images.

 

I'll have a look at the cache.

 

EDIT: I had added a line to my .htaccess file

This was causing the images to stop zooming.

 

Can you guys have another look and tell me what you think about the Flash problem? www.drumcentral.co.uk/gallery.php

 

Could this be a javascript thing? Maybe in highslide.js ?

 

Thanks again.

 

Kenny

Edited by drumcentral

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

Link to comment
Share on other sites

Hah.

Managed to find the answer to the Flash movies appearing in front of the zoomed pics.

 

I went to the Highslide site: http://highslide.com/forum/viewtopic.php?t...highlight=flash

 

They have the answers. You have to change/add a minor thing in the Flash movies.

 

Kenny

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

Link to comment
Share on other sites

Hah.

Managed to find the answer to the Flash movies appearing in front of the zoomed pics.

 

I went to the Highslide site: http://highslide.com/forum/viewtopic.php?t...highlight=flash

 

They have the answers. You have to change/add a minor thing in the Flash movies.

 

Kenny

Thank you very much for this link. I will add this to the installation instructions so other users may benifit.

 

regards,

 

Matt

Matthias Thoen

my contribution: Photo Gallery for osCommerce

--check my homepage in my CARD--

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...