View Single Post
  #1  
Old 04-12-2011, 11:13 AM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,954
Inf3rnal is on a distinguished road
Default Avatars in Memberlist

This is a quick and easy modification that will show a user's avatar next to their name in the Memberlist.



First off open profile.php in any plain text editor (Notepad, Notepad++, etc).

Then Find:
Code:
$level=@mysql_result($result,$i,"usergroup");
Add Below:
Code:
$avatar=@mysql_result($result,$i,"avatar");
Then Find:
Code:
$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";
Replace With:
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>";
Enjoy :3

Edit:
Quick Note, If you want to change the size of the avatar shown just change the values of "width='25' height='25'"

Last edited by Inf3rnal; 04-12-2011 at 01:46 PM.
Reply With Quote