I want to customize one of the template files and add something only if the GALLERYSID cookie is set.
I don't know much about 'smarty' tags, but it looks like they are used exclusively in the templates, not php, which I am more (but not completely) familiar with.
So in smarty, I want to say:
{if GALLERYSID cookie exists}
do this
{/if}
Would someone mind showing me how to do this (assuming it can be done)?
Thank you! Chris
Posts: 8339
Even anon users get a SID, are you trying to detect registered users? {if $user.isRegisteredUser} or admin? {if $user.isAdmin}
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 19
Ah, got it, thank you very much!
Chris
Posts: 27300
http://codex.gallery2.org/Gallery2:Themes:Reference:Variables
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team