Welcome to WebmasterWorld Guest from 54.205.140.252

Forum Moderators: phranque

Message Too Old, No Replies

Password management for both chat and forums

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

Senior Member

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

joined:Sept 29, 2000
posts:12095
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
posts:2141
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2001
posts:1609
votes: 0


What type of chat ? Applet ?

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

webworkz

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

Inactive Member
Account Expired

 
 


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)