tehMorag
Member
Hey there,
Been trying my hand at make my own addons for my site.
I have found that if I want to read/write info from a database in a php script (XenForo or external), I need to use the <xen:callback> tag in the templete
What I am currently trying to do is get xen syntax working in on of these scripts. The main one I am trying to make is limit the visablilty of a few things to admin/mods only.
I would normally use <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}"> but it isnt working.
Will I have to call the usergroup via php instead of using xen syntax or is there a way to be able to use the syntax in php scripts... Anything that could help me out here?
Thanks!
Been trying my hand at make my own addons for my site.
I have found that if I want to read/write info from a database in a php script (XenForo or external), I need to use the <xen:callback> tag in the templete
What I am currently trying to do is get xen syntax working in on of these scripts. The main one I am trying to make is limit the visablilty of a few things to admin/mods only.
I would normally use <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}"> but it isnt working.
Will I have to call the usergroup via php instead of using xen syntax or is there a way to be able to use the syntax in php scripts... Anything that could help me out here?
Thanks!