MyBB Community Forums

Full Version: Avatar and Username Strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So basically, I'm looking for the avatar and username strings.

For example, <img src="avatar.php?action=blahblahblah&uid=1">
Any help?

For the username, I'd like to do the same. Displaying a username specific username via the UID.
Anyone?
Any suggestions? MyBB Staff?
i am not sure what you are trying to do but the required variables for avatar and username would be {$mybb->user['avatar']} and {$mybb->user['username']}
(2014-12-08, 10:35 AM)mmadhankumar Wrote: [ -> ]i am not sure what you are trying to do but the required variables for avatar and username would be {$mybb->user['avatar']} and {$mybb->user['username']}

I'm in the middle of creating a new staff page for my forum. So for example, I need the Avatar string so I'm able to assign a avatar to each staff member, This will automatically update (when user updates avatar) with ease, without me having to manually change it on the staff page.
So I'm looking for a string where I am able to input the UID, so it updates automatically for the avatar and username.
Any answers?
Needing help still.
What have you got so far? Usually you'd query the database and loop over each row returned.
(2014-12-13, 05:10 PM)Nathan Malcolm Wrote: [ -> ]What have you got so far? Usually you'd query the database and loop over each row returned.

I haven't attempted to do this so far. Any examples or work I can relate to?