Hi,
I'd like to show the sidebar.tpl _only_ when logged in as admin, not when a random person browsing the site..
I've tried to modify this in album.tpl
Quote:
{if (! $GLOBALS['gallery']->getActiveUser())}
<td id="gsSidebarCol">
{g->theme include="sidebar.tpl"}
</td>
{/if}
but it doesnt work...
Hopefully someone can help
Thanks,
schlimmest.
Posts: 27300
{if $user.isAdmin}
....
{/if}
http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference#User_Information
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!
Posts: 15
awsome,
thanks alot!