• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

newbe can one authentocate users / nicknames ?

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
2 posts • Page 1 of 1

Postby alsehendo34 » Tue Jun 24, 2008 8:38 am

Can you make this crazy thing authenticate users / nicknames ?
My goal is not to have the chat open to the world.

How do you login as admin?
Can you set up user accounts with passwords when you do ?
I installed via simple script--probably dumb idea.

My index.php so far with the changes I made:

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["isadmin"] = false; // just for debug ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params['admins'] = array('u_not_really_this' => 'p_not_really_this');
//$params["debug"] = true;
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<body>

<div class="header">
<h1>Chat Room Hockey Girl 21</h1>
<img alt="logo bulle" src="style/bulle.gif" class="logo2" />
</div>

<div class="content">
<?php $chat->printChat(); ?>
</div>

</body></html>
alsehendo34
New member
 
Posts: 3
Joined: Tue Jun 24, 2008 8:20 am
Top

Postby OldWolf » Wed Jun 25, 2008 4:30 am

Loging into usernames is not possible with the client alone, you'll have to add software to it. It's made pretty easy to do with the nick and frozen nick parameters.

Admin: http://www.phpfreechat.net/admin

There is no admin area of any kind, the chat file is where you customize the chat.

Let me know if you have other questions. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 21 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub