Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Avatars in list view
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Jul 17, 2015 - 4:00 pm

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

Where the red +1 is

Image Enlarger

 

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:

Image Enlarger

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 17, 2015 - 4:39 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625