Support Forum

Avatars in list view

AT Alex T
Alex T
Member

How may I change this to show the avatar of the user who created the original post?  

Where the red +1 is

 

I tried changing by adding this code in listviewdesktop

sp_ColumnStart('tagClass=spIconColumnSection spLeft&width=0&height=20px');
 /*sp_ListTopicIcon();*/
sp_UserAvatar('tagClass=spRowIcon spLeft&context=user', $spThisTopic->first_user_id);

But it changed it to this:

As you may see, it now shows a guest image instead.

1 Answer

New Answer

MP Mr Papa
Mr Papa
Member

why did you change it to that?  that variable is not valid at that point in the code…

you want something like:

                    sp_UserAvatar('tagClass=spRowIcon spLeft&context=user', $spThisListTopic->user_id);

give that a shot…