rejetto forum

HFS + 123flashchat

fr3ak · 10 · 7819

0 Members and 1 Guest are viewing this topic.

Offline fr3ak

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
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.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.


Offline fr3ak

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
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...  :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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%


Offline fr3ak

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
I've already tried it. but its not getting the username. just blank


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
are you putting the code in a file or in the template?


Offline fr3ak

  • Occasional poster
  • *
    • Posts: 8
    • View Profile
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.  ???


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
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.
maverick


Offline fr3ak

  • Occasional poster
  • *
    • Posts: 8
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i think you can get the password by using some javascript