rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: fr3ak on October 29, 2008, 12:31:57 AM
-
guy im wondering how i could get this to work. im running HFS with 123flashchat. what i would like is after logging in to HFS with username and password, it will also auto login to 123flashchat with the same username and password entered to HFS.
123flashchat can auto login with this code.
123flashchat.swf?init_user=myusername&init_password=mypassword
now i wonder how it could get the same username and password from HFS.
-
i can't dig into it, but i guess it will require you some javascript.
you can detect if a username has been used, and then insert the flash code with parameters inside a block.
-
thanks for the reply rejetto. its just a minor problem but id be glad if theres a workaround for this. thanks again for the HFS... :)
-
thinking twice, i was wrong. :)
i was talking about dhtml actually, and that's not needed.
anyway, you will need javascript if you have your flashchat in an html file.
but if you have it inside your template, than you can do it without javascript.
you can access the username by the symbol %user%.
123flashchat.swf?init_user=%user%
-
I've already tried it. but its not getting the username. just blank
-
are you putting the code in a file or in the template?
-
are you putting the code in a file or in the template?
im using it on the template.
here is the script
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="http://10.0.0.1:35555/123flashchat.swf?init_user=%user%&init_password=&init_room=1">
<PARAM NAME=quality VALUE="high">
<PARAM NAME="menu" value="false">
<EMBED src="http://10.0.0.1:35555/123flashchat.swf?init_user=%user%&init_password=&init_room=1" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
the %user% for the username accepts fine. but how about the password? i have tried %password% and %pass% but its not accepting. ???
-
I don't think there is a valid template symbol for password in HFS. I would think if there was it could be a security issue.
-
oh i see. thanks for the info.
-
i think you can get the password by using some javascript