sandnes
Member
I'm trying to get this code to work, I'd like my postbit to show a larger avatar if the poster is a member of one of a list of possible user groups.
This is my code now, inserted into message_macros (where the avatar size line is located)... it doesn't break anything but it also doesn't work.
I changed this
to this:
I'm totally guessing on the syntax and am probably guessing wrong. Can anyone suggest changes?
This is my code now, inserted into message_macros (where the avatar size line is located)... it doesn't break anything but it also doesn't work.
I changed this
Code:
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
Code:
<xf:if is="in_array({$post.User.isMemberOf}, [3,5,12,17,19,20,31,32,33])">
<xf:avatar user="$user" size="l" defaultname="{$fallbackName}" itemprop="image" />
<xf:else />
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
</xf:if>