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
 Zuels avatar mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 03 August 2008 :  06:21:36  Show Profile
I am getting this error,

Can anyone help me with it?

quote:
Current:
Max: 2
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.22-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sDownloads.gif' AND A_MEMBER_ID = 2' at line 1

/incAvatarFunctions.asp, line 492


<

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 03 August 2008 :  08:44:20  Show Profile
Educated guess: you don't have the path for the avatars configured correctly.<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 04 August 2008 :  01:28:38  Show Profile
Well its always worked before and nothing has been changed, anyone know what the path should be so I can check?<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 21 August 2008 :  18:07:08  Show Profile
I dont like to bunp my own posts, but can anyone help me with this?<
Go to Top of Page

Etymon
Advanced Member

United States
2396 Posts

Posted - 21 August 2008 :  18:44:59  Show Profile  Visit Etymon's Homepage
Are both the member id and the image still in the database?

Do this:

Add the following below this code:

strSql = strSql & "WHERE A_URL LIKE '%" & avatarFolderPath & privateFolderName & "/" & ThisAvatar & "' AND A_MEMBER_ID = " & ThisUser

Response.Write "<br>"
Response.Write "avatarFolderPath = " & avatarFolderPath & "<br>"
Response.Write "privateFolderName = " & privateFolderName & "<br>"
Response.Write "ThisAvatar = " & ThisAvatar & "<br>"
Response.Write "ThisUser = " & ThisUser & "<br>"
Response.Write "strSql = " & strSql & "<br>"
Response.End

The above will tell you what each variable's value is.

Below is the code you are working with, right?

	' =======================================================================
	' ===         Checks Current Avatar in DB for Current Record          ===
	' =======================================================================	
	Function isAvatarMatch(ThisAvatar, ThisUser)
		Dim strSql, rsGetMembersAvatar
		
		strSql = "SELECT A_URL "
		strSql = strSql & "FROM " & strTablePrefix & "AVATAR "
		strSql = strSql & "WHERE A_URL LIKE '%" & avatarFolderPath & privateFolderName & "/" & ThisAvatar & "' AND A_MEMBER_ID = " & ThisUser

		Set rsGetMembersAvatar = Server.CreateObject("ADODB.Recordset")

		'=== Open Database Connection ===
		rsGetMembersAvatar.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText
		
		'=== Check For A Record ===
		Select Case (rsGetMembersAvatar.EOF)
			Case True: isAvatarMatch = False
			Case Else: isAvatarMatch = True
		End Select
		
		'=== Clear Memory ===
		rsGetMembersAvatar.Close
		Set rsGetMembersAvatar = Nothing					
	Exit Function
	End Function
<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 23 August 2008 :  12:22:37  Show Profile
Thanks, I have done that, this is the error that is now showing

quote:
avatarFolderPath = avatars/
privateFolderName = Personal
ThisAvatar = !cid_1ED2D162E2C64155A10416D781E0EB87@KRYSIAPC.jpg
ThisUser = 2
strSql = SELECT A_URL FROM FORUM_AVATAR WHERE A_URL LIKE '%avatars/Personal/!cid_1ED2D162E2C64155A10416D781E0EB87@KRYSIAPC.jpg' AND A_MEMBER_ID = 2
<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 23 August 2008 :  12:23:54  Show Profile
Oh I have no idea what the avatar is, I have not got an avatar set up on my account.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 23 August 2008 :  14:09:57  Show Profile
The inclusion of the @ sign in the filename indicates a email address. Poor thing is probably confused.<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 23 August 2008 :  14:59:17  Show Profile
Yeah, I found the file via ftp, problem is, when I try to delete it, it says the file isn't there, so I deleted all of them, now its showing 4 files as above but slightly diferent, and even though there are showing in the folder when I try to delete them via ftp, it just says file(s) not found, this has got me totally stumped, anyone have any ideas?<
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.72 seconds. Powered By: Snitz Forums 2000 Version 3.4.07