Original Author : Gat
Files : AddPictures.asp
UPDATE:
Author: Rolf Thomassen aka Mr.Spock 
Date: 5 jan 2006
Asp-Nuke Version: Use file:
------------------------ -----------------------
Supports AspNuke v1.2 addpictures.1.2.asp
Supports AspNuke v1.3 addpictures.1.3.asp
Supports AspNuke v1.4.00 addpictures.1.4.00.asp
Supports AspNuke v1.4SP1 addpictures.1.4.sp1.asp
Supports AspNuke v1.4SP2 addpictures.1.4.sp2.asp
Supports AspNuke v1.4SP3 addpictures.1.4.sp3.asp
-----------------------------------------------------------
This file fills automatically the main's database with pictures which are
in the "/imgs" folder (GLOBAL_SITE_IMAGES_PATH in the /includes/configuration-inc.asp, default value is /imgs/).
It creates automatically categories, using the name of the folder where pictures are.
For thumbnail, put pictures in a folder called "small" folder, and for normal pictures put them in a folder
called "normal", and both pictures must have exactly the same name.
-----------------------------------------------------------
For example, you got :
/imgs/My Green Pictures/small/VeryGreen1.gif
/imgs/My Green Pictures/normal/VeryGreen1.gif
/imgs/My Green Pictures/small/VeryGreen2.gif
/imgs/My Green Pictures/normal/VeryGreen2.gif
/imgs/My Green Pictures/small/VeryGreen3.gif
/imgs/My Green Pictures/normal/VeryGreen3.gif
/imgs/My Red Pictures/small/Red7.gif
/imgs/My Red Pictures/normal/Red7.gif
It creates 2 pictures' categories called "My Green Pictures" and "My Red Pictures" if they doesn't exist.
Then it add VeryGreen1.gif, VeryGreen2.gif, VeryGreen3.gif and Red7.gif in the second one.
-----------------------------------------------------------
In Asp-Nuke v1.4 SP3 (also SP2) I have added Full Size Picture, this is if you have
Images that are larger than normal 800x600 or there about then use the /full folder
and put thies images there.
For example, you got :
/imgs/My Green Pictures/small/VeryGreen3.gif
/imgs/My Green Pictures/normal/VeryGreen3.gif
/imgs/My Green Pictures/full/VeryGreen3.gif
/imgs/My Red Pictures/small/Red7.gif
/imgs/My Red Pictures/normal/Red7.gif
/imgs/My Red Pictures/full/Red7.gif
-----------------------------------------------------------
It doesn't add existing pictures (same path) or existing categories (same name as the folder). It uses the default version id.
-----------------------------------------------------------
Simply upload this file on your webserver, in the root directory of ASP-Nuke.
Go to : http://www.yourwebsite.com/AddPictures.asp (where www.yourwebsite.com is your ASP-Nuke's website's url)
-----------------------------------------------------------
Delete this file from your server after the operation !
|