Menu

Menu with Multiple GEDCOMs

Help
antiqueone
2009-06-10
2013-05-30
  • antiqueone

    antiqueone - 2009-06-10

    I have 31 GEDCOMs loaded on my site and more to load. The menu for selecting GEDCOMs is too long for users with low resolution screens and they can't select GEDCOMs at the bottom of the list.
    Is there any way of scrolling or wrapping this menu? The problem can be seen at www.buntingsociety.org.uk/phpgedview

     
    • macalter

      macalter - 2009-06-10

      Yikes that's a lot! I tried your site. As an anonymous user on dial-up, it was bit awkward to get the list to display and yes, it ran off the screen. (BTW, I found the grey background made it hard to read the names.)

      Not sure if access is denied to anonymous visitors, why have the ability to view anything as oppose to getting a password screen?

       
    • antiqueone

      antiqueone - 2009-06-10

      My users log in in Geeklog and then go into phpgedview. The phpgedview log in screen is only used by the administrator.
      I'm glad that you have confirmed my problem.

       
    • Gerry Kroll

      Gerry Kroll - 2009-06-10

      I suggest that you create a front page that users connect to first.  This front page can list the available GEDCOMs and their titles.

      When the user selects the desired radio button, PhpGedView is launched with the input parameter on the command line already specifying the desired GEDCOM.

      File "index/gedcoms.php" contains all the information you need to dynamically build your front page.  You just "require" this file in a PHP script, and then you have an array with all the pertinent details.

       
    • Anonymous

      Anonymous - 2009-06-10

      It might be possible to add scrolling to the menu. You would need to change the relevant css to limit the height, increase the width, and then add div tags with scrolling attributes set. But I wouldn't recommend it. The code would be extremely messy, and scrolling within a drop-down will be really awkward to use. Huge potential browser compatability issues as well.

      Gerry's suggestion would be a good one and easy to do. Perhaps you can incorporate it into your Geeklog?

      A more radical alternative, if you want to get into enough re-coding is to replace the standard menus with css-only ones. I've based mine on some code from http://www.cssplay.co.uk/menus/. That site has many options to improve your list. You could probably have a drop down of countries, then a fly-out for the GEDCOMs.

      It requires an almost total rewrite of your theme's toplinks.php file, and the use of PGV's 'getmenusaslist' functions, which strip out all the table formatting from the standard PGV menus.

      One caution though, Viet has done lots of improvement in this area for the next release, so be prepared for possibly changing your changes at that point (for the better). Thats alway a risk with heavy customisation.

      My site is www.our-families.info

       
      • macalter

        macalter - 2009-06-11

        kiwi: Your site's opening page looks incredible! I also clicked on Charles Chasmar just to see an INDI page. Nice to see the possibilities. One day...

        As to the multiple Gedcoms: after seeing the current menu, I'd think Gerry's option a good solution too. Even if the menu did scroll, it would still be cumbersome to use. With an opening page, you can have bit more flexibility. I'm assuming somehwere you tell visitiors what the convention is to the menu?

         
    • antiqueone

      antiqueone - 2009-06-10

      This all sounds very complicated and way beyond my capabilities. Users need to be able to change GEDCOMs at any time within phpgedview so I don't think I can use the easier option of multiple links in Geeklog. Being a one name Society we are always trying to find links between our trees.
      I will have to do a lot of reading but I think it means I need to read everything on this site and the wiki to try and get some clues of where to start. If I make a change then it appears that would prevent any further upgrades of phpgedview.
      Is there any chance of a block in the welcome page listing all GEDCOMs and giving links to them?

       
    • Anonymous

      Anonymous - 2009-06-10

      <<If I make a change then it appears that would prevent any further upgrades of phpgedview. >>

      No, it does not prevent upgrades, but it does add a complication. I have extensive mods, but still upgrade multiple times per week (to test latest svn code).

      <<Is there any chance of a block in the welcome page listing all GEDCOMs and giving links to them? >>

      I'm sure its possible - you just need to find someone with the time and interest to develop it. Adding it the the Feature Request list here won't get it done, but it will at least register the suggestion.

       
    • Anonymous

      Anonymous - 2009-06-11

      antiqueone

      Thinking about your Welcome Page block idea - I think you could do something, albeit somewhat manual, using the advancedHTML block. Just add a series of links using basic html code like:
      <ul>
      <li><a href="http://www.our-families.info/index.php?ctype=gedcom&ged=YOUR_FILE_NAME1.ged">YOUR_FILE_NAME1</a></li>
      <li><a href="http://www.our-families.info/index.php?ctype=gedcom&ged=YOUR_FILE_NAME2.ged">YOUR_FILE_NAME2</a></li>
      </ul>

      (this will give you a bulleted list, but could be changed)

      You can lay it out any way you want with either <div> tags or tables.

      Its manual because you will have to add to it each time you add a GEDCOM - and then add it back to the Welcome page for all earlier ones.

      A purpose designed block would do it better I'm sure, but needs a better programmer than me (with more spare time) to do it I'm afraid.

       
    • antiqueone

      antiqueone - 2009-06-12

      I have stripped down the GEDCOM management page to give a list of links to create a new menu. I'm having problems sorting this in title order rather than file name order.
      Can anyone tell me how I need to change the following?

      <?php
      require './config.php';

      //$ged        =safe_GET('ged',         get_all_gedcoms());
      // $current_ged = $GEDCOM;
      if (count($GEDCOMS)>0) {
      $GedCount = 0;
      print "There are ".count($GEDCOMS)." Family Trees<br>";
          foreach (get_all_gedcoms() as $ged_id=>$gedcom) {
                  // Row 0: Separator line
                  if ($GedCount!=0) {
                  }
                  $GedCount++;

                  print "<a HREF='http://www.buntingsociety.org.uk/phpgedview/index.php?ctype=gedcom&ged=";
                  if (file_exists(get_gedcom_setting($ged_id, 'path'))) {
                      if ($TEXT_DIRECTION=="ltr") print get_gedcom_setting($ged_id, 'gedcom')." '>";
                   }
                  print PrintReady(get_gedcom_setting($ged_id, 'title'))."</a>&nbsp;";

                  print "<br>";
               }
          }

      ?>

       
      • Greg Roach

        Greg Roach - 2009-06-12

        Looks like a simple bug in the get_all_gedcoms() function.  It is supposed to return a sorted list.  I'll fix it when I get home tonight

         
    • Greg Roach

      Greg Roach - 2009-06-12

      get_all_gedcoms() has been fixed in SVN.  It nows sorts the gedcoms alphabetically by name.

       
    • antiqueone

      antiqueone - 2009-06-13

      I have now got my new menu on News page working, but, after adding three more GEDCOMs the standard menu has developed a scroll bar. It looks as though this scroll bar is not created when menu reaches limit of screen but some time later.
      See both menus at http://www.buntingsociety.org.uk/phpgedview

       
    • Anonymous

      Anonymous - 2009-06-13

      You need to set a specific height for this block in your css.

       
  • antiqueone

    antiqueone - 2009-11-12

    I have now upgraded to 4.2.2 and the Welcome page menu and function get_all_gedcoms()  both sort gedcoms in file name order but display file titles. Would it be possible to make every list of Gedcoms/ Gedcom titles to be Gedcom titles in title order?
    You can see the problem at http://www.buntingsociety.org.uk/phpgedview/

     
  • Greg Roach

    Greg Roach - 2009-11-12

    <<Would it be possible to make every list of Gedcoms/ Gedcom titles to be Gedcom titles in title order?>>

    This is a known issue, and is part of a work-in-progress.  The sorting was removed, because I need to implement it differently (part of a move from file-based storage to database-storage).

    It will return soon…..

     

Log in to post a comment.