Not Solved [How To?] PHP in Template, checking if user is in usergroup per id doesn't work.
#2
Not Solved
In which template are you trying to accomplish this? If it is inside some postbit template then $post['usergroup'] and $post['additionalgroups'] are the two variables you need.
<if $post['usergroup'] == 1 || my_strpos(','.$post['additionalgroups'].',', ',1,') then>
foo
</if>

You could also add is_member() to the white list file of functions allowed. Or perhaps it is already there, I don't know.
Reply


Messages In This Thread
RE: PHP in Template, checking if user is in usergroup per id doesn't work. - by Omar G. - 2019-01-09, 07:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)