Welcome to WebmasterWorld Guest from 54.167.155.147

Forum Moderators: phranque

Message Too Old, No Replies

Password management for both chat and forums

   
11:05 am on Jan 5, 2002 (gmt 0)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Is there a way to have password management for forums on a site that would also be applicable to chat so both could be administered without duplicate effort?
2:36 pm on Jan 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If memory serves, there have been other requests for this kind of setup, but no results. At any rate I'll bump the post and we'll hope for suggestions. Anyone??
2:56 pm on Jan 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What type of chat ? Applet ?

If so, just put the code that calls the applet in one of the forums that are password protected.

10:05 am on Jan 13, 2002 (gmt 0)

10+ Year Member



Example:
1. User submits username/password
2. You check for existence (in database, or wherever you are storing data.)
3. You check to see if the password matches the username.
a) Accept login.
b) Reject Login.

IF ($login == "accepted")
{
IF ($selection == "chat")
{
LOAD CHAT APPLET
}

ELSE IF ($selection == "forums")
{
LOAD FORUM SCRIPTS
}
}

ELSE
{
DISPLAY LOGIN ERROR
}

I hope this helped you out in some way. If you are using PHP, you may want to use the session functions which are built-in to the intrepreter. This will make your life a lot easier when passing data between the forums/chat.

Justin Dalrymple snipped

(edited by: DaveAtIFG at 10:18 pm (utc) on Jan. 13, 2002)