News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Looking for Avatars in Member Listing

Started by GJSchaller, August 10, 2006, 09:50:05 AM

Previous topic - Next topic

GJSchaller

My community uses real-life photos of the members as their Avatars, so that when we actually meet up we can easily recognize each other.

http://www.knightrealms.com/index.php?option=com_smf&topic=37606.0 is a good example.

One of the tricks to this is that we need to know who still needs a photo taken, so that we can make them an Avatar (It's controlled by the admins, since if it was left open guests would heavily abuse it).  The easiest way to do this would be to just look at the Member Listing, and get a quick visual of who has an Avatar, and who does not.

This would also be useful for quickly IDing someone (if you know their face, but not their name, and they don't post much) or for the occasional broken Avatar (such as after our conversion from an other system, there's still a few broken ones out there I can't find until I look at EVERY profile... bleah!  :P)

Can someone make a mod that will add a member's Avatar to the Member Listing?  It would be muchly appreciated.

Thank you!
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

GJSchaller

Hello!  With the release of 1.1 (and 1.1.1) officially, are there any takers for this?  The ability to see Avatars in the Member Listing would be VERY handy.

Thank you!
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

4LP3RUZ1

I believe I saw the code to do this somewhere in this forum, it was pretty simple so my guess is that it never made it into a package. The search function should get you some results.
Frozen frogs are back :(

GJSchaller

I did a search, and cannot find a reference to this anywhere in this forum - only my requests for the mod. -_-   If I missed it and can be linked to it, I would be very thankful!
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

4LP3RUZ1

Frozen frogs are back :(

GJSchaller

Wonderful!  That did it - thank you for the link!

Here's the code for others who might stumble across this.  I've cleaned it up for all the edits & bugs mentioned in the above post.




The following will add to the Member Listing the Avatar of each member that has one, to the right of their name in the listing.

Open Themes/default/Memberlist.template.php

Find:
<td class="windowbg" align="left">', $member['link'], '</td>

Add After:

<td class="windowbg" align="center">',$member['avatar']['image'], '</td>


Open Sources/Memberlist.php

Find:

'realName' => array(
         'label' => $txt[35]
      ),


Add After:

'avatar' => array(
            'label' => 'Avatar'
        ),
Geoffrey J. Schaller
Knight Realms - Technical Officer
http://www.knightrealms.com/

nneonneo

If you want to fix the column headers (since there will be a big gray thing on the right), change all colspan="12" to colspan="13"
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Advertisement: