Simple Multi Image Add-on (Un-Limited) with FancyBox Popups
#21
Posted 13 September 2009, 10:13
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.
#23
Posted 13 September 2009, 19:45
spooks, on Sep 13 2009, 06:13 AM, said:
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
Posted 14 September 2009, 18:08
spooks, on Sep 13 2009, 12:13 PM, said:
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
Posted 14 September 2009, 19:33
mofpeXL, 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.
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
Posted 15 September 2009, 05:28
Now its working. Thank you.
#27
Posted 16 September 2009, 19:38
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
Posted 16 September 2009, 20:20
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
Posted 16 September 2009, 20:28
Thanks for speedy reply spooks.
#30
Posted 16 September 2009, 23:59
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
Posted 17 September 2009, 11:41
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
Posted 17 September 2009, 11:59
valerif, 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.
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
Posted 17 September 2009, 21:44
Jlenting, on Sep 17 2009, 12:41 PM, said:
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.
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
Posted 18 September 2009, 13:17
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
#35
Posted 19 September 2009, 11:58
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
Posted 19 September 2009, 14:05
theurbanrooster, on Sep 19 2009, 09:58 PM, said:
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
Posted 20 September 2009, 22:26
Quote
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.
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
Posted 21 September 2009, 04:44
spooks, on Sep 21 2009, 08:26 AM, said:
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
Posted 21 September 2009, 06:49
spooks, on Sep 21 2009, 08:26 AM, said:
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
Posted 21 September 2009, 09:33
theurbanrooster, on Sep 21 2009, 07:49 AM, said:
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.
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.














