News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to display avatar in ssi_recentPosts?

Started by 1.1Nerd, November 05, 2020, 05:19:20 AM

Previous topic - Next topic

1.1Nerd

Hello, can somebody please let me know how to display a posters avatar in ssi_recentPosts ? Thank you

Kindred

well, without doing the actual code, all I can say is that you'd probably have to add the avatar to the query
--
mem.avatar


then call it into the built $posts[] array along with the other details...

then just call it out in the display code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

I believe he'd also have to join the attachments table.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

hmmmm.....   possibly - I suppose it depends if the user is using a system avatar or a personally uploaded one ---    or an external one.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Pipke

also depends wich version of smf your using, 2.1 uses other data rows then 2.0
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Advertisement: