item owner

eliz82

Joined: 2009-11-06
Posts: 71
Posted: Sun, 2012-04-22 20:43

any idea how to verify in a template if the visitor is item owner (photo/album) ?
thanks

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-04-22 21:27
{if $user.id == $theme.item.ownerId}
do something
{/if}

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

 
eliz82

Joined: 2009-11-06
Posts: 71
Posted: Tue, 2012-04-24 06:50

thanks, it's working.