Quote:
Originally Posted by pachoofoosh
I figured out how to add it to the sidebar!
I used your tutorial on how to add avatars onto the sidebar, but played around with the script for a bit to see if it'd display the favorite pet. uwu
To display the AdoptSpotlight in the sidebar, make a new module, and in the text box for the Module's PHP, add this:
Code:
$profile = $mysidia->user->getprofile();
$favpet = new Image("levelup/siggy/" . $profile->getFavpetID());
$favpet->resize(100); // Resize the image to a certain size. This makes it 100x100 pixels.
$moduleContainer->add($favpet);
|
Awesome! ;3 now to get it centered. Thanks! ;3