I asked this same thing a few weeks ago...
My postThere is something you can do if you are using an advanced layout.
Drop this around your call for the main menu.
<!-- System:IfRank:XXX --><!-- System:Menu:Menu --><!-- System:EndRank -->
The XXX should be replaced by the numeric value of the lowest rank on your site.
Or you could pull the Gallery link from the Main Menu under
Admin > Menus >Basic Menu Administration and Uncheck the Picture Gallery. Currently I'm at work and somehow they kill my ability to DL my layout file code.
In your layout.html file create a menu for the picture gallery. If you have implemented the Last 10 Items feature from the DKP System just use a similar code structure. Then again using the IfRank tags above you can enclose the menu in those tags.
What will either of these options do?
The first option will make the Main Menu of your site invisible to non member since the IfRank tag means that you must be a member of the website to see it. The second option will put just the picture gallery in a separate menu and make that menu visible only if you are member of the site.
What neither of these options will do?
Neither of these will completely hide your picture gallery. They simply make the link to it not visible to outsiders with no account on your site. If the people know that the gallery is located at url/xyz.php then they can still browse directly to it.
When I get home I can post a simple version of a menu inside the HTML layout to make a holder for the Gallery link if one of the more code savvy folks don't beat me to it.
--
Six Demon BagJack Burton: Hey, what more can a guy ask for?
Egg Shen: Oh, a six-demon bag!
Jack Burton: Terrific, a six-demon bag. Sensational. What's in it, Egg?
Egg Shen: Wind, fire, all that kind of thing!