Menu

Timeline chart only shows a vertical line

Help
2003-09-25
2003-09-26
  • Anders Berg

    Anders Berg - 2003-09-25

    Hi,

    I don't get the boxes with birth, death and other date information in the timeline chart, only a line. Adding an age marker works, but the information it displays makes no sense.

    Wonder if this also has to do with the ID without the I...

    http://www.scangen.se/phpgedview/index.php

     
    • John Finlay

      John Finlay - 2003-09-26

      You are right.  It does have to do with not starting with an I. 

      Edit timeline.php and remove line 406:
      if ($pids[$p]{0}!="I") $pids[$p]="I".$pids[$p];

      I actually added this as a requested feature of somebody else who wanted to be able to just type in the number of a person without the "I".

      --John

       
    • Anonymous

      Anonymous - 2003-09-26

      Not sure where to leave this but the comment by John gave me the idea that not inputting the I is very welcome on my part. So I decided to change the relationship chart so that it is not necessary to enter the I there. These changes have to be made:

      Edit line 45:
      if (!empty($pid1)) $title_string .= get_person_name("I".$pid1)." ";

      Edit line 46:
      if (!empty($pid2)) $title_string .= "- ".get_person_name("I".$pid2)." ";

      Insert line 97:
            if (isset($pid1)) $pid1="I".$pid1;
      Insert line 98:
            if (isset($pid2)) $pid2="I".$pid2;

      That will do it. If anyone wants the file, let me know and maybe we can add it to the patches section.

      Regards,

      Roland

       

Log in to post a comment.