By Chajecki on
Hi,
I wanna create a phone book that will list all users and by clicking on a user I will be able to see a user's 'card' with a name, email address, address, photo etc. I'd like this phone book to be available for all visitors of my web page.
Is anyone aware of an existing solution?
I also have a datebase of users and I want to create automatically a Drupal account for each user and send a notification email to the user. If someone has a code that takes a text file with a list of users and creates accounts automaticaly for those users I am also interested in it.
Sorry if my questions have been already answered on this forum.
Cheers,
Zibi
Comments
Business card
I don't know if this is being maintained, but may work for your first question: http://drupal.org/project/businesscard
I haven't a clue on the second one, sorry.
Michelle
--------------------------------------
My site: http://shellmultimedia.com
Profile
What about profile?
It's a module shipped with any Drupal installation.
It is meant to allow the users to store information of their own in their user page. The module also provide a list of all users. Perhaps it can also be themed.
I have never used, but it's worth to take a look.
José San Martin
José San Martin
http://www.chuva-inc.com/
Migrating users database to Drupal
There's nothing out-of-the-box for the user migration, but you can do that yourself without much pain.
Create a PHP page that takes all the users from the old database (or from the text file) and use Drupal's API to add the users in the database. The function you'll need to use to add an user to the database is
user_save.Take a look at the function and at the database structure to know better what are the parameters for
user_save, but you'll use more or less like that.As the first parameter,
$account, just usenull. The third one, you'll just ignore. The second one,$array, is an array (!) that contains the values for Drupal's "users" database. For instance, use:José San Martin
José San Martin
http://www.chuva-inc.com/
Thanks
Thanks for both sugestions.
The bussiness card is not exactly what I need so it looks I have write my own code but I may use some of the code from this module.
I appreiciate your help, thanks.
Zibi
A solution for the second question
Hey there. :)
I'm looking for a phone book module too. Anyway, I have a solution for your second question. Try this: http://drupal.org/project/user_import
Enjoy!