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
 Email validation - pop_profile error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 17 July 2002 :  14:01:32  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
I have installed the email validation mod and it is working for new members. However, when I click on a members name, I get the following error

quote:

Microsoft JET Database Engine error '80040e14'
Syntax error (missing operator) in query expression 'MEMBER_ID='.
/forum/pop_profile.asp, line 161



I've looked in my profile.asp and it is different from the one that comes with the mod, this is where it is different.

quote:

strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE MEMBER_ID=" & ppMember_ID

set rs = my_Conn.Execute(strSql)

if rs.BOF or rs.EOF then
Err_Msg = "Invalid Member ID!"

Response.Write " <table width=""100%"" border=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <img src=""" & strImageUrl & "icon_folder_open.gif"" height=""15"" width=""15"" border=""0""> <a href=""default.asp"">All Forums</a><br>" & vbNewLine & _
" <img src=""" & strImageUrl & "icon_bar.gif"" height=""15"" width=""15"" border=""0""><img src=""" & strImageUrl & "icon_folder_open_topic.gif"" height=""15"" width=""15"" border=""0""> Member's Profile</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""red"">There Was A Problem!</font></p>" & vbNewLine & _
" <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""red"">" & Err_Msg & "</font></p>" & vbNewLine & _
" <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:history.go(-1)"">Back to Forum</a></font></p>" & vbNewLine & _
" <br>" & vbNewLine
if not(strUseExtendedProfile) then
WriteFooterShort
Response.End
else
WriteFooter
Response.End
end if
else

strMyHobbies = rs("M_HOBBIES")



The file that comes with the mod has this code

quote:

strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE MEMBER_ID=" & ChkString(Request.QueryString("id"), "SQLString")

set rs = my_Conn.Execute(strSql)

strMyHobbies = rs("M_HOBBIES")



I would like to know what the correct code should be here.

and while I'm on the subject of editing files, is there a program for MODifying files that is better than wordpad/notepad?

Martin
Hugging the Pink

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 July 2002 :  16:00:56  Show Profile
Post a link to a txt version of your pop_profile.asp file.

Do you have any other mods installed?

«------------------------------------------------------»
What new features are going to be in the 3.4
version? See the 3.4 UnOfficial Features List !
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 17 July 2002 :  17:18:59  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
http://www.leylandtown.info/sn/pop_profile.txt

The only other mod I have installed is a scroll bar colour mod



Martin
Hugging the Pink
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 July 2002 :  18:26:35  Show Profile
Well, the ppMemberID is being used all over that file but it is not set in that file, but in another file. If you don't know of any mod that you installed that uses this variable ppMemberID then I guess you might have overwrite your files with a file from a mod and that variable is some code snippets that the mod author left in there.

Did you edit or overwrite your pop_profile.asp file to install any mods?

«------------------------------------------------------»
What new features are going to be in the 3.4
version? See the 3.4 UnOfficial Features List !
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 18 July 2002 :  02:32:26  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
quote:
Did you edit or overwrite your pop_profile.asp file to install any mods?



If I'm reading this right, you are saying that 'ppMemberID' shouldn't be in the file. It's in the original file that I downloaded from Snitz.



Martin
Hugging the Pink
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 July 2002 :  12:21:08  Show Profile
That cannot be. Not unless you downloaded it anywhere else other than here: http://forum.snitz.com/download.asp

I have a copy of the Snitz Forums latest version and that is not in the file for sure. And it's not used anywhere else in the Forum code. So it has to have been added by a mod or somewhere else.

If you haven't touched that file for it to have included that variable, then you can just overwrite your pop_profile.asp file with the one from the Email Validation mod.

«------------------------------------------------------»
What new features are going to be in the 3.4
version? See the 3.4 UnOfficial Features List !
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 18 July 2002 :  13:46:15  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
OK I'll try the one supplied with the MOD... I'll investigate where that file came from. I'm certain it came from this forum.



Martin
Hugging the Pink
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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07