"Unregistered" or "Not Logged In" User Group

VirginiaNative

Joined: 2005-02-07
Posts: 8
Posted: Thu, 2005-09-15 18:45

Is there, or can you create, a user group of "Unregistered" or "Not Logged In" users?

I basically have everyone log in to see the albums, but want one album to be viewed by everyone but the logged in users.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 18:49

the "Everybody" group is for all users, which included the "not logged in users".
the "registered users" is everyone, but the "not logged in users".

 
VirginiaNative

Joined: 2005-02-07
Posts: 8
Posted: Thu, 2005-09-15 18:55

how about a third group... ONLY not logged in users...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 20:53

why?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2005-09-16 03:14

exactly. All those logged in users have to do is logout and they can see the album.

 
VirginiaNative

Joined: 2005-02-07
Posts: 8
Posted: Fri, 2005-09-16 10:48

Here is why...

I want to let people know they have to register and log on before seeing albums. You have to email me to register.

I could change the code for the login page to announce this, but every time I upgrade, I'll have to change the code.

It would be easier to have an album of no pictures and have that album title be "You must log in to see the albums. Email me at

for an account."

If I make that the only album set for everyone, you see it before logging in. NOW... after logging in, I'd prefer not to see that album.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-16 10:56

yet i fail to see how a group of "unregistered users" would help here or be better than the everybody group.

how do you identify an unregistered user?
an unregistered user cannot be identified. you can only identify "not logged in" users.
and not logged in users = {if $user.isGuest}
and the text i'd show is "You have to log in before seeing albums. Please sign up (register link) if you do not already have an account."
(see http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference#User_Information )

and no, you don't have to apply your template changes after each upgrade.
keep your changes in local/ directories and they will be kept in upgrades.
or design your own theme, upgrades don't remove your own themes.

 
VirginiaNative

Joined: 2005-02-07
Posts: 8
Posted: Fri, 2005-09-16 12:30

Thanks for the info...