Quote:If I set the Gallery Behaviour to enabled for the user login
There is no such option. I think you are looking at `enable user name login field` Not at all the same thing. This just allows/disallows the field for the user name. E.g. with this disabled all you get is the password field. [BTW, click on the "details" links in the description area for more details (naturally).]
In addtion, this option is invalidated if any guest logon credentials require a user name (else how would the guest enter it?)
There is [b]NEVER[/b] nothing shown in a normal gallery when a login is required. Else guests would have no way to log into the gallery. Writing a function will do you no good. Instead write a logon form script. As suggested above: a theme resident `password.php` script.
As I previsously mentioned. this has nothing to do with the user login-out plugin. All that plugin does is present a login form on pages that would not otherwise require it.
It does not matter what script you are trying to access. If the element is marked as protected with a guest password (and user?) then anyone not logged in will not get to see it. They will instead be presented the results of the password.php script, normally a logon form.