Inf3rnal
04-12-2011, 11:13 AM
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/Tutorials/Mysidia/memberlistava.png
First off open profile.php in any plain text editor (Notepad, Notepad++, etc).
Then Find:
$level=@mysql_result($result,$i,"usergroup");
Add Below:
$avatar=@mysql_result($result,$i,"avatar");
Then Find:
$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";
Replace With:
$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'"
http://dl.dropbox.com/u/614379/Tutorials/Mysidia/memberlistava.png
First off open profile.php in any plain text editor (Notepad, Notepad++, etc).
Then Find:
$level=@mysql_result($result,$i,"usergroup");
Add Below:
$avatar=@mysql_result($result,$i,"avatar");
Then Find:
$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";
Replace With:
$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'"