Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #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,508
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
  #2  
Old 04-12-2011, 12:38 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,453
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-12-2011, 01:31 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,338
AlexC is an unknown quantity at this point
Default

thank you very much, this was very easy and nice. ^.^
Reply With Quote
  #4  
Old 06-01-2011, 11:20 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,215
SilverDragonTears is on a distinguished road
Default

How do you allow member's to have avatars in the first place?

ETA:

Figured it out.

Last edited by SilverDragonTears; 06-01-2011 at 12:20 PM.
Reply With Quote
  #5  
Old 06-24-2011, 08:02 AM
AlkseeyaKC's Avatar
AlkseeyaKC AlkseeyaKC is offline
Member
 
Join Date: Jan 2009
Location: Planet Kalzy
Posts: 72
Gender: Female
Credits: 9,248
AlkseeyaKC
Send a message via AIM to AlkseeyaKC
Default

Thanks I used this. Is there a way I can use it for Online List?
__________________
Call me KC!
http://alkseeyakc.deviantart.com/
Reply With Quote
  #6  
Old 06-24-2011, 03:41 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,453
Hall of Famer is on a distinguished road
Default

Actually you can make it into a public modification compatible with Mys v1.2.x.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 06-25-2011, 11:25 AM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,508
Inf3rnal is on a distinguished road
Default

Quote:
Originally Posted by AlkseeyaKC View Post
Thanks I used this. Is there a way I can use it for Online List?
Your welcome. Yes you can just add those 3 things in the correct areas.

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.
Reply With Quote
  #8  
Old 06-27-2011, 05:21 PM
AlkseeyaKC's Avatar
AlkseeyaKC AlkseeyaKC is offline
Member
 
Join Date: Jan 2009
Location: Planet Kalzy
Posts: 72
Gender: Female
Credits: 9,248
AlkseeyaKC
Send a message via AIM to AlkseeyaKC
Default

OOO thanks! That would be awesome of you! I'm still learning the coding and not really good at it yet. XD;
__________________
Call me KC!
http://alkseeyakc.deviantart.com/
Reply With Quote
  #9  
Old 04-25-2012, 06:59 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,327
Alaric is on a distinguished road
Default

Inf3rnal Can you update this script for the latest version of Mys.
Reply With Quote
  #10  
Old 04-25-2012, 09:36 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,453
Hall of Famer is on a distinguished road
Default

Id say its a good idea to PM Inf3rnal for this, it seems that he hasnt been active for a while though.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

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 12:00 PM.

Currently Active Users: 459 (0 members and 459 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