[BUG] no avatar shown when group owner is the only member

meme

Member
1699489450790.webp

This happens when
1) the group is not created by the viewer's account or
2) it's viewed by a guest account (not logged in)

I have all other add-ons disabled and viewed in default style. Latest version of Social Groups.
 
Last edited:
I uninstalled and reinstalled the latest version from scratch. Still the same.

I checked tlg_group_list_macros and found the following line: (I added "aa" and "bb" for testing)

CSS:
        <xf:if is="$xf.options.tl_groups_maxMembersInCard > 0 && $showMembers">
            <ol class="listInline groupItem--members">bb
                <xf:foreach loop="$group.CardMembers" value="$member">
                    <li>aa<xf:avatar user="$member.User" size="xs" defaultname="{$member.username}" /></li>
                </xf:foreach>
            </ol>
        </xf:if>

1) When viewed by Guest viewer (not logged on), or viewer is not the group admin:

1699586267299.webp


2) When viewed by the group admin:

1699586184060.webp



Truonglv can you please take a look at this? 🙏
 
Last edited:
Can you try to rebuild group caches?
 
Can you try to rebuild group caches?
Truonglv

OK. I selected ALL.

1701831554819.webp

Viewed by the owner (F). This is the only one group member. Avatar icon is visible.

1701831657358.webp

Logged out. Cannot see the avatar.

1701831714880.webp

Logged in with another user (not the group owner). Cannot see the avatar.

1701831776354.webp

Another user joined the group. (Now the group has two members)

1701832018929.webp

Logged out: Can still see the icons.

1701832056566.webp

This user leaves the group. Now I can see the icon even there's only one member!

1701832182999.webp

logged out. Still can see the avatar icon now even after logged out.

1701832256514.webp
 
Last edited:
Back
Top