Different Themes for admin views (when logged in) and for public views (as visitors see the gallery)

peter_k

Joined: 2005-09-15
Posts: 134
Posted: Thu, 2005-09-15 09:21

First of all, many thanks to all G2 developers for this great piece of work.

How can I config G2 to have
(1) a customized theme for when a visitor of the site is not logged in (this is always the case, since I don't offer the possibility to others to log in); this would be *the* theme, my customized theme for my website;
(2) a basic theme for when I log in to do all the admin stuff (uploading, adding description, etc.); for this I don't need anything special, the classic theme (or any other) would do the job.

My main problem is that when I develop my custom theme (based on Siriux) for the photo galleries displayed on the site, it also messes up the functionality and theme of the G2 admin screens (when I'm logged in). Off course it is doable to make a custom theme that look great in "logged in" and "not logged in" state (all styles included in G2 are examples of that), but I feel that I don't have the programming (PHP/smarty) skills nor the time to do this. I just want to hack around the .tpl and css files to make it look great for visitors.
(e.g. in Wordpress the customization can be done on two levels: (i) the blog that visitors see, and (ii) the admin section)

Thanks for your help.

 
travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Thu, 2005-09-15 15:00

I've been using this to display stuff only for the Admin...

{if $user.isRegisteredUser}
    ...
{else}
    ...
{/if}
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-15 16:48

there's also $user.isAdmin. see http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference#User_Information

theme settings per user are not available in g2, not yet.

 
peter_k

Joined: 2005-09-15
Posts: 134
Posted: Mon, 2005-09-19 12:33

Thanks. That workaround solution helped.

Valiant, I didn't want to "request" the possibility to have different theme settings per user. I just wanted to suggest to offer a 2-tier customization: visitors view only, and a more extensive customization of the entire UI.

 
peter_k

Joined: 2005-09-15
Posts: 134
Posted: Tue, 2005-09-20 08:50
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-09-20 13:57
Quote:
Valiant, I didn't want to "request" the possibility to have different theme settings per user. I just wanted to suggest to offer a 2-tier customization: visitors view only, and a more extensive customization of the entire UI.

peter_k, that is a feature request. Fee free to search and see if anyone has already filed a feature request, if not file one and it can then be voted on. http://www.sf.net/projects/gallery and http://gallery.menalto.com/sfvote/

 
peter_k

Joined: 2005-09-15
Posts: 134
Posted: Thu, 2005-09-22 07:06

It might not be the most elegant solution, but this works:

http://gallery.menalto.com/node/36851#comment-135064