Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2006, 03:26 PM
Junior Member
 
Join Date: Dec 2006
Posts: 5
Default Help with code...

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>
into 123flashchat.php
so the registered member or in default a guest could log in.
  #2 (permalink)  
Old 12-07-2006, 01:39 AM
Member
 
Join Date: Nov 2005
Posts: 69
Default Re:Help with code...

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]
  #3 (permalink)  
Old 01-18-2007, 03:30 PM
Member
 
Join Date: Feb 2006
Posts: 63
Default Re:Help with code...

huh?
  #4 (permalink)  
Old 02-16-2007, 05:54 AM
Member
 
Join Date: Nov 2005
Posts: 69
Default Re:Help with code...

Please check this pacakge for the sample codes of displaying room list :

http://www.123flashchat.com/download...php_sample.zip
Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.