Menu

Hide Welcome Page Menu?

Help
Goldfish
2010-03-03
2013-05-30
  • Goldfish

    Goldfish - 2010-03-03

    Hello. Has anyone ever figured out a way to hide the WELCOME PAGE MENU from visitors who are not logged into the PGV site?

    It would be great to be able to hide the list of GEDs, especially when they have the names of living members as their titles.

    Many thanks!

     
  • Gerry Kroll

    Gerry Kroll - 2010-03-04

    Look at function getGedcomMenu in file "includes/classes/class_menubar.php" .  This function is around line 55.

    When this function returns an empty string, the various "themes/xxx/toplinks.php" won't produce a GEDCOM menu.  You can determine whether a session is logged in or a casual visitor based on whether the constant PGV_USER_ID is non-zero.  Zero means "not logged in".

     
  • Goldfish

    Goldfish - 2010-03-04

    Thanks, canajun2eh. I dumped the call for getGedcomMenu in the default gedcom's customized theme's header.php. Thank you for your assistance!

     
  • Wm Simpson

    Wm Simpson - 2010-11-26

    Hello folks, I too would like to hide the WELCOME PAGE MENU but cannot find the call for getGedComMenu in the standard theme header.php. Any more suggestions

     
  • Stephen Arnold

    Stephen Arnold - 2010-11-26

    timetender
    Gerry said:

    Look at function getGedcomMenu in file "includes/classes/class_menubar.php" . This function is around line 55.

    Why would you look for it elsewhere? "I cannot find the call for getGedComMenu in the standard theme header.php."
    -Stephen

     
  • Gerry Kroll

    Gerry Kroll - 2010-11-27

    timetender:
    The scripts dealing with page formatting according to the various theme specifications were re-factored after the messages above were posted.  You'll find the calls to the getGedcomMenu function in the "header.php" scripts.

    The easiest solution for you would be to follow the above instructions and simply modify the getGedcomMenu function to return an empty string.  Just let it do all its normal work, but at the end return an empty string.

     

Log in to post a comment.