Hi!
I apologize if this is not the correct subforum to post in.
I'm curious if there's any way to check if the current visitor is part of a group using Smarty. I know there is {$U_ADMIN] and {$U_GUEST}, but is it possible to check if the visitor is part of a certain group, or has a certain attribute? I want to show content differently based upon user group.
Piwigo version: unsure - latest.
Piwigo URL: https://tallguysfree.com / https://tallguysfree.com/index.amp
Thank you in advance.
Offline
I think you just have to set your own template variable, and do any checking required in PHP. (But I'm not the full bottle on Smarty by a long shot.)
Offline
Sorry if it's common sense, but how can I set a template variable without the risk of the file being overridden by Piwigo on update? Thanks!
Offline
in a custom plugin or theme
Offline