Menu

#772 Create login account from individual's record

open
nobody
5
2007-02-26
2007-02-26
geckonapper
No

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".

Discussion

  • John Finlay

    John Finlay - 2007-02-26
     
  • John Finlay

    John Finlay - 2007-02-26

    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

     
  • geckonapper

    geckonapper - 2007-03-04

    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

     
  • Greg Roach

    Greg Roach - 2007-03-05

    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.

     
  • geckonapper

    geckonapper - 2007-03-05

    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

     
  • Greg Roach

    Greg Roach - 2007-03-05

    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.

     
  • John Finlay

    John Finlay - 2007-03-05

    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

     
  • Ted

    Ted - 2007-04-24

    Logged In: YES
    user_id=1169905
    Originator: NO

    You should probably filter the selection list to only live individuals

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.