Search found 89 matches

by gg
16 Mar 2013, 18:35
Forum: SmartFoxBits for SFS 2X
Topic: please help a beginner with bits
Replies: 10
Views: 8589

Re: play button and Chat question

What bits example are you referring to? Thanks http://bits.smartfoxserver.com/docs/as3Flash_SFS2X/html/com_smartfoxserver_smartfoxbits_bits_UserList.html#labelFunction Where does this code go, did I even put it in the right location (in Tris.as ?), onLogin method? Most likely not, since nothing is ...
by gg
16 Mar 2013, 18:15
Forum: SmartFoxBits for SFS 2X
Topic: please help a beginner with bits
Replies: 10
Views: 8589

Re: play button and Chat question

Thanks, I do use sfs2x. Why is the bits example using user.getName() ? Now I don't get an error but I don't get my modified message either. I still don't think I'm using bits the right way. This is my onLogin function in the Tris.as file in Flash Builder (using the Tris example). I modified it to sa...
by gg
15 Mar 2013, 20:11
Forum: SmartFoxBits for SFS 2X
Topic: please help a beginner with bits
Replies: 10
Views: 8589

Re: play button and Chat question

Hi, I must be missing something I'm trying to use the labelFunction so I can display the rating of the user. It needs to go to the database to retrieve it. Am I on the right path? I'm following this example: http://bits.smartfoxserver.com/docs/as3Flash_SFS2X/html/com_smartfoxserver_smartfoxbits_bits...
by gg
12 Mar 2013, 18:43
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Can't you configure SFS2X to connect to wordpress' database? That way you wouldn't need to access the login page, the extension could have direct access to it and execute the necessary query. I did initially configure it to connect to the wordpress database, and I used the database recipe example (...
by gg
12 Mar 2013, 17:57
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Hello, Please check the Official SmartFoxBits 2X documentation at http://bits.smartfoxserver.com/docs/as3Flash_SFS2X/html/, specially the LoginBox section. On the Usage section (before the summary), you can find that you can override the default behaviour of the LoginBox by listening to the BitEven...
by gg
12 Mar 2013, 17:00
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

I believe i can't do that client side since i don't have the source code for the login box(sfs bits takes care of that) - can someone confirm this is true?

Now, on the server, what do i need to do?how do i access that php encryption function in Java?
by gg
12 Mar 2013, 16:54
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Hello, Using cookies isn't much secure, as a malicious client could simply use a hand-made cookie to SFS, tricking the extension. Can you get access to the method used on the encryption of the passwords by Wordpress? If you could, then you would simply need to mimic that on the client-side and the ...
by gg
12 Mar 2013, 16:43
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Yes, but i don't know how. Did no one really do what I'm trying to do before (use the wordpress login, or another encrypted login with sfs2x?) does everyone really store their passwords in plain text like sfs2x is configured to use out of the box, as shown in the database recipe example?
by gg
12 Mar 2013, 16:07
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Let's forget about the database and try something else... I'll have my users login through wordpress. Can I grab the wordpress cookie and authenticate the user, or is the only way I can authenticate the user through a direct database connection? If I can authenticate the user by grabbing the usernam...
by gg
12 Mar 2013, 14:02
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

I get the idea behind it, but I don't know how to put it in practice in Java&AS3. I'm not looking for someone to do it for me, but a little sample code wouldn't hurt
by gg
11 Mar 2013, 21:03
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

I'd like to comment that in my app, I got around the clear-text passwords in the DB by hashing the passwords before putting them in the DB, and also hashing the passwords client-side (before being sent over the wire to SFS). It complicates matters slightly, but I cringe at cleartext password DB's :...
by gg
11 Mar 2013, 20:40
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Can i please have your source code, multiplayercoder? my login is taken care of the LoginBox control. in LoginPanel.mxml. (It's a Flash project). How do I access the password? Do I need the smartfox bits source code? <sfb:LoginBox autoHide="false" buttonText="Login" formLayout=&q...
by gg
11 Mar 2013, 16:54
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Clarification: I am looking for example code, not a lesson on encryption. I saw plenty of other topics with similar problem to mine (for example :http://www.smartfoxserver.com/forums/viewtopic.php?f=18&t=11199&p=63857&hilit=encrypt#p63857 ) I also saw Lapo's advice in another topic, he s...
by gg
11 Mar 2013, 15:40
Forum: SFS2X Questions
Topic: SmartFox, password and encoding
Replies: 40
Views: 16516

Re: SmartFox, password and encoding

Instead of creating a new topic I am adding to this one. I am using Wordpress to take care of my user registration process. When the user registers, Wordpress encrypts the passwords in my mysql database. Now, here is the difference from the example code. In the example code, it queries the database ...
by gg
20 Feb 2013, 23:24
Forum: SmartFoxBits for SFS 2X
Topic: please help a beginner with bits
Replies: 10
Views: 8589

please help a beginner with bits

Hi, I am new to Bits. Could I get code examples on how to do the following? If you point me to the API, please give me a direct link to where the code example is as I am really bad with finding it myself. 1) If the room already has 2 players in it, and a 3rd player clicks on it, is there a way to di...

Go to advanced search