[phplib] How do I create user variables when a new user is created? From: Garry Dunn (gdunn <email protected>)
Date: 12/08/00

To all,

I'm using the PHPLIB new_user_md5 file to allow an administrator to create
new users. I'd like to add to that page so when a new user is created, I
start him out with a set of default variables.

On the new_user_md5() page, I can't just use $user->register(), because I'm
not logged in as that user (I'm the administrator at that point). I
suspect I will have to manually run some insert queries on the user
database to do this, but that seems harder than it should be.

Is there an easy way to do this? I'd like to have the variables set before
the user logs in for the first time.

If there is an archived discussion about this, please let me know. I
couldn't find one.

Thanks in advance,

Garry

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>