It would be nice if you could create a user account from an individual's GEDCOM record. For example, from the details page for that user, have an option "Create user account for this individual".
I made a script for another user who also wanted to do this.
The attached script will automatically create users for any individual who has an address (ADDR) or an email (EMAIL). You wouldn't want to create user accounts for all of the individuals. It could be easily modified to only include living individuals.
--John
File Added: autousers.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried this by putting the script in the root directory of PGV, set permissions to 777, and tried to run it from a browser, and all I get is a Web page displaying the message "Creating users". I get no options, and no user accounts are actually created as far as I can tell. I have several individuals with e-mail addresses ("_EMAIL blah@blah.blah" in the raw records). How should I run this script? Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How does the "EMAIL" tag get created, except by perhaps editing the raw record? In the dropdown list of facts that can be added, I only see "_EMAIL". Maybe I'm looking in the wrong part of the UI? Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whether your GEDCOM has EMAIL or _EMAIL depends on the program you used to create it originally. PGV will support the display of both types, but we use _EMAIL anytime we add new ones.
I wrote this script for a user who originally created his GEDCOM from FTM which uses the EMAIL tag.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=300048
Originator: NO
I made a script for another user who also wanted to do this.
The attached script will automatically create users for any individual who has an address (ADDR) or an email (EMAIL). You wouldn't want to create user accounts for all of the individuals. It could be easily modified to only include living individuals.
--John
File Added: autousers.php
Logged In: YES
user_id=1447441
Originator: YES
I tried this by putting the script in the root directory of PGV, set permissions to 777, and tried to run it from a browser, and all I get is a Web page displaying the message "Creating users". I get no options, and no user accounts are actually created as far as I can tell. I have several individuals with e-mail addresses ("_EMAIL blah@blah.blah" in the raw records). How should I run this script? Thanks
Logged In: YES
user_id=1466942
Originator: NO
The script is looking for an EMAIL tag, rather than an _EMAIL tag.
If this is the tag you are using, then edit the script to replace EMAIL with _EMAIL
In any case, it is looking for EMAIL as a "top level" fact, rather than as a subordinate part of an ADDR, RESI, etc.
Logged In: YES
user_id=1447441
Originator: YES
That makes sense, but let me ask you this:
How does the "EMAIL" tag get created, except by perhaps editing the raw record? In the dropdown list of facts that can be added, I only see "_EMAIL". Maybe I'm looking in the wrong part of the UI? Thanks
Logged In: YES
user_id=1466942
Originator: NO
EMAIL is not a standard tag. I think it was there initially, but was later changed to _EMAIL. Maybe John wrote the script while the default was EMAIL.
You can add any tags you like. The list of tags is a config item under your gedcom config settings.
Logged In: YES
user_id=300048
Originator: NO
Whether your GEDCOM has EMAIL or _EMAIL depends on the program you used to create it originally. PGV will support the display of both types, but we use _EMAIL anytime we add new ones.
I wrote this script for a user who originally created his GEDCOM from FTM which uses the EMAIL tag.
--John
Logged In: YES
user_id=1169905
Originator: NO
You should probably filter the selection list to only live individuals