Support Forum
Avatars in list view
Alex T
Member
Offline
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.
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...
Visit Cruise Talk Central and Mr Papa's World
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626