| 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.
|