I've made the chat folder outside of the forum folder and have been able to connect the forum SSI.php to the chat. If I'm registered in the forum then it automatically logs me into the chat with the same username as the forum username, great. But what do I do to stop guests from joining the chat. Basically I need to ban all except forum members, how do I do that?
ah ok!thax! but can you explain me,step by step,what should I do?I have smf installed, and I downloaded phpfreechat,and now?which files should I modifie?in which folders?
I installed smf in the principal folder, so that if you digit: www.mysite.com, you directly go to the smf! the chat in in the foder chat, and to go there you must digit www.mysite.com/chat/
$params["container_type"] = "mysql"; $params["container_cfg_mysql_host"] = "localhost"; // default value is "localhost" $params["container_cfg_mysql_port"] = 3306; // default value is 3306 $params["container_cfg_mysql_database"] = "your_database"; // default value is "phpfreechat" $params["container_cfg_mysql_table"] = "chat"; // default value is "phpfreechat" $params["container_cfg_mysql_username"] = "your_db_user"; // default value is "root" $params["container_cfg_mysql_password"] = "your_db_password"; // default value is ""
<body> <?php if ($user_info['is_guest']) { // Not registered user } else { $chat->printChat(); } ?> </body> </html>
Type properly values:
$params["container_cfg_mysql_database"] = "your_database"; // default value is "phpfreechat" $params["container_cfg_mysql_table"] = "chat"; // default value is "phpfreechat" $params["container_cfg_mysql_username"] = "your_db_user"; // default value is "root" $params["container_cfg_mysql_password"] = "your_db_password"; // default value is ""
Last edited by Kela on Sat Jan 26, 2008 11:29 am, edited 1 time in total.
can I ask another question?? when I write something in the chat, it remains written,and visible,even for the other users that will connect a lot of time after, even hours or days!how can I erase all the message list each time I disconnect, or every day, for example?
marcozecca Implementing your wishes is required to write a bit of code... It take a some my time. I could do it for you if you make some donation for me. If you really interested in it - contact me via e-mail or ICQ: 339079437.