Jump to content



Latest News: (loading..)

* * * * * 2 votes

[Contribution] Additional Images Module


  • Please log in to reply
1473 replies to this topic

#61   icebaby_tw

icebaby_tw
  • Members
  • 1 posts
  • Real Name:Michael

Posted 12 March 2003 - 10:13 AM

I have those two problem?(I try to fix them but .... so help me. Thanks)

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   sefu

sefu
  • Members
  • 204 posts
  • Real Name:Wing
  • Location:Sydney

Posted 13 March 2003 - 07:39 AM

Im getting the following error when i try to add new images

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   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 14 March 2003 - 10:18 PM

Quote

I have those two problem?(I try to fix them but .... so help me. Thanks)

1.Admin part: Why I don't have medium part

medium = display image
small = list image
popup = big image

#64   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 14 March 2003 - 10:20 PM

Quote

2.error part when I try to add images. Error as below

Hi, what CVS version do you use?

#65   uny

uny
  • Members
  • 14 posts
  • Real Name:uny

Posted 16 March 2003 - 06:58 PM

just want to ask did anyone use this Mod with the Bigger Image Mod?

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!  :D

#66   phanthomas

phanthomas
  • Members
  • 14 posts
  • Real Name:Thomas A. Reinert
  • Location:Cologne, Germany

Posted 17 March 2003 - 04:00 PM

hm, it seems i still have some problems to get this sweet thingie working..

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

2. Add the following lines (see the example!):
=============================================================
     <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.
phanthomas
counter:attack media solutions gmbh

#67   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 18 March 2003 - 11:46 AM

Quote

In product_info_changes =>

Quote

2. Add the following lines (see the example!):
=============================================================
      <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   phanthomas

phanthomas
  • Members
  • 14 posts
  • Real Name:Thomas A. Reinert
  • Location:Cologne, Germany

Posted 18 March 2003 - 11:58 AM

yeap, thx! seems i´ve been a little dumb already yesterday..  :roll:
phanthomas
counter:attack media solutions gmbh

#69   Salvo

Salvo
  • Members
  • 1,008 posts
  • Real Name:Salvo
  • Gender:Male

Posted 18 March 2003 - 12:16 PM

Hi All,

Has anyone managed to do the popup gallery as mentioned before?

Thanks

Salvo

#70   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 19 March 2003 - 08:08 AM

Quote

Has anyone managed to do the popup gallery as mentioned before?

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   yosithezet

yosithezet
  • Members
  • 14 posts
  • Real Name:David Heyman
  • Location:Israel

Posted 19 March 2003 - 10:17 AM

So far things seem to be working ok...I'm even making progress on having the popup page include more info and the large picture and whatnot. But when I try to delete an imagine I am getting:

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   Matt L

Matt L
  • Members
  • 14 posts
  • Real Name:Matt Lewis
  • Location:California

Posted 19 March 2003 - 11:50 AM

I *just* emailed him about this:

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

So far things seem to be working ok...I'm even making progress on having the popup page include more info and the large picture and whatnot. But when I try to delete an imagine I am getting:

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   rnt

rnt
  • Members
  • 10 posts
  • Real Name:Renato Duarte
  • Location:Portugal

Posted 19 March 2003 - 02:21 PM

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

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 20 March 2003 - 01:22 AM

Hi here the miss typing de in:
tep_db_query("te from " . TABLE_ADDITIONAL_IMAGES  ...
It must be:
tep_db_query("delete from " . TABLE_ADDITIONAL_IMAGES ...


zaenal

#75   dwebo

dwebo
  • Members
  • 7 posts
  • Real Name:Rick Vilaro

Posted 29 March 2003 - 05:21 PM

I still get this error after installing and looking at scripts till my eyes crossed. So can someone please help?

Fatal error: Cannot instantiate non-existent class: imagesbox in /home/sites/site39/web/catalog/includes/modules/additional_images.php on line 49

#76   dwebo

dwebo
  • Members
  • 7 posts
  • Real Name:Rick Vilaro

Posted 30 March 2003 - 05:31 PM

This one too:
Warning: getimagesize: Read error! in /home/sites/site39/web/catalog/includes/functions/html_output.php on line 303

#77   SxyWebs

SxyWebs
  • Members
  • 43 posts
  • Real Name:Charles Vance
  • Location:Southeastern USA

Posted 01 April 2003 - 09:37 PM

I downloaded it, installed it per the directions, and it works perfectly! GREAT MOD!

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  :D

#78   Parikesit

Parikesit
  • Members
  • 263 posts
  • Real Name:zaenal
  • Gender:Male
  • Location:Bandung, Indonesia

Posted 18 April 2003 - 08:01 AM

Hello guys,

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   resoman

resoman
  • Members
  • 69 posts
  • Real Name:jesse
  • Location:Minneapolis, MN

Posted 19 April 2003 - 03:16 PM

Very useful contribution! Thanks!

#80   spoiledRHOtten

spoiledRHOtten
  • Members
  • 301 posts
  • Real Name:Courtney

Posted 19 April 2003 - 05:13 PM

hi!

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?