You can import your existing users by editing "v_imported_users" view . Also , you can write your own hashing algorithm for password checking by editing "Imported_Users_Password_Hash" method that in "config.php" file.
Structure of v_imported_users view .
UserID = unique id of your user . Be sure , that they are not same as local "users" table . If they are same , you can change it by editing autoincrement of local "users" table .
Name = Name of user
Surname = Surname of user
UserName = Login of user
Password = Password of user
email = Email of user
branch_id = id from "branches" table
group_id = id from "user_groups" table
Here are the some examples of importing users from other systems
Here is the example of importing users from Invision Power Board . (Tested with version 3.4.5).
1)Execute the following lines of code in your MySQL database :
CREATE OR REPLACE VIEW v_imported_users
member_id AS UserID,
members_display_name AS `Name`,
'' AS `Surname`,
members_l_username AS `UserName`,
CONCAT(members_pass_hash, '[sep]', members_pass_salt) AS `Password`,
email AS `email`,
1 AS branch_id,
1 AS group_id,
'nophoto.jpg' as user_photo
WHERE (`ipb`.`members`.`member_group_id` NOT IN (1, 5))
2)Change Imported_Users_Password_Hash method in config.php file of els PHP Web Quiz as below :
$password_details = explode('[sep]', $password_from_db);
$hashed_password = $password_details;
$salt = $password_details;
return md5( md5( $salt ) . md5( $entered_password ) )."[sep]".$salt;