Automatically create users

edwinfg

New Member
Hello,

I have to create N teams (min 2, max 3 members) from a given number N passed from fronted. I can add more teams in any moment. Each team have to be a Joomla account. This is because I am using the component ARI Quiz to let each team have a quiz. We are doing a math competition by teams.

I am looking for some ideas how to do that. I am thinking that Fabrik can help me, But I'm still a newbie.

So far, what I have done is two forms

***Form 1 ***************************************
******in group: team
* id
* date_time
* university <-- choosing with Drop-down from plugging databasejoin

***** in group: team members, this group is using the option repeat, with min 2 and max 3

* name
* email
* birthday
* id
* parend_id
* team_leader
*********************End Form 1 ******************


***Form 2 ****************************************
***** This will use juser Plug-in to link with Joomla User
* team_name
* team_username
* team_password
* team_email
* default_group
* joomla_id
*********************End Form 2 ******************

The fist form to be filled when the team get logging to take the quiz. I am thinking displaying like a Joomla article plugin.

The second one for create automatically Joomla accounts (teams).

My problems:
  1. team_name: have to be filled based in the university ex. UIS001, the prefix UIS getting from existing table in the database using plugging databasejoin. How handle the values 001, 0o2, etc.
  2. team_username: Same as before, just change to lowercase.
  3. team_password: how filled using Joomla requirements.
I hope don't get bored reading such a long post.

Thanks.
 
Please, somebody with more experience give me an advise, I am really need to solve this issue soon for a project with math students. I will appreciate so much.
 
For the team names, you could use calc elements, with Ajax enabled, which use a placeholder of a join element.

For password, you could use an eval'ed default of something like...

return bin2hex(openssl_random_pseudo_bytes(6));

Or md5 instead of bin2hex.



Sent from my HTC 10 using Tapatalk
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top