Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: bulk user creation
by draj on 2005/12/28 8:15:01

Hallo!

Does not work. It imports one no name user as the last user. Any ideas?
Re: bulk user creation
by nixon on 2005/3/22 5:57:33

Thanks christian, I thought that would be the go but I didn't want to test it without some help.
Cheers
Re: bulk user creation
by christian on 2005/3/22 2:36:44

You must duplicate this lines

$numgroup ='2';
$query = "INSERT INTO xoops_groups_users_link (groupid, uid) VALUES('$numgroup', '$uid')";
$result= mysql_query($query);

Replace $numgroup ='2'; by $numgroup ='6';

Best regards
Re: bulk user creation
by nixon on 2005/3/22 2:18:55

christian,
I used the original script (slightly changed) to do the job but I realised I need the users added to 2 groups. I had a look at the changed script you made and in reference to this section:

//Add user in group
$numgroup ='2';
$query = "INSERT INTO xoops_groups_users_link (groupid, uid) VALUES('$numgroup', '$uid')";
$result= mysql_query($query);

If I wanted to add the user to 2 groups when running the script (lets say groups 2 and 6) how would I change the script to make this happen? Any help would be appreciated.
Cheers
Re: bulk user creation
by nixon on 2005/3/20 23:41:41

Thanks christian,
I mainly needed to know if those last 4 entries were vital but it appears from your new script that they are not necessary. I pretty much have worked out the script and have added other things I needed for mine so it looks like it will work ok. Thanks for all the help this will save me a lot of work.

Who's Online

237 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits