remove your account url

doomel

Joined: 2011-08-17
Posts: 3
Posted: Wed, 2011-08-17 15:05

hi all :)

Can you tell me how to remove user account url for user (without admins) from gallery? (YOUR ACCOUNT -exactly)
Users can only views pictures. This url is on the right under logo gallery.
I use CARBON themes.

Regards

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-08-17 16:02

gallery2/themes/carbon/templates/local/theme.tpl <- you may have to copy the original here.

just before the </head> add:

    {if !$user.isAdmin}
    {literal}
    <style>
        a[href*="g2_subView=core.UserPreferences"]{ display: none;}
    </style>
    {/literal}
    {/if}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
doomel

Joined: 2011-08-17
Posts: 3
Posted: Wed, 2011-08-17 16:20

IT WORKS!!! :)
BIG THANKS

Regards :)