![]() |
edited my first post again, and i tested it this time to check for errors, :)
it works sorry about those first errors, and the person with id 26 will be duplicated. |
I have one other question... How would I modify this code one last time to give a value of "2" to the usergroupid fields-- This is so I don't have to manually give everybody permission later.. I think thats the right thing that needs changing? Is there anything else in the other fields that needs to be set in advance? I want to make sure I get this right now... I am migrating 7,000+ records.
Thanks Neil |
PHP Code:
PHP Code:
|
I don't seem to be having much luck with this. Now I get the following error:
Database error in vBulletin 2.2.1: Invalid SQL: INSERT INTO user (username, password, email, birthday,usergroupid) VALUES ('mike','efe6398127928f1b2e9ef3207fb82663','mike@n o.com', 1976-02-29), '2' mysql error: mysql error number: 0 Date: Wednesday 23rd of January 2002 12:42:40 PM Script: http://www.studentpilot.com/interact...forum/file.php Referer: Just to double check, this is exactly what the file looks like: PHP Code:
|
I don't seem to be having a good coding day lol
try this PHP Code:
|
Hmm... Well, that fixed the last problem... But now I have a new problem. Looking at the mysql database, one record is added with that code... Then it gets this message:
Database error in vBulletin 2.2.1: Invalid SQL: INSERT INTO userfield VALUES ('31','','','','') mysql error: mysql error number: 0 Date: Wednesday 23rd of January 2002 12:48:26 PM Script: http://www.studentpilot.com/interact...forum/file.php Referer: By the way, thanks for all of your help with this. I really appreciate it. Without your help I would be totally lost. Neil |
how many custom fields have you created?
|
There are five Custom Profile Fields:
Title Required Hidden Editable Maxlength Size Modify Total Time No No Yes 250 25 [edit] [remove] Ratings No No Yes 250 25 [edit] [remove] I Fly No No Yes 250 25 [edit] [remove] Location No No Yes 250 25 [edit] [remove] Occupation No No Yes 250 25 [edit] [remove Neil |
I checked your register page, you have 5 custom fields according to that.
Use this version then PHP Code:
|
IT worked!!! Imported 7,024 new users :-)
You saved me a ton of time and a headache -- thanks for all the help! NEil |
All times are GMT. The time now is 07:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|