************************************************************** 
Mo Pics Modification v1.1 for OsCommerce 2.2                 *
**********************************************               *
Released 14Aug02                                             *
Revised  28Aug02                                             *
Mo Pics Mod contains:   John Poynton's "Big Image" Mod       *
                        Richard Aspden's Big Image Revisions *
                        Brandon Sweet's "Mo Pics" Mod        *
                                                             *
"I'm NO DEVELOPER" and at most times had no idea             *
 what I was doing.                                           *
************************************************************** 


Special Thanx to Nelson Comas for helping with the update
that fixed the admin bug when previewing the images from
the admin control panel.
 
 
******************************************************
Big Images Modification v1.22 for OsCommerce 2.2     *
*************************************************    *
Released 4 March 2000                                *
Updated 3rd July 2002 by Richard Aspden, to bring up *
to date for v1.133 of categories.php                 *
                                                     *
Full credit to the original author!                  *
                                                     *
Released under the GNU General Public License        *
                                                     *
******************************************************

HOPE:  I believe this all to be complete.  If I have left out something or you have
       problems then just email me.

NOTE:  Always back up your files before attempting any type of Modification.

NOTE:  This has only been tested with the v2.2 Snap Shot that was taken on 10Aug02
 
HINT:  If your version of categories.php is NOT the same then I suggest you not use 
       this modification!!


### You will need to add the following files to their directories as set up in the zip file.

/catalog/popup_image.php   //Replace this to make way for the "Big Image" mod
/catalog/popup_image1.php  //Add this for Sub Image 1
/catalog/popup_image2.php  //Add this for Sub Image 2
/catalog/popup_image3.php  //Add this for Sub Image 3
/catalog/popup_image4.php  //Add this for Sub Image 4
/catalog/popup_image5.php  //Add this for Sub Image 5
/catalog/popup_image6.php  //Add this for Sub Image 6
/catalog/product_info.php  //Needed to display the tables and format the images will be displayed

/catalog/includes/application_top.php  //Edited to define the popup_image.php files to use 

     ++++ Or just add these 6 lines to application_top.php
     
                define('FILENAME_POPUP_IMAGE1', 'popup_image1.php');
                define('FILENAME_POPUP_IMAGE2', 'popup_image2.php');
                define('FILENAME_POPUP_IMAGE3', 'popup_image3.php');
                define('FILENAME_POPUP_IMAGE4', 'popup_image4.php');
                define('FILENAME_POPUP_IMAGE5', 'popup_image5.php');
                define('FILENAME_POPUP_IMAGE6', 'popup_image6.php');


/admin/popup_image.php   //Replace this to make way for the "Big Image" mod
/admin/popup_image1.php  //Add this for Sub Image 1
/admin/popup_image2.php  //Add this for Sub Image 2
/admin/popup_image3.php  //Add this for Sub Image 3
/admin/popup_image4.php  //Add this for Sub Image 4
/admin/popup_image5.php  //Add this for Sub Image 5
/admin/popup_image6.php  //Add this for Sub Image 6
/admin/categories.php    //Edited to define the way you select you images in the admin area
/admin/includes/languages/english/categories.php  //Edited the display of names for the Admin Panel

### Easiest thing to do would be to just upload these files into their proper directories.
### I'm not good at explaining so I am not going to go into depth as to what I changed in each.

You must perform 2 manual alterations:

Insert a new column into the products table - products_bimage.
(if you are using phpMyAdmin 2.2.3 you can simply paste the following into the SQL query window

 - presuming that your database is 'catalog')
 
########################################################################################################
###        If anyone wants to give me the easy way to add all of these please send it to me.         ###
###                                 This is just the way I did it.                                   ###
###                              ####################################                                ###
################################## ONLY DO THIS ONE LINE AT A TIME  ####################################
                                 ####################################                                  #
 ALTER TABLE `catalog`.`products` ADD `products_bimage` VARCHAR(64) AFTER `products_image`             #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage1` VARCHAR(64) AFTER `products_bimage`         #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage1` VARCHAR(64) AFTER `products_subimage1`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage2` VARCHAR(64) AFTER `products_bsubimage1`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage2` VARCHAR(64) AFTER `products_subimage2`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage3` VARCHAR(64) AFTER `products_bsubimage2`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage3` VARCHAR(64) AFTER `products_subimage3`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage4` VARCHAR(64) AFTER `products_bsubimage3`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage4` VARCHAR(64) AFTER `products_subimage4`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage5` VARCHAR(64) AFTER `products_bsubimage4`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage5` VARCHAR(64) AFTER `products_subimage5`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_subimage6` VARCHAR(64) AFTER `products_bsubimage5`     #
                                                                                                       # 
 ALTER TABLE `catalog`.`products` ADD `products_bsubimage6` VARCHAR(64) AFTER `products_subimage6`     #
                                                                                                       # 
################################## ONLY DO THIS ONE LINE AT A TIME  #################################### 
 
 


********  IT IS STRONGLY SUGGESTED TO MAKE A BACK-UP OF THESE FILES FIRST **********
(It is also strogly suggested you use a parachute when sky-diving ... make your own decision)

THANKS TO:
John Poynton      <admin@stickyweb.com.au>   for writing this in the first place!
Richard Aspden    <rick@not2advanced.com>    for updating it for compatability
Ivan Marinkovic   <marin011@hotmail.com>     for the big image testing suggestion in /catalog/popup_image.php
Nelson Comas      <nelsonc@gepcom.com>       for incorporating the changes into the latest version of categories.php


Share and Enjoy
Brandon Sweet     <big_daddy@teamseperation.com>