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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 BUG+FIX 33(.03) inc_top_short grabbing mem id
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  23:31:59  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
This function


function getMemberNumber(fUser_Name)
'## This function should always be the same as the one in inc_functions.asp !


'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & fUser_Name & "'"

Set rsGetMemberNumber = Server.CreateObject("ADODB.Recordset")
rsGetMemberNumber.open strSql, my_Conn

if rsGetMemberNumber.EOF or rsGetMemberNumber.BOF then
getMemberNumber = -1
rsGetMemberNumber.close
set rsGetMemberNumber = nothing
exit function
end if

getMemberNumber = rsGetMemberNumber("MEMBER_ID")

rsGetMemberNumber.close
set rsGetMemberNumber = nothing
end function


Does not work with the new bugfix in register.asp
Replacing it with the following


function getMemberNumber(fUser_Name)
'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & chkString(fUser_Name,"SQLString") & "'"

Set rsGetMemberNumber = Server.CreateObject("ADODB.Recordset")
rsGetMemberNumber.open strSql, my_Conn

if rsGetMemberNumber.EOF or rsGetMemberNumber.BOF then
getMemberNumber = -1
rsGetMemberNumber.close
set rsGetMemberNumber = nothing
exit function
end if

getMemberNumber = rsGetMemberNumber("MEMBER_ID")

rsGetMemberNumber.close
set rsGetMemberNumber = nothing
end function


Fixed for 3.4

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 November 2001 :  23:38:38  Show Profile
make sure to leave the following reminder in there:

'## This function should always be the same as the one in inc_functions.asp !
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  23:42:30  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I did, thats how I figured out what was wrong lol :)

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 11 November 2001 :  17:18:46  Show Profile
Stim, make sure you applied that. Couldn't find it on alpha package.

Think Pink
Test Site not ready yet | Post v40b03 Patches

Edited by - bozden on 11 November 2001 17:22:20
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 11 November 2001 :  17:37:56  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I didnt apply it - we decided not to because of the many complications throughout forum code that it would cause.

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07