Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Photo Album for snitz 3.4.x version 1.82

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
burthold 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
15   L A T E S T    R E P L I E S    (Newest First)
Etymon Posted - 08 June 2009 : 15:05:38
To see if it will work, change inc_top.asp to inc_header.asp.

The file inc_functions.asp is now called inc_func_common.asp. The base code you are using should already include inc_func_common.asp in the inc_header.asp file.
baabaashep Posted - 08 June 2009 : 14:40:05
Sitting here going through old posts I don't seem to be able to find an answer so here goes:
I am not an asp coder so please go gently with me.

I am using V 34_07 for Burts photo mod. I select: Admin>PHOTO ALBUM CONFIG

and get this error:

Active Server Pages error 'ASP 0126'
Include file not found
/forum/admin_album.asp, line 2
The include file 'inc_functions.asp' was not found.
Here are lines 1-12 in the admin_album.asp file:

<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE file="inc_functions.asp" -->
<!--#include file="inc_photo_album_functions.asp"-->
<!--#INCLUDE file="inc_top.asp" -->
<%
'Snitz 3.4 includes
'<!--#INCLUDE FILE="config.asp" -->
'<!--#INCLUDE FILE="inc_sha256.asp"-->
'<!--#INCLUDE FILE="inc_header.asp" -->
'<!--#INCLUDE FILE="inc_func_admin.asp" -->
'<!--#include file="inc_photo_album_functions.asp"-->

I dont have the following files in my forum at all
inc_functions.asp
inc_top.asp

Can I assume the first 4 lines are for an older release of the forum that I don't need ?
Can I delete them?

Thanks
Pete

keng38 Posted - 04 September 2008 : 09:02:39
I managed to sort it, an include file was missing.<
Carefree Posted - 15 August 2008 : 17:15:34
The program works as intended. I clicked on the thumbnail and got a full size photo.<
Carefree Posted - 15 August 2008 : 17:13:20
%20 is html for a blank space. If your picture file name doesn't use underlines or something similar to fill blanks, you need to use %20 to represent them.<
keng38 Posted - 15 August 2008 : 09:23:04
I used to have this mod working and then one day it stopped?
I have reloaded everything back into Snitz and all looks ok but when the photo is uploaded it only creates a thumbnail image and then shows that but not the main image.

http://www.bacupbanter.co.uk/forum/photo_album_view.asp?cname=Main+Album&mid=2&cid=3&page=1&pic=TESTER.JPG

When I troubleshoot through admin I have noticed there are alot of %20%20%20's in with the properties of the image?
When I look in the folder that should be holding the image there is nothing there (Just the pic in the TN folder)

Any suggestions?<
JJenson Posted - 08 June 2007 : 17:43:52
make sure that you have filesystemobjects on your server and if you don't you need to go find the file cls_upload.asp or something like that and on line 8 set it to false I believe.<
jeeper Posted - 08 June 2007 : 17:29:52
quote:
Originally posted by modifichicci

Check if in photo_album_setup you have
Create table " & strTablePrefix & "ALBUM (Photo_id int NOT NULL IDENTITY(1,1),.....

and

Create table " & strTablePrefix & "ALBUM_CAT (Photo_Cat_Id int NOT NULL IDENTITY(1,1),...

both for mssql and access

if so yu need to change to

Create table " & strMemberTablePrefix & "ALBUM_CAT (Photo_Cat_Id COUNTER NOT NULL,...

and

Create table " & strMemberTablePrefix & "ALBUM (Photo_id COUNTER NOT NULL, ..

for access.



That fixed the database errors, thanks.
Troubleshoot still shows the same:

exact path to file: /forum/photo_album
Write to file failed.No Errors detected, If you are still haveing problems please send me an email to Wesley Brown
File has been saved in file system.

The file I uploaded won't display and the pathname is: http://www.azbackcountry.com/forum/photo_album%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/4wheel.jpg
---
but hell it works now.. thanks..<
JJenson Posted - 08 June 2007 : 15:10:18
jeeper I just want to clarify the problem you are having. When you upload it says it uploaded correctly but the photo does not actually upload. With this is adds alot of %20 for spaces and so forth. Is this what the problem is? If so I had this problem and responded in one of the threads probably one I started on how to fix this or at least how I got it to work.

If you have a link to see it that would be great.

<
weeweeslap Posted - 08 June 2007 : 13:47:22
arg, well I had figured out a way to load up the photo album admin pages nice and fast, I had changed the code, somehow, to only display members with posts greater than 1. Now my files mysteriously disappeared and have the slow loading problem again with the original unmodded mod files. I thought I had documented in this topic how to speed it up but I guess I didn't. Anyone with this info can perhaps display modified code so rather than display all members it displays all
FORUM_MEMBERS where M_POSTS > 1
> - greater than right>? I don't remmeber how I did it nor any of my saved files seem to have the change but I had done that and it made my loading much faster. Thanks.<
modifichicci Posted - 08 June 2007 : 12:29:55
Check if in photo_album_setup you have
Create table " & strTablePrefix & "ALBUM (Photo_id int NOT NULL IDENTITY(1,1),.....

and

Create table " & strTablePrefix & "ALBUM_CAT (Photo_Cat_Id int NOT NULL IDENTITY(1,1),...

both for mssql and access

if so yu need to change to

Create table " & strMemberTablePrefix & "ALBUM_CAT (Photo_Cat_Id COUNTER NOT NULL,...

and

Create table " & strMemberTablePrefix & "ALBUM (Photo_id COUNTER NOT NULL, ..

for access.<
jeeper Posted - 08 June 2007 : 11:59:50
quote:
Originally posted by JJenson

There is no dbs script for this mod it is built right into the mod so you just install it like it says in the readme.



I believe mines failing to create the database tables. does anyone have the dbs code so I can try it with alternative mod setup?

Error: There was an error [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.

Mine hangs when you try to upload and the tester shows all those %20 in the filename. I've seen no resolution to these issues in this topic. Anyone have any ideas?

<
JJenson Posted - 05 June 2007 : 09:28:47
There is no dbs script for this mod it is built right into the mod so you just install it like it says in the readme. <
JJenson Posted - 10 January 2007 : 14:31:09
Get the addon at snitz bitz it allows you to show mow many photos you want to show on the front page. It always shows the most recently updated one.

get it here:
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=45

scroll down and you will find the add on you want.
<
endomorph Posted - 10 January 2007 : 14:24:34
Does anybody know of, or could knock up a MOD/short piece of code to display the last photo uploaded and also link to it ?

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07