View Single Post
  #5  
Old 06-06-2020, 09:05 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia!
 
Join Date: May 2020
Location: Tennessee
Posts: 130
Gender: Female
Credits: 38,722
Micolai is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
move it to where? to other place or center the image on the same page??
if you want to center right or left the image in the same place, then you need to replace the code with something like this:
$document->add(new Comment("<div class=''><img src='{$this->avatar}' width='100'></div>"));

i played with the code and that works, i center mine with the code i have in CSS (<div class='center'>)
now if you want to display the avatar in another page... then you will need to call the database and other things to get the url of the user and display it in a $document->add(new Comment(""));
haven't tried to display the avatar in another page that's not the userprofile.
Thank you for your help! Turns out I needed to just change some numbers in a module.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote