Menu

Hide multimedia for living persons?????

Help
2004-01-19
2004-01-24
  • Boudewijn Sjouke

    Hi all,

    In my PAF-database I have many pictures of living and dead people. These multimedia-items are connected to individuals. Also I have many scans of source-documents, connected to SOUR-records.
    Up to now, I didn't export the mm-items to the gedcom for import in PGV, because I don't want pictures of living people in PGV. A consequence is, that I have to connect the mm-items of sources to the SOUR-records again with a separate program.
    To make that all easier, i'd like to know if it's possible, with the privacy-module, to filter out the pictures of living persons?

    Thnx!
    Boudewijn.

     
    • John T

      John T - 2004-01-19

      Well in Privacy if you want to supress the MM from being displayed, I would imagine you also want the name hidden too, so if you update "Show Living names to Either "Show only to authenticated users" or "Show only to admin users" the public will not see the thumbnail associated to the record.

      The multimedia list also does not display the picture.

      Hope this helps.

      John

       
      • Boudewijn Sjouke

        Hi John,

        Thanks for your answer.
        Nope, I want all names and details of all persons displayed, exept the pictures of living persons.
        Besides, all my users must authenticate so I only have a choice between authenticated users and admins.

        Boudewijn.

         
    • John T

      John T - 2004-01-19

      Boudewijn,

      Hmmmm....

      John

       
    • Daniel Kionka

      Daniel Kionka - 2004-01-19

      Could we have subdirs under media, like media/public and media/private?

      You would have to add a dummy media/private/index.html because some web servers allow you to browse to directories:

      http://..../phpGedView/media/private/

       
      • Boudewijn Sjouke

        Daniel,

        I thought about that. By revoking the rights for users in a media/private dir users cannot see the multimedia. However, this would generate errors and there would still be the necessity to determine in which directory a mm-file belongs. I would like PGV to find that out, by determining if the person is alive or not.

        Bye
        Boudewijn.

         
    • John Finlay

      John Finlay - 2004-01-21

      Hi Boudewijn,

      There is currently not a global way to hide the pictures for living persons.

      In the privacy file you would have to manually set the OBJE tag to be hidden for every living person in the gedcom.

      Or you could expand the privacy.php module file to do this by editing the show_fact() function.

      On line 268 of privacy.php file is the line:
      if (find_person_record($pid)) return displayDetailsByID($pid);

      You could change this to be:
      if (find_person_record($pid)) {
        if (($fact=="OBJE")&&(!is_dead_id($pid))) return false;
        return displayDetailsByID($pid);
      }

      That will do what you want.  Maybe we should have a $GLOBAL_FACTS_LIVING array as well as the $GLOBAL_FACTS_ARRAY ?

      --John

       
      • Boudewijn Sjouke

        Hi John,

        It took some time to find out that I had to switch "Use privacy" to YES first, but after that it works like a charm! I just filed an RFE to add this (and your suggestion) to the functionality of PGV.

        Thanks!
        Boudewijn

         
    • Boudewijn Sjouke

      Hi John,

      Thanks for your suggestion. I'll try to get it into the code, see what it does and post the results back here.

      To introduce a $global_facts_living array apart from the existing $global_facts_array would be the ultimate solution, for which I will happily post an RFE.

      Thanks!
      Boudewijn.

       

Log in to post a comment.