![]() |
Avatars in Memberlist
This is a quick and easy modification that will show a user's avatar next to their name in the Memberlist.
http://dl.dropbox.com/u/614379/Tutor...berlistava.png First off open profile.php in any plain text editor (Notepad, Notepad++, etc). Then Find: Code:
$level=@mysql_result($result,$i,"usergroup"); Code:
$avatar=@mysql_result($result,$i,"avatar"); Code:
$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>"; Code:
$article_content = $article_content."<img src='".$avatar."' border='0' width='25' height='25'> <b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>"; Edit: Quick Note, If you want to change the size of the avatar shown just change the values of "width='25' height='25'" |
Looks quite nice, many users will find it useful. Keep in mind that some images may look weird when resized to as small as 25x25.
|
thank you very much, this was very easy and nice. ^.^
|
How do you allow member's to have avatars in the first place?
ETA: Figured it out. |
Thanks I used this. Is there a way I can use it for Online List?
|
Actually you can make it into a public modification compatible with Mys v1.2.x.
|
Quote:
Actually I have some spare time. I'll go look through the code and edit my post for the Online List too. I've got a few more tutorials on the way. |
OOO thanks! That would be awesome of you! I'm still learning the coding and not really good at it yet. XD;
|
Inf3rnal Can you update this script for the latest version of Mys.
|
Id say its a good idea to PM Inf3rnal for this, it seems that he hasnt been active for a while though.
|
All times are GMT -5. The time now is 01:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.