Mysidia Adoptables Support Forum  

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

Thread Tools Display Modes
Old 06-16-2020, 04:30 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia
Join Date: May 2020
Location: Tennessee
Posts: 69
Gender: Female
Credits: 2,119
Micolai is on a distinguished road
Arrow Fixing the size issue with avatars in private messages

This tutorial I'm making because of a issue I ran into with private message avatar displays. I had my husband create a test account and he uploaded an image that was quite large. On his profile, the site sidebar's avatar was the right size, but when he sent me a test message I saw his avatar was its legit size, which was huge. So, thanks to Restless, she helped me make a fix for this issue.

- Open up your Files Manager
- Open up
classes/class_privatemessage.php and you will see this:

public function getPostbar(){
if($this->mid == 0) return FALSE;
$sender = new Member($this->fromuser);
$this->postbar = new Table("postbar", "100%", FALSE);
$postHeader = new TRow;
$postHeader->add(new TCell(new Image($sender->profile->getAvatar(),'',150)));
return $this->postbar;
You want to only change the
$postHeader bit. Yours will look different than mine because mine has the fix already so the code below is what you need to change your $postHeader to. So change to:

$postHeader->add(new TCell(new Image($sender->profile->getAvatar(),'',150)));
The 150 is the size you want the avatar. Hope this helps!
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion

Last edited by Micolai; 06-18-2020 at 02:04 PM.
Reply With Quote

avatar, message, private

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

All times are GMT -5. The time now is 02:25 AM.

Currently Active Users: 376 (1 members and 375 guests)
Threads: 4,022, Posts: 31,675, Members: 15,661
Welcome to our newest members, Wendy Hills.

What's New?

What's Hot?

What's Popular?

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