rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: fr3ak on October 29, 2008, 12:31:57 AM

Title: HFS + 123flashchat
Post 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.
Title: Re: HFS + 123flashchat
Post by: rejetto on October 29, 2008, 09:37:10 AM
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.
Title: Re: HFS + 123flashchat
Post by: fr3ak on October 29, 2008, 03:11:14 PM
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...  :)
Title: Re: HFS + 123flashchat
Post by: rejetto on October 29, 2008, 04:23:44 PM
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%
Title: Re: HFS + 123flashchat
Post by: fr3ak on October 30, 2008, 05:12:09 AM
I've already tried it. but its not getting the username. just blank
Title: Re: HFS + 123flashchat
Post by: rejetto on October 30, 2008, 10:09:32 AM
are you putting the code in a file or in the template?
Title: Re: HFS + 123flashchat
Post by: fr3ak on October 31, 2008, 08:33:18 PM
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.  ???
Title: Re: HFS + 123flashchat
Post by: maverick on November 01, 2008, 12:19:42 AM
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.
Title: Re: HFS + 123flashchat
Post by: fr3ak on November 02, 2008, 03:16:06 AM
oh i see. thanks for the info.
Title: Re: HFS + 123flashchat
Post by: rejetto on November 02, 2008, 12:34:34 PM
i think you can get the password by using some javascript