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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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".
Thanks, canajun2eh. I dumped the call for getGedcomMenu in the default gedcom's customized theme's header.php. Thank you for your assistance!
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
timetender
Gerry said:
Why would you look for it elsewhere? "I cannot find the call for getGedComMenu in the standard theme header.php."
-Stephen
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.