如何在Custom Arrowchat中显示朋友列表

时间:2015-01-09 05:53:01

标签: php chat

我正在整合箭头聊天试用版。这对客人聊天很好。但我的要求是仅在我的朋友中聊天。

然后在integration.php文件中要进行哪些类型的更改?根据文档设置Config.php。但是通知出现"您必须注册或登录才能使用聊天" 。页眉和页脚脚本和css文件已设置。

我正在使用test.php页面进行测试,并为userid设置会话。但integration.php未被调用。所以我需要将此页面添加到我的test.php页面,然后我如何解决问题?

test.php的

<?php session_start();
include_once "includes/integration.php";
$_SESSION['userid']='';

?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="lolkittens" />

 <title>test</title>
 <link type="text/css" rel="stylesheet" id="arrowchat_css" media="all"    href="/development/newchat/external.php?type=css" charset="utf-8" />
 <script type="text/javascript" src="/development/newchat/includes/js/jquery.js"></script>
 <script type="text/javascript" src="/development/newchat/includes/js/jquery-ui.js"></script>
 </head>
 <body>

<form action="" method="post">
<input name="userid" type="text">
<input type="submit" value="submit" name="submit">
</form>
<?php 
if(isset($_POST['submit']))
{

 $_SESSION['userid']=$_POST['userid']; 
 $return=get_user_id();
 get_online_list($return,time());

 }

 ?>

 <script type="text/javascript" src="/development/newchat/external.php?type=djs" charset="utf-8">   </script>
 <script type="text/javascript" src="/development/newchat/external.php?type=js" charset="utf-8"></script>
 </body>
 </html>

0 个答案:

没有答案