|
|||
|
I've integrated SMF with 123flashchat...but how do I use or modify the 123flashchat.php to be able to show the rooms and have the users be able to click on the rooms to instantly log into that room.
And or a guest user to do the same?? ??? For instance, I can use ~/includes/function_chat.php to show the rooms and the users in the rooms but I need to some how incorporate: Code:
$basedurl = $chat_client_root_path. $swf_file_name . "?init_root=". $chat_client_root_path;
$swfurl = (empty($HTTP_POST_VARS['swfurl'])) ? $basedurl : $HTTP_POST_VARS['swfurl'];
if (!empty($HTTP_GET_VARS['room_id']))
{
list($usec, $sec) = explode(' ', microtime());
$seed = (float) $sec + ((float) $usec * 100000);
srand($seed);
$randval = rand();
$username = "Guest" . $randval%10000;
$swfurl = $basedurl . "&init_room=".$HTTP_GET_VARS['room_id']."&init_user=".$username."&init_password=";
}
?>
<html>
<head>
<title>Cyber Chat</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/fla
sh/
swflash.cab#version=6,0,19,0" WIDTH="100%" HEIGHT="100%">
<PARAM NAME=movie VALUE="<?=$swfurl?>">
<PARAM NAME=quality VALUE="high">
<PARAM NAME="menu" value="false">
<param name=scale value=noscale>
<EMBED src="<?=$swfurl?>" quality=high menu=false WIDTH="100%" HEIGHT="100%" TYPE="application/x-shockwave-flash" PLUGINSPAGE=
"http://www.macromedia.com/go/getflashplayer" scale="noscale"></EMBED>
</OBJECT></td>
</tr>
</table>
<div align="center"><font face="Verdana, Helvetica, sans-serif" size="1">Powerd by <a href="http://www.yourdomain.com">Cyber C
hat</a></font></div>
</body>
</html>
so the registered member or in default a guest could log in. |
|
|||
|
The 123flashchat.php is the file used for embedding the chatroom inside and for autologining users. you can config the codes inside to make users autologin a certain room by using server api : init_room
you can make the room list in other page you mentioned [function_chat.php , this files is not included in integration package for SMF ] and make the room list there to be a link to 123flashchat.php [pass the room id to init_room] |
|
|||
|
Please check this pacakge for the sample codes of displaying room list :
http://www.123flashchat.com/download...php_sample.zip |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|