how do other user register ?

632 views
Skip to first unread message

Boom Panes

unread,
Aug 2, 2015, 12:39:00 AM8/2/15
to AJAX-chat
how do other user register ?

Fabian Wilson

unread,
Aug 2, 2015, 10:38:25 AM8/2/15
to Boom Panes, AJAX-chat
In the stand alone they do not unless you have someone's mods that has registration. With the forum integrated version they would register through the forums. So if you need to add new users to the standalone version find lib/data/users.php and you can just copy one of the existing users line just make sure you follow the number sequence.

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license Modified MIT License
 */

// List containing the registered chat users:
$users = array();

// Default guest user (don't delete this one):
$users[0] = array();
$users[0]['userRole'] = AJAX_CHAT_GUEST;
$users[0]['userName'] = null;
$users[0]['password'] = null;
$users[0]['channels'] = array(0);

// Sample admin user:
$users[1] = array();
$users[1]['userRole'] = AJAX_CHAT_ADMIN;
$users[1]['userName'] = 'admin';
$users[1]['password'] = 'admin';
$users[1]['channels'] = array(0,1);

// Sample moderator user:
$users[2] = array();
$users[2]['userRole'] = AJAX_CHAT_MODERATOR;
$users[2]['userName'] = 'moderator';
$users[2]['password'] = 'moderator';
$users[2]['channels'] = array(0,1);

// Sample registered user:
$users[3] = array();
$users[3]['userRole'] = AJAX_CHAT_USER;
$users[3]['userName'] = 'user';
$users[3]['password'] = 'user';
$users[3]['channels'] = array(0,1);

// Sample added user:
$users[4] = array();
$users[4]['userRole'] = AJAX_CHAT_USER; <-This line defines the users role.
$users[4]['userName'] = 'user'; <- This line defines the log in name
$users[4]['password'] = 'user'; <- This line defines their password
$users[4]['channels'] = array(0,1); <- This line defines what channels they have access to.
?>

Also you can add new channels in the channels.php file.

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license Modified MIT License
 */

// List containing the custom channels:
$channels = array();

// Sample channel list:
$channels[0] = 'Public';
$channels[1] = 'Private';

#Added new channel example
$channel[3] = 'New Channel Example';
?>


On Sat, Aug 1, 2015 at 11:39 PM, Boom Panes <carlo.do...@gmail.com> wrote:
how do other user register ?

--
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/d/optout.

Boom Panes

unread,
Aug 2, 2015, 11:25:07 PM8/2/15
to Fabian Wilson, AJAX-chat
hellow again thanks for answering my question. but i have another question what php file do relate to login button on the login page im trying to hook your ajax chat with my website mysql using auto set room at auto fill user form but i can't seem to find where it related to get my target. tnx

Ronald Carmenate

unread,
Sep 8, 2015, 5:20:33 AM9/8/15
to AJAX-chat
First of all, 

Hi there everyone!  My name is Ronald, I am new to this group and found it very helpful and interesting so I decided to join you guys.
I have installed a standalone ajax chat to my current website and was facing the same problem with not having a registration system to have my users create their own accounts automatically.
After a bit of research I found a very good mod and I have found on this group, thank you fjwilson!  


For an example of how it looks once finished check out http://rockradio.biz/register.php

Thank you!

Fabian Wilson

unread,
Sep 8, 2015, 12:19:02 PM9/8/15
to Ronald Carmenate, AJAX-chat
This is a good mod but offers no password reset option for the user. I had some working files for the admin to reset the passwords but there is still no way for the user to request a reset.

--

ClubSyNXTremeTV

unread,
Sep 13, 2015, 9:44:46 AM9/13/15
to AJAX-chat
I just released a mod that covers all of that and more.

Trex Phire

unread,
Oct 9, 2015, 5:43:48 PM10/9/15
to AJAX-chat
where is this mod at ?

ClubSyNXTremeTV

unread,
Oct 9, 2015, 6:42:34 PM10/9/15
to AJAX-chat
Reply all
Reply to author
Forward
0 new messages