Mod Name: Photo Album v1.82 for Snitz 3.4.xx
Version: v1.82
Tested on: 3.4.04 only should work with any 3.4.x forums though
Databases: Tested on MySQL v4.0.20a, MS Access, and MS-SQL 2000 should work with 7.0 as well though not tested with it.
OS Tested: Windows 2000/IIS5 Windows 2003
Creator Name: Wesley Brown
Contributors: Aecio Lemos, Lewis Moten, Mike Shaffer, David Roades(whether they know it or not)
Creator Email: Burthold@yahoo.com
Download at: www.wesworld.net/mods/default.asp
AS WITH ANY MOD, TEST IT BEFORE YOU GO LIVE WITH IT!
Install notes:
On Brinkser Servers you may need to add
on error goto 0 just before the last %> in each file where you are having problems.
Internet Guest Account IUSR_ must have full access to the forum directory and the directory where the photos are stored
Everyone must have read and execute list folder contents read and write to the forum directory and photo directory if you wish to use Nconvert.exe.
You must set write permissions in IIS for the folder where photos will be stored.
You must have FileSystemObject access for this mod to work.
There are three thumbnail options, image resize, using Ncovert.exe that is available on my website, and ASPJpeg if it is installed on the server.
Using Nconvert.exe:
You must have ASPExec installed on the web server.
You must copy Nconvert.exe to a folder that has execute permissions.
You must set the group Everyone to have read, execute, and list permissions on the folder it also must have read and write to the directory where the photos are stored.
Nconvert is part of xnview. This is a GPL'ed program and should be registered if used on sites that are commercial in nature. Support the authors of this fine product.
You will need the absolute path to the executable i.e. c:\thumbnailer\ you will need this to setup your photo album please see the configuration item under admin_album.asp.
With all the components and programs installed the photo album will generate thumbnails of the original picture about 1.2k in size and save the thumbnail as a Jpeg to save on space. If you don't use the nconvert.exe to make thumbnails the photo album gives you the option to turn thumbnail images on and off. If for some reason the thumbnail images don't get generated the album will use the resize option unless the display thumbnail option is turned off. If a valid thumbnail image is available it will use it regardless of the thumbnail option being turned on or off. The thumbnail on/off option is for those not using the thumbnail generator to save on bandwidth.
Upgrading from 1.80 photo album:
Copy the new album files into your forums directory. No database changes in this version release. DO NOT RUN THE UPDATER!
Upgrading from 1.50 photo album:
Copy the new album files into your forums directory. No database changes in this version release. DO NOT RUN THE UPDATER!
Installing for the first time:
Unzip all files into your snitz forum folder.
Insert this around line 568 in default.asp before these lines
if strShowStatistics = "1" then
WriteStatistics
'photo album insert into main page
%>
<%
'end insert
admin_home.asp around 135
insert this:
"
Photo Album Configuration" & vbNewLine & _
Before this line:
" Font/Table Color Code Configuration" & vbNewLine & _
Goto the Photo Album administrator page in the admin options. If you want the setup to make a directory then give it a directory name to create. If not, please create a directory on your web site or a virtual directory attached to your web site.
That's it folks the only two lines of code you have to insert into your forums. I got tired of seeing mods that required a ton of changes to your forum code and always broke when the next version of snitz would come along. Hopefully this add-on will not be that way.
Revision History
Major Changes from 1.80
No Database Changes DO NOT RUN THE UPDATE!
Added image preview for IE and some Netscape browsers
Bug Fixes
Visible not Visible bug fixed
Invalid characters fixed
User redirected on bad name fixed
thumbnail aspect ratio fixed
upload with firefox fixed
moved to V3 of the upload code
access db setup fixed
Fixed formatting errors for Firefox browsers
redirect on approval fixed
Major Changes from 1.50
NO Database changes DO NOT RUN THE UPDATE!
Complete layout redesign.
Added search features for users and for photos.
Added new administration options for users including deleting empty albums.
Small error trapping bugs fixed.
Added ASPJpeg support for generating thumbnails
Uses getcurrenticon to make it 3.4 compliant
To many other improvements to list.
Major Changes from 1.20
Paging for large albums, not all pictures are shown on one page
Single album mode. Now administrators can set the album in single mode. Categories are tied to the Admin account. IF THE Admin doesn't have an album SINGLE ALBUM MODE WILL NOT WORK!
Administrators can set the option to have a photo displayed in a pop-up window OR under the thumbnails
Administrators can allow users to pick a photo to displayed on the category page.
No duplicates in the database or on disk now.
More error messages! There is more error trapping if a file doesn't upload the album should tell you and give some reason.
Security added in the form of SQL Insertion protection. There are functions that filter illegal characters and illegal words.
Bug Fixes:
DB doesn't get a record if the file doesn't exist on disk.
Now handles spaces in user names.
Admin page honors secure admin mode properly now instead of erroring out.
Thumbnails for all file types now generated.
Limitations:
You cannot use show in pop up window feature and use tiff image types. The browser doesn't know how to handle the image type and will open up a download file dialog.
Major Changes from 1.00
Code base re-written using response writes.
All functions moved to a separate include to clean up code.
Tons of error checking for valid insert strings and setup/update error checking
Setup now run from the admin_album.asp
Administrators can have the setup create a folder as well as add all the tables
Administrators can now update tables from admin page
Administrators can now remove all tables and uploaded files from admin page.
Bug fixed: Users are now deleted from file system as well as the database when removed
Major Changes from v.05
Code base reduced to one set of files no more components and non components versions.
Accepts 5 file types, Gif, Jpeg, Tiff, Png, and Bmp.
Using nconvert.exe from xnview to generate thumbnails this keeps all code under the GPL.
Sub-categories added so users can have multiple albums.
Users can move photos one at a time using the edit photo.
Users can move whole sub-categories to other categories using the file upload page.
Pictures now displayed on same page as thumbnails/photo list.
Users have the option of making photos viewable or not without having to delete it from the album. This still counts towards your picture count stored though.
Administrators can turn on photo approval so photos are not viewable until approved.
Administrators can upload/delete/modify any photo album just as if it were the Administrator album.
Administrators can choose which file types to allow or disallow.
Administrators can limit the number of categories.
Administrators can now add users in bulk. The option will add all forum users not currently holding an album account. -- Original code written by Aecio Lemos.
If you have any questions just email me at burthold@yahoo.com.