a) Login a registered member: As we stated in the quickstart.html, 123 Flash Chat is inserted into your webpage with some html code. By adding parameters into the code, you can enable single sign-on. For example if username = myusername, password = mypassword, the code you should add into your html will be as follows: Sample code: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476"> <PARAM NAME=movie VALUE="123flashchat.swf?init_user=myusername&init_password=mypassword"> <PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false"> <EMBED src="123flashchat.swf?init_user=myusername&init_password=mypassword" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> In this way registered user is automatically logged as member into the chatroom. b) Single sign-on as a guest To single sign-on a guest without password, the code you may add into your html will be as follows: Sample code: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476"> <PARAM NAME=movie VALUE="123flashchat.swf?init_user=guest&init_password="> <PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false"> <EMBED src="123flashchat.swf?init_user=guest&init_password=" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> Just leave the password blank , users can then be automatically logged as guest into the chatroom. |