Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Some problems with Photo Album
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

muzishun
Senior Member

United States
1079 Posts

Posted - 27 May 2006 :  09:16:03  Show Profile  Visit muzishun's Homepage
I haven't been able to find anything matching my problems when searching. It's nearly enough to make me look for another mod, but I'll see if anyone has had similar issues before I move on.

The first problem occurs when I try to go to the admin_album.asp page. I keep getting a script timeout error. I figured this was because of a bad Do...Loop somewhere, so I started commenting them out until I found the offending loop. It appears that it doesn't even serve a purpose. The following code creates two variables, but they are never written to the page. Are they from an older version of the mod and just didn't get removed?
			Set objRec = Server.CreateObject ("ADODB.Recordset")
			sqlstr = "SELECT " & strTablePrefix & "M.M_NAME, " & strTablePrefix & "M.MEMBER_ID," & strTablePrefix & "ALBUM_USERS.MEMBER_ID AS nullchk FROM " & strTablePrefix & "MEMBERS M"&_
					"LEFT JOIN " & strTablePrefix & "ALBUM_USERS ON " & strTablePrefix & "M.MEMBER_ID = " & strTablePrefix & "ALBUM_USERS.MEMBER_ID "&_
					"WHERE " & strTablePrefix & "ALBUM_USERS.MEMBER_ID IS NULL"
			member_select = "<select name=""adduser"">"

			objRec.Open sqlstr, My_Conn
			'Do While not objRec.EOF
				member_select = member_select & "<option value=""" & objRec.fields("MEMBER_ID") & """>" & objRec.fields("M_NAME") & "</option>"
				objRec.MoveNext
			'loop
			objRec.close
			member_select = member_select & "</select>"

			delete_select = "<select name=""deleteuser"">"
			sqlstr = "SELECT * FROM " & strTablePrefix & "ALBUM_USERS"
			objRec.Open sqlstr, My_Conn
			Do While not objRec.EOF
				delete_select = delete_select & "<option value=""" & objRec.fields("MEMBER_ID") & """>" & objRec.fields("M_NAME") & "</option>"
				objRec.MoveNext
			loop
			objRec.close
			delete_select = delete_select & "</select>"
			set objRec = nothing

Next, I uploaded an image into my main gallery (I'm the only user), and when I click that gallery, I get an error that there are no images in it! I haven't had the energy or motivation this morning to go through another file and try to figure out what in the world is going on, so I thought I'd see if anyone has had similar issues.

What alternatives can people suggest for the Photo Album mod if this doesn't work out?

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)

modifichicci
Average Member

Italy
787 Posts

Posted - 27 May 2006 :  16:08:24  Show Profile  Visit modifichicci's Homepage
What db are you using?

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 27 May 2006 :  21:36:12  Show Profile  Visit muzishun's Homepage
mySQL

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 28 May 2006 :  04:14:54  Show Profile  Visit modifichicci's Homepage
Check if in the other files of the mod the table are called in lower case, if mysql is on Unix server it is case sensitive and I have had problems with tables called in lower case instead of upper case.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 28 May 2006 :  17:34:00  Show Profile  Visit muzishun's Homepage
Well, I took care of a bunch of those, but the problems seemed to continue. I've decided to scrap this MOD and write one specific to my needs a little later down the road. Reading the past threads, it seems that the MOD was originally written for Access and has been converted to work with MySQL. Ah well.

I'd definitely consider using it on an Access DB, though.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07