Author |
Topic |
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 01:43:33
|
PLEASE POST ALL BUGS OR PROBLEMS IN THE MOD HELP FORUM! http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36636
UPDATE AGAIN! Update posted on my website.
http://www.wesworld.net/mods/
photoalbum182.zip
Please post all bugs and help questions in this thread.
Thanks, Wes
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 %> <!--#include file="inc_photo_album.asp"--> <% 'end insert
admin_home.asp around 135 insert this: " <LI><span class=""spnMessageText""><a href=""admin_album.asp"">Photo Album Configuration</a></span></LI>" & vbNewLine & _
Before this line: " <LI><span class=""spnMessageText""><a href=""admin_config_colors.asp"">Font/Table Color Code Configuration</a></span></LI>" & 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.PLEASE
POST ALL BUGS OR PROBLEMS IN THE MOD HELP FORUM! http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36636
|
Edited by - burthold on 18 December 2004 01:09:31 |
|
richfed
Average Member
United States
999 Posts |
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 22:45:49
|
I may not have time to convert it to 3.3.x as I may have a full time contract for the next month with real ugly deadlines and the like. I will post next week whether I can get it done quickly or not.
Thanks!
Wes< |
|
|
antracit
Starting Member
Sweden
33 Posts |
Posted - 11 October 2002 : 17:29:13
|
quote: Originally posted by burthold
I may not have time to convert it to 3.3.x as I may have a full time contract for the next month with real ugly deadlines and the like. I will post next week whether I can get it done quickly or not.
Thanks!
Wes
Take care < |
johan |
|
|
bbd786
Starting Member
24 Posts |
Posted - 13 October 2002 : 13:16:37
|
hi im dieing to get photo album on my forum but thing is i cant upload ur some files on my brinkster host coz filemanger give me error which is shown below Brinkster File Uploader
Finishing File Upload Process... Uploading File 1...admin_album.asp --> Scanning File ...Error : Improper use of 'on error resume next'. Please remove.
0 file(s) uploaded.
The improper use of 'on error resume next' was noted. Comment out the 'on error...' directive of the offending file and reupload it. but i have no idea what to do now can u plz explain ... < |
|
|
burthold
Junior Member
USA
426 Posts |
|
bbd786
Starting Member
24 Posts |
Posted - 13 October 2002 : 17:02:26
|
hi again if this doesnt work can u refer me any other idea to have photo album and link it to my forum plz tell me if u do i will appreciate..< |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 16 October 2002 : 14:19:20
|
Have you considered any more with voting and ratings? I was just going through some old MODs and found the member rating MOD by Big9erFan that could possibly be adapted to rate any pictures in the albums. I had considered linking this with the poll MOD, but didn't want the dependency on another MOD. The member rating MOD however could be adapted and included because it's a fairly simple MOD and picture rating is basically was it's original purpose. Btw, Azaniah had adapted this for topics also, so it's available as Topic Ratings MOD too. < |
Edited by - alex042 on 16 October 2002 15:34:07 |
|
|
AWD_ENVY
Junior Member
103 Posts |
Posted - 16 October 2002 : 14:44:49
|
It didn't work for me at first..... For some reason the code was adding extra spaces to the values in the database. Once I locked the database filed legnths down to what I needed, it worked wonderfuly.< |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 16 October 2002 : 18:28:56
|
AWD ENVY, all the spacing issues with file names and user names should be handled in 1.80 now. If you found a problem where they wern't please tell me where the issue was what page etc.
Alex, I have looked at adding voting and ratings to the album. It was disscussed and is on the wish list there are a few things above it though, Multiple file upload, dynamic file types allowed for upload and a few other features for the next version. After that voting and comments will probably make it into the album that would make it pretty much done. I can't imagine what else to put into it.
Wes< |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 18 October 2002 : 07:59:52
|
quote: I can't imagine what else to put into it.
How about photo linking in addition to upload? This way sites with limited space or for those who don't have FSO support can still have photo albums. Also, this would allow for increased album sizes without using up server space. I.E. Max 500k, Max 10 photos would allow for 10 50k photos or 1 500k photo and 9 links.
< |
|
|
al_iguana
Junior Member
138 Posts |
Posted - 18 October 2002 : 22:22:26
|
is there any way you i could stop people from downloading the big photo once it pops up? disable right-click and that Internet Explorer save/email popup?< |
----
Don't Dream It ~ Be It http://www.peppermintiguana.co.uk/cymrugothic/ |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 19 October 2002 : 12:08:34
|
I am working on disabling right click save on photos. The next version will put the photo in a new page with the feature there and also on the page if the photo is set to be displayed on the thumbnails page.
Wes< |
|
|
al_iguana
Junior Member
138 Posts |
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 09 November 2002 : 11:34:33
|
just got it installed, super easy.. thanks. I did find a couple of bugs, one being that when you select a photo to NOT be visible it will still show. I had to add a check in the sql statement for photo_status.
I also added a routine to show how many photos each album has in its directory although I am not quite sure I am doing it the best way (using FSO). I think I am going to consider a field in album members that can be updated every time a person uploads or deletes a photo, that way it will be quicker. right now using FSO I am not having any issues, but I don't have a lot of albums nor images uploaded yet. here is an example:
http://www.burningsoulsforum.com/forum/photo_album.asp
I'm not sure if I should continue using the FSO routine or a SQL routine
FSO Routine:
Dim filesys, demofolder, fil, filecoll, filist, photoCount photoCount = 0 Set filesys = CreateObject("Scripting.FileSystemObject") Set demofolder = filesys.GetFolder(Server.Mappath("/photoalbum/" & aData(1,i))) Set filecoll = demofolder.Files
For Each fil in filecoll photoCount = photoCount + 1 Next
Set filesys = Nothing Set demofolder = Nothing Set filecoll = Nothing
==================================
SQL Routine:
strPhotoCount = "SELECT count(*) as totals from " &strMemberTablePrefix & "Album where Photo_Status = 1 and Member_Id = "&cint(aData(0,i)) set intTotals = My_Conn.execute(strPhotoCount)
=================================
I would imagine the SQL routine would be much faster if there were a lot of photo albums and a lot of images.< |
|
Edited by - dayve on 09 November 2002 14:29:32 |
|
|
Mikael
Starting Member
36 Posts |
Posted - 09 November 2002 : 14:20:32
|
Dayve,
I mentioned the problem earlier about photos beeing visible and you have the solution, great!
Could you show me the sql statement and where I shall insert it?
Thanks/Rgds Mikael< |
|
|
Topic |
|