How do I add a registration form?

642 views
Skip to first unread message

Cameron Kilgore

unread,
Jun 4, 2013, 9:49:27 PM6/4/13
to ajax...@googlegroups.com
Hey AJAXChat team,

I really need help with this.

I want people to be able to register accounts and have them automatically added onto the users.php file.

I have searched online, so far I haven't found anything relevant to what I am looking for.

Also, how do I make it remember a nickname?

Kevin Ingwersen

unread,
Jun 5, 2013, 5:14:34 PM6/5/13
to ajax...@googlegroups.com
You have the following options:
1, easiest: use a forum + the integrated version of the chat
2, semi-easy: convert the file into a serialized/json string and writewrite CustomAJAXChat's getAllUsers and getUser function - especially the first though. Add a registration page to interact with the file.
3, dirtiest: abandon the ?> at the end of users.php, abandon the manual ID's in the users.php file and turn it just into one array instead of multiple-line arrays. Then just use file_put_contents to add to the file.
4. neardy: code a DB interface to communicate to a DB and fetch users off there and jsut make a site to write into the db..

Regards, Ingwie.
--
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Carl

unread,
Jul 27, 2013, 2:57:22 AM7/27/13
to ajax...@googlegroups.com
Hello

Install this version of AJAX Chat (https://github.com/123Haynes/enhanced-Ajax-Chat)

Registration form is included.

Regards
Message has been deleted

Upul S. Sudasinghe

unread,
Jul 27, 2013, 1:43:33 PM7/27/13
to ajax...@googlegroups.com
Hi all,

I'm having below message with saying "Success" after registration.

Notice: Undefined variable: errors in E:\xampp\htdocs\siyarata\chat1\register.php on line 27


Success!

You have successfully registered. You can log in with your entered data now.
Click Hereto access the login.


Please tell me what should I do to solve this since I'm not expert in php :)

Kevin Ingwersen

unread,
Jul 27, 2013, 2:08:50 PM7/27/13
to ajax...@googlegroups.com
The coder of this needs to check that.

@TheCoder: the line should be
if(isset($errors) && is_array($errors))

Wise Frog

unread,
Aug 7, 2013, 1:43:30 PM8/7/13
to ajax...@googlegroups.com


ty an ? how to i edit the word filter or get rid of it every time i type a word with the letters ass in it, be it a swear word or not it do this ***
 

frog

ClubSyNXTremeTV

unread,
Aug 8, 2013, 12:31:21 PM8/8/13
to ajax...@googlegroups.com
I just released a Mod for this that don't require a new chat installation.

https://groups.google.com/forum/#!topic/ajax-chat/qy4RAIpGtWI

Just thought I'd share this.

Upul S. Sudasinghe

unread,
Aug 15, 2013, 2:15:31 PM8/15/13
to ajax...@googlegroups.com, ingwi...@googlemail.com
Yes Kevin. Your point noted and the problem was solved. Tks..!
Reply all
Reply to author
Forward
0 new messages