MyBB Community Forums

Full Version: how inject users from other database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
please can someone tell me how to inject users from another database.

Case: I have a mysql table with users to be registered in the forum.

This table contains, name, password, gender, email, date of birth.
** password (4 characters as minimum)

The records will be added via php (cron), and users will be set only as registered, to have access to the forum,
 other permissions will be updated by the forum administrator.


I would greatly appreciate if anyone can give me some guidance, or some script...

Ah.... and yes... i find a example or guindace in forum, but no result.

can anyone help? Or at least say that this is impossible, so look for another forum that allows you to do that.
can anyone help? Or at least say that this is impossible, so look for another forum that allows you to do that.
Passwords in salt? or, plain text?
If passwords in your original table are hashed, the only way is to inject the users without password (or with an arbitrary one) and force them to ask for a new one
All your user fileds mentioned are fine to be imported into a MyBB database.

If passwords are plaintext or md5-hashed, you are also okay to re-use them:
You need to manually generate a salt key and convert the passwords with the MyBB password routine to make them valid. This can simply be done within the database using an SQL statement (UPDATE).

[ETS]