Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 8 votes

Simple Multi Image Add-on (Un-Limited) with FancyBox Popups


957 replies to this topic

#21 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 13 September 2009, 10:13

Its clear someting is preventing the javascript to run, can u confirm you did copy the js directory & contents to your images directory?
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#22 satish

  • Community Member
  • 5,315 posts
  • Real Name:Satish Mantri
  • Gender:Male
  • Location:Nagpur(India)

Posted 13 September 2009, 10:31

Good one.
Thanks!!

Satish
Ask for osCommerce value addon suggestion tips for your site.
Check My About US For who am I and what My company does.


#23 thisisbolo

  • Community Member
  • 51 posts
  • Real Name:BoLo

Posted 13 September 2009, 19:45

View Postspooks, on Sep 13 2009, 06:13 AM, said:

Its clear someting is preventing the javascript to run, can u confirm you did copy the js directory & contents to your images directory?

Hey Spooks. Yes. Minor error on my end. All is working and is working well! Awesome contribution. Thank you so much for all your help!

All the best!

BoLo

#24 mofpeXL

  • Community Member
  • 3 posts
  • Real Name:Mogens Høholt

Posted 14 September 2009, 18:08

View Postspooks, on Sep 13 2009, 12:13 PM, said:

Its clear someting is preventing the javascript to run, can u confirm you did copy the js directory & contents to your images directory?
Hi Sam.
Great contrib, but i have a little problem. I´m sitting here with my danish OSC v2.2 RC2a, but i have one problem. I can´t see any pictures in fancybox.
I havent install any other contrib, as far as i know. And no mootools. And the js directory is copied to the images directory.
I there any where in the code, i can look.
I hope you can help. Please tell me if you need any code or other things.
Best regards
mofpeXL

#25 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 14 September 2009, 19:33

View PostmofpeXL, on Sep 14 2009, 07:08 PM, said:


If you are getting blank popups rather than images opening in a new page (as above) the most likely cause is incorrect doctype, the install includes a list of valid doctypes.
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#26 mofpeXL

  • Community Member
  • 3 posts
  • Real Name:Mogens Høholt

Posted 15 September 2009, 05:28

Great spooks

Now its working. Thank you.

#27 pynchy

  • Community Member
  • 2 posts
  • Real Name:chris

Posted 16 September 2009, 19:38

If you can help please?

I have made all the changes exactly as stated but the categories/products page in oscommerce admin just shows blank! I have tried this several times each time reverting back to backup to no avail. I even used winmerge to compare the categories.php files to each other. If i copy your categories.php file to the server it just shows blank as well.

I really need to get this working and it seems like the best additional images add-on.

Please any ideas would be greatly appreciated.

Thanks in advance.

#28 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 16 September 2009, 20:20

If you are getting blank popups rather than images opening in a new page (as above) the most likely cause is incorrect doctype, the install includes a list of valid doctypes, as I said b4!!!!
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#29 pynchy

  • Community Member
  • 2 posts
  • Real Name:chris

Posted 16 September 2009, 20:28

just sorted the problem! my stupid.

Thanks for speedy reply spooks.

#30 valerif

  • Community Sponsor
  • 199 posts
  • Real Name:valeri

Posted 16 September 2009, 23:59

nice contribution,
thanks

- one note for who uses osThumb contribution. in product listing php

relace SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with PRODUCT_INFO_IMAGE_WIDTH, PRODUCT_INFO_IMAGE_HEIGHT so that you can control the product listing size. see the code belo:

<!-- Simple multi image addon -->
<div id="fancy">
<table border="0" cellspacing="0" cellpadding="2" align="right">
<tr>
<td align="center" class="smallText">

<?php echo '<a rel="image_group" title="'.$product_info['products_name'].'" 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 />' . '</a>'; ?>
<?php if(!$vertical_format) { echo ''; $row = 1; reset($products_image_array); while (list($key, $value) = each($products_image_array)) {
echo '<a rel="image_group" title="'.$product_info['products_name'].'" href="' . tep_href_link(DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>';

++$row; if ($row > $image_group) { echo '<br />'; $row = 1; } } }
echo '</td>';
if($vertical_format) { echo '<td>'; $row = 1; reset($products_image_array); while (list($key, $value) = each($products_image_array)) {
echo '<a rel="image_group" title="'.$product_info['products_name'].'" href="' . tep_href_link(DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . '</a>';

++$row; if ($row > $image_group) { echo '</td><td>'; $row = 1; } } echo '</td>'; } ?>


</tr>
</table>
</div>
<!-- EOF Simple multi image addon -->

#31 Jlenting

  • Community Member
  • 17 posts
  • Real Name:Jasper

Posted 17 September 2009, 11:41

Hi,

I installed the addon and it works great, I have only one question, above my product_info page I have a flash banner. The popup of the image hides his self (top of the popup and the X button) behind the flash banner. Is it possible to give a xyz cord of the popup window? So I can let the popup open 20/50 pixels beneath the flashbanner.

#32 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 17 September 2009, 11:59

View Postvalerif, on Sep 17 2009, 12:59 AM, said:


Thanks for the tip, but it should not be neccessary, osCthumb detects if it is looking at the main product image from the product_info.php page and if so uses those parameters in place of those given, only if there were some error in the store would that change be required.

It is handy to point out to users though that osC thumb uses Product Information Image Width/Hieght in place of Small Image Width/Height for the main product image on the product_info.php page.
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#33 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 17 September 2009, 21:44

View PostJlenting, on Sep 17 2009, 12:41 PM, said:

Hi,

I installed the addon and it works great, I have only one question, above my product_info page I have a flash banner. The popup of the image hides his self (top of the popup and the X button) behind the flash banner. Is it possible to give a xyz cord of the popup window? So I can let the popup open 20/50 pixels beneath the flashbanner.


There is no published method at the moment, take a look at the Fancybox forum.

You could look at the css, simplest method may be to just set your z-indexs to suit.
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#34 cynic-

  • Community Member
  • 7 posts
  • Real Name:cynic-
  • Gender:Male

Posted 18 September 2009, 13:17

Hi, thanks a lot for this addon ! I have to let you know, you forgot a portion of code in the very first lines of admin/categories.php :

Copyright © 2003 osCommerce$stock_query = tep_db_query("select options_quantity from " . TABLE_PRODUCTS ." p,".TABLE_PRODUCTS_ATTRIBUTES. " pa where p.products_id = '" . (int)$products_id . "'"." AND p.products_id=pa.products_id AND pa.products_attributes_id='".(int)$products_attributes_id."'");

Not a bug, but I think Copyright © 2003 osCommerce is enough :)
valid xhtml + valid css + oscommerce = www.oscss.org"]oscss !

#35 theurbanrooster

  • Community Member
  • 45 posts
  • Real Name:Pete Crebbin

Posted 19 September 2009, 11:58

Hi,
I've tried to install this Contribution, but I'm having a bit of trouble. When listing a new product, I am able to add 3 more photos. However, when I go to Preview it shows only the main photo, and when I click Insert I get this:

1054 - Unknown column 'products_image_array' in 'field list'
insert into products (products_quantity, products_model, products_price, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id, products_image, products_image_array, products_date_added) values ('1', '', '110.00', null, '6.54', '1', '0', '0', 'Spurge.JPG', 'a:0:{}', now())

[TEP STOP]

Where have I gone wrong? And keep in mind that I am a very new newbie.
Thanks,
pete.

#36 theurbanrooster

  • Community Member
  • 45 posts
  • Real Name:Pete Crebbin

Posted 19 September 2009, 14:05

View Posttheurbanrooster, on Sep 19 2009, 09:58 PM, said:

Hi,
I've tried to install this Contribution, but I'm having a bit of trouble. When listing a new product, I am able to add 3 more photos. However, when I go to Preview it shows only the main photo, and when I click Insert I get this:

1054 - Unknown column 'products_image_array' in 'field list'
insert into products (products_quantity, products_model, products_price, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id, products_image, products_image_array, products_date_added) values ('1', '', '110.00', null, '6.54', '1', '0', '0', 'Spurge.JPG', 'a:0:{}', now())

[TEP STOP]

Where have I gone wrong? And keep in mind that I am a very new newbie.
Thanks,
pete.

Somebody suggested that I may not have run the SQL - I was sure I had, but I ran it again. There is now a SQL error:

Error

SQL query:

ALTER TABLE `products` ADD `products_image_array` VARCHAR( 800 ) NULL DEFAULT NULL ;

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

Any suggestions?
pete.

#37 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 20 September 2009, 22:26

Quote

theurbanrooster

If your site says missing column, but phpMyadmin says u have it already the most likely answer is your not connecting to the dbase your site is using when entering phpMyAdmin!!

Check your configure.php to see which dbase u r using.
Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#38 theurbanrooster

  • Community Member
  • 45 posts
  • Real Name:Pete Crebbin

Posted 21 September 2009, 04:44

View Postspooks, on Sep 21 2009, 08:26 AM, said:

If your site says missing column, but phpMyadmin says u have it already the most likely answer is your not connecting to the dbase your site is using when entering phpMyAdmin!!

Check your configure.php to see which dbase u r using.

OK - I'm looking into it. Thanks very much. I am extremely new at all of this.

#39 theurbanrooster

  • Community Member
  • 45 posts
  • Real Name:Pete Crebbin

Posted 21 September 2009, 06:49

View Postspooks, on Sep 21 2009, 08:26 AM, said:

If your site says missing column, but phpMyadmin says u have it already the most likely answer is your not connecting to the dbase your site is using when entering phpMyAdmin!!

Check your configure.php to see which dbase u r using.


OK - got that sorted out, thanks very much. Unfortunately, none of my additional pics come up on the product listing.

#40 spooks

  • Community Member
  • 6,668 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 21 September 2009, 09:33

View Posttheurbanrooster, on Sep 21 2009, 07:49 AM, said:

Unfortunately, none of my additional pics come up on the product listing.

Did you apply the instructions to modify product_info.php & upload your changed file?

Remember this modifies the individual product display in product_info.php, not the multiple product listing display in index.php.

Perhaps u need to read How do I install a contribution http://forums.oscommerce.com/index.php?sho...=0#entry1432157

Edited by spooks, 21 September 2009, 09:35.

Sam

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

Post osC questions don't PM them. Vampire?

Contributions:

Multi Images with Fancy Popups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.