Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Integration with member database issue
Integration with member database issue
Last post 11-10-2008, 7:19 AM by
berr08
. 5 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
11-06-2008, 2:06 PM
45478
berr08
Joined on 06-30-2006
Posts 11
Integration with member database issue
Reply
Quote
Everything went really smoothly, the only issue is when I try to go to the admin area to add chat rooms etc I get an error (see below for screen shot)
I get this error when I am logged in as an admin (on my database)...I have attached my class that overrides the functions.
/forum_uploads2/Chat.zip
Any help would be great :)
Filed under:
error
,
Cute Chat
,
source code
,
authentication
11-06-2008, 8:29 PM
45489
in reply to
45478
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Integration with member database issue
Reply
Quote
Hi,
Public Overrides Function GetUserInfo(ByVal loginName As String, ByRef nickName As String, ByRef isAdmin As Boolean) As Boolean if HTTPContext.Current.Session("zuid") <> "" then return true nickName = loginName If HTTPContext.Current.Session("zUserType") = "1" Then isAdmin = True Else isAdmin = False End If else return false end if 'return false , if the loginName is invalid. 'otherwise set the nickName and isAdmin , and return ture End Function
Please do not use HttpContext.Current in the GetUserInfo function.
Try to use parameter loginName , and return the user information.
Regards,
Terry
11-07-2008, 8:02 AM
45508
in reply to
45489
berr08
Joined on 06-30-2006
Posts 11
Re: Integration with member database issue
Reply
Quote
Changed it to this, still having the error:
Public Overrides Function GetUserInfo(ByVal loginName As String, ByRef nickName As String, ByRef isAdmin As Boolean) As Boolean if loginName <> "" then return true isAdmin = True else return false end if 'return false , if the loginName is invalid. 'otherwise set the nickName and isAdmin , and return ture End Function
Basically if logged in at all I am setting as admin, but to no avail.
11-07-2008, 10:49 AM
45511
in reply to
45508
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Integration with member database issue
Reply
Quote
Hi,
Please change to :
if loginName <> "" then
nickName=loginName
isAdmin = True
return true
else
Regards,
Terry
11-07-2008, 11:03 AM
45513
in reply to
45511
berr08
Joined on 06-30-2006
Posts 11
Re: Integration with member database issue
Reply
Quote
Wow my fault how stupid of me! One last question...got into the admin and I see I can add moderators to the room, how do I make this part work, is there another override that checks if the member is a moderator?
Any help as always is appreciated.
11-10-2008, 7:19 AM
45559
in reply to
45513
berr08
Joined on 06-30-2006
Posts 11
Re: Integration with member database issue
Reply
Quote
Any update on this?