Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Display AdoptSpotlight anywhere? c:
Hello! c:
I was wondering if there was a way to display a user's favorite pet anywhere on-site, and as a module in the sidebar? I was wondering because I'm planning on using the user's favorite pet as their 'active pet', which they'll be able to explore with, although I'm not quite sure how to have it display the pet. Thanks for the help! <3 |
#2
|
|||
|
|||
I need this as well, but I'll try to fiddle around to see if it can work the same was as the avatar for you ^^
|
#3
|
||||
|
||||
Sure you can do that by creating a module for sidebar, although to display it on another widget/location can be difficult at this moment. You need to write a very simple php code in the adoptsoptlight module, I will post a tutorial a few days later.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
Alright, awesome! Thanks, I'll play around with the code and see if I can get it to display the pet anywhere. ^^ (Sorry for the late reply! ^^;)
|
#5
|
||||
|
||||
Alright, I will post the tutorial this weekend or early next week. It really should not be difficult, although you better test it thoroughly on your site to make sure its not malfunctioning.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
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); |
#7
|
||||
|
||||
Quote:
__________________
|
#8
|
||||
|
||||
Thats indeed a smart strategy, the module system sure makes your life easy if you know what you are doing. Most users unfamiliar with PHP are expected to be using HTML code instead of PHP code though, but there are circumstances that you have to use PHP code.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#9
|
||||
|
||||
Quote:
//Long reply whoops |D |
#10
|
||||
|
||||
To get it centered, simply add this to the code block:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
Tags |
activepet, adoptspotlight, explore, module, sidebar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.4 Shop Listing Display | Kyttias | Mys v1.3.x Mods | 13 | 06-13-2016 02:31 PM |
Display on Phone? | Glow | Questions and Supports | 1 | 01-05-2015 08:56 AM |
Changing Shop and Item Display? | Abronsyth | Questions and Supports | 2 | 12-16-2014 03:25 PM |
Display codes for all of your adoptables | kisazeky | Questions and Supports | 9 | 09-03-2010 03:32 PM |
Edit Featured Adoptable display | Tequila | Questions and Supports | 2 | 02-20-2009 10:19 AM |
What's New? |
What's Hot? |
What's Popular? |