[Contribution] Additional Images Module
#61
Posted 12 March 2003 - 10:13 AM
1.Admin part: Why I don't have medium part
[img]http://www.web111.net/pics/1.gif[/img]
2.error part when I try to add images. Error as below
Warning: open_basedir restriction in effect. File is in wrong directory in /admin/categories.php on line 295
Warning: open_basedir restriction in effect. File is in wrong directory in /admin/categories.php on line 301
Warning: Cannot add header information - headers already sent by (output started at /admin/categories.php:295) in /admin/includes/functions/general.php on line 26
#62
Posted 13 March 2003 - 07:39 AM
1064 - You have an error in your SQL syntax near ' )' at line 1
insert into TABLE_ADDITIONAL_IMAGES (products_id, images_description, medium_images, popup_images) values ('45', 'Test', , )
[TEP STOP]
im not quite sure what it could be and I dont know where to start looking. Any help will be much appriciated
#63
Posted 14 March 2003 - 10:18 PM
Quote
1.Admin part: Why I don't have medium part
medium = display image
small = list image
popup = big image
#64
Posted 14 March 2003 - 10:20 PM
Quote
Hi, what CVS version do you use?
mySQLi extension for osc 2.X, OPI: advanced image handling (ajax, thumbnail, watermark, etc), and other contributions all here
#65
Posted 16 March 2003 - 06:58 PM
http://www.oscommerce.com/community/contri...ions,614/page,2
I'm trying to put them together, but didnt' have any good luck..
well, if anyone did this sucessfully, Please post your changes here. Really appreciate your help!
#66
Posted 17 March 2003 - 04:00 PM
I´m using MS1 with quite some mods innit.
1.) image_check-v1.2
2.) image_chomod
3.) image_timestamp (Pics cannot be overwritten)
4.) thumbs3 (automatic thumbnail generation)
It doesnt give me any error. It just won´t display any picture in admin though, but it DOES display all neccessary fields etc to insert/delete a picture.
Does anyone know any reason why this might not work? Hints of any kind? I would really desperately need to get it working for our site...
Footnote: Just one thing i really didnt understand within the installation instructions:
In product_info_changes =>
Quote
=============================================================
<tr>
<td>
<?php require(DIR_WS_MODULES . FILENAME_ADDITIONAL_IMAGES); ?>
</td>
</tr>
Which example? Where do i have to add this?! Anyway, this does not have to do with the admin problem, so i´d like to get this fixed first.
counter:attack media solutions gmbh
#67
Posted 18 March 2003 - 11:46 AM
Quote
Quote
=============================================================
<tr>
<td>
<?php require(DIR_WS_MODULES . FILENAME_ADDITIONAL_IMAGES); ?>
</td>
</tr>
Which example? Where do i have to add this?! Anyway, this does not have to do with the admin problem, so i´d like to get this fixed first.
The example is "product_info.php" file provided in this contribution
Parikesit
#68
Posted 18 March 2003 - 11:58 AM
counter:attack media solutions gmbh
#69
Posted 18 March 2003 - 12:16 PM
Has anyone managed to do the popup gallery as mentioned before?
Thanks
Salvo
#70
Posted 19 March 2003 - 08:08 AM
Quote
Hi Salvo,
This is the Champion League PRIMETIME :idea:
Sorry...
I'm currently develop Admin Level panel, and hope will finish in this week.
Cheers
zaenal
#71
Posted 19 March 2003 - 10:17 AM
Fatal error: Call to undefined function: si() in /Volumes/Users/david/Sites/ShadmaOSC/admin/categories.php on line 318
case 'del_images':
$additional_images_id = tep_db_prepare_input($HTTP_GET_VARS['pID']);
if ( ($HTTP_POST_VARS['products_id']) && (is_array($HTTP_POST_VARS['additional_images_id'])
$product_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
$additional_images_id = $HTTP_POST_VARS['additional_images_id'];
for ($i=0; $i<si($additional_images_id); $i++) {
tep_db_query("te from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" .
}
}
//tep_db_query("de from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" . $
tep_redirect(tep_hlink(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
break;
line 318 is the for ($i=...
What am I missing?
Thanks!
David
#72
Posted 19 March 2003 - 11:50 AM
The code is missing characters all over the place. Here is the correct code.
case 'del_images':
$additional_images_id = tep_db_prepare_input($HTTP_GET_VARS['pID']);
if ( ($HTTP_POST_VARS['products_id']) && (is_array($HTTP_POST_VARS['additional_images_id'])) ) {
$product_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
$additional_images_id = $HTTP_POST_VARS['additional_images_id'];
for ($i=0; $i<sizeof($additional_images_id); $i++) {
tep_db_query("delete from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" . tep_db_input($additional_images_id[$i]) . "'");
}
}
//tep_db_query("delete from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" . $HTTP_POST_VARS['additional_images_id'] . "'");
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
break;
As you can see, the sql statement, the tep_href_link, and the sizeof, were all missing characters. This occurs only in the categories_changes file, but is correct in the categories.php file provided with the contrib. I managed to guess that this was the case by guessing that "si" was a mistype for "sizeof", which lead me to this discovery.
-Matt Lewis
Quote
Fatal error: Call to undefined function: si() in /Volumes/Users/david/Sites/ShadmaOSC/admin/categories.php on line 318
case 'del_images':
$additional_images_id = tep_db_prepare_input($HTTP_GET_VARS['pID']);
if ( ($HTTP_POST_VARS['products_id']) && (is_array($HTTP_POST_VARS['additional_images_id'])
$product_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
$additional_images_id = $HTTP_POST_VARS['additional_images_id'];
for ($i=0; $i<si($additional_images_id); $i++) {
tep_db_query("te from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" .
}
}
//tep_db_query("de from " . TABLE_ADDITIONAL_IMAGES . " where additional_images_id = '" . $
tep_redirect(tep_hlink(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
break;
line 318 is the for ($i=...
What am I missing?
Thanks!
David
[/CODE][CODE]
#73
Posted 19 March 2003 - 02:21 PM
I install this contributions and it works fine.. but i can´t add another image (popup image) for the main image..
Fot exemple:
http://www.teksigns.com/shop/product_info....products_id=544
Can i do it with this contributions or i need another??
Thanks for the time..
#74
Posted 20 March 2003 - 01:22 AM
tep_db_query("te from " . TABLE_ADDITIONAL_IMAGES ...It must be:tep_db_query("delete from " . TABLE_ADDITIONAL_IMAGES ...
zaenal
#75
Posted 29 March 2003 - 05:21 PM
Fatal error: Cannot instantiate non-existent class: imagesbox in /home/sites/site39/web/catalog/includes/modules/additional_images.php on line 49
#76
Posted 30 March 2003 - 05:31 PM
Warning: getimagesize: Read error! in /home/sites/site39/web/catalog/includes/functions/html_output.php on line 303
#77
Posted 01 April 2003 - 09:37 PM
I appreciate all the mods and tips, etc, posted by everyone. I only discovered osCommerce about a week or so ago, and am moving all my products from the old software (PayPal AntiFraud Portal) to osCommerce.
This software and all the people on these forums ROCKS!
Charlie
#78
Posted 18 April 2003 - 08:01 AM
Sorry i'm not comming to this forum for a long time. I just finished another contribution: "Admin Account with Acces Level". You can see the discussion here:
http://forums.oscommerce.com/viewtopic.php?t=41447
Regard's
zaenal
#79
Posted 19 April 2003 - 03:16 PM
#80
Posted 19 April 2003 - 05:13 PM
for some reason, i can't add images to the products but to the categories...
i mean, when the category is selected the images *add image and delete image* comes up. But when I click on the product, they are not there.
any help?









