Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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: 20,480
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memberlist (user avatar) Alaric Questions and Supports 6 06-01-2012 02:28 AM
Avatars StarGirl Questions and Supports 6 03-31-2012 11:50 AM
Pets as avatars ToonDartist Suggestions and Feature Requests 6 03-23-2011 11:50 PM
User Avatars konzair Suggestions and Feature Requests 4 01-27-2011 04:50 AM
Memberlist? Celcia Questions and Supports 5 05-19-2009 09:17 PM


All times are GMT -5. The time now is 07:30 AM.

Currently Active Users: 800 (0 members and 800 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636