Thread: Question
View Single Post
  #3 (permalink)  
Old 09-09-2004, 12:44 PM
Chimera Chimera is offline
Junior Member
 
Join Date: Sep 2004
Posts: 1
Default Re:Question

This feature does exist in V2.1, and works very well for me. Here's what I did :

Created a link on my forum that points to the page containing the SWF, and includes the MD5 username and password as parameters for example :

http://www.somewhere.com/chat.php?us...43g243jhg24243

On that page I embedded the SWF using the following parameters :
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...ve/cabs/flash/
swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="85%">
 <PARAM NAME=movie VALUE="123flashchat.swf?init_user=<?= $_GET['user']; ?>&init_password=<?= $_GET['pass']; ?>">
 <PARAM NAME=quality VALUE="high">
 <PARAM NAME="menu" value="false">
 <EMBED src="123flashchat.swf?init_user=$_GET['user']; ?>&init_password=<?= $_GET['pass']; ?>" quality=high menu=false WIDTH="100%" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" scale="noscale"></EMBED>
</OBJECT>
Note the init_user and init_password variables which are being grabbed from the $_GET superglobal in PHP.

Then, in my fcserver.xml file, I set the follow parameter :

Code:
<integrated-other-database>URL</integrated-other-database>
and this one too

Read the fcserver.xml file for how this URL should be formatted, the way the &amp; is done is VERY important.

The script "authenticate.php" is your own script that will take the MD5 username and password you originally sent, and needs to be written to authenticate with your database and output a return code. These codes are documented in the fcserver.xml file, but it's basically 0 for successful, 1 for wrong password etc.

It took me a couple of hours to get this working right, but now that it works the integration with my UBBThreads implementation is seamless.

Hope this helps

Chimera
Reply With Quote