which files/files [message #11691] |
Mon, 14 July 2003 02:16 |
|
esm2002
Messages: 339 Registered: May 2002 Location: Atlanta Georgia
Karma: 0
|
Senior Member |
|
|
which files/fields would be involved if I wanted to import some new users from an outside source?
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
|
|
|
Re: which files/files [message #11692 is a reply to message #11691] |
Mon, 14 July 2003 02:23 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
users_reg.inc.t and possibly register.php.t. The latter mostly to see how the functions & methods inside users_reg.inc.t work.
FUDforum Core Developer
|
|
|
|
Re: which files/files [message #11754 is a reply to message #11748] |
Wed, 16 July 2003 14:54 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Take a look at fud_users.sql table defenition file, all of the fields that are indexed (or unique, especially unique) need to have their values filled in.
Oh yeah, the password is the md5 hash of the actual password, the actual password is not stored in db for security reasons.
FUDforum Core Developer
[Updated on: Wed, 16 July 2003 14:55] Report message to a moderator
|
|
|
|
|
|
Re: which files/files [message #11762 is a reply to message #11761] |
Wed, 16 July 2003 17:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, FUDforum already has this functionality, simply set the acc_status field to 'P' instead of 'A'. And then any new accounts will need to be approved by the administrator before they become active. When logged in as an admin you'll have an indicator saying that you have X many accounts pending confirmation if there are any such accounts.
FUDforum Core Developer
|
|
|
|
Re: which files/files [message #11793 is a reply to message #11762] |
Thu, 17 July 2003 16:52 |
|
esm2002
Messages: 339 Registered: May 2002 Location: Atlanta Georgia
Karma: 0
|
Senior Member |
|
|
prottoss wrote on Wed, 16 July 2003 13:43 | Well, FUDforum already has this functionality, simply set the acc_status field to 'P' instead of 'A'. And then any new accounts will need to be approved by the administrator before they become active. When logged in as an admin you'll have an indicator saying that you have X many accounts pending confirmation if there are any such accounts.
|
what about the following:
$date02 = time();
$q = "INSERT INTO fud25_users SET
login = '$f[account_username]',
alias = '$f[account_username]',
passwd = 'md5($f[account_password])',
name = '$f[account_name]'
email = '$f[account_email]',
displayemail = 'Y',
notify = 'N',
notify_method = 'EMAIL',
ignore_admin = 'N',
email_messages = 'Y',
pm_messages = 'Y',
avatar = '0',
avatar_location = 'YES',
avatar_approved = 'NO',
gender = 'UNSPECIFIED',
icq = 'YES',
aim = 'YES',
yahoo = 'YES',
msnm = 'YES',
jabber = 'YES',
affero = 'YES',
append_sig = 'Y',
show_sigs = 'Y',
show_avatars = 'Y',
post_ppg = '0',
time_zone = 'America/New_York',
bday = '0',
invisible_mode = 'N',
blocked = 'N',
email_conf = 'N',
conf_key = '0',
user_image = 'YES',
theme = '0',
coppa = 'Y',
posted_msg_count = '0',
last_visit = '0',
referer_id = '0',
last_read = '0',
custom_status = 'YES',
sig = 'YES',
default_view = 'tree',
joindate = '$date02',
acc_status = 'P',
is_mod = 'N',
level_id = '0',
reset_key = '0',
u_last_post_id = '0',
home_page = 'YES',
bio = 'YES',
cat_collapse_status = 'YES',
custom_color = 'YES',
buddy_list = 'YES',
ignore_list = 'YES',
group_leader_list = 'YES'";
$db->query($q);
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
|
|
|
|