Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Art Gallery (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=31)
-   -   Colored Gender Images & Frozen Snowflake (http://www.mysidiaadoptables.com/forum/showthread.php?t=4980)

tahbikat 01-11-2016 05:19 PM

Colored Gender Images & Frozen Snowflake
 
Wasn't sure where to post this, but Art Gallery seems appropriate. :P

By default the gender images are plain black. I've simply taken them, recolored them (female = pink, male = blue) and reuploaded them to my site. To save everyone else the trouble of also recoloring them, I figured I would post them!

I've also included a snowflake icon for those of you who want a nice little icon to show users when an adopt is frozen.

Directions: Go to your picuploads folder, delete the f.png and m.png then upload these icons, and make sure they are named f.png (for female) and m.png (for male).

Female- http://i.imgur.com/XwHDD32.png
Male- http://i.imgur.com/vcPrc4k.png

Onto the snowflake (which is really just the image of a colored asterisk, hehe)! First things first, the way I've enabled it on my site is that I use a 10x10 transparent image when a creature isn't frozen, then the snowflake image if they are frozen. I've named these "no.png" and "yes.png" to reflect what the owned_adoptables database column isfrozen outputs.

Here they are. Just right click next to the Not Frozen text until you get the save image option. :P Also, if you don't like the transparent image and instead would rather a faded snowflake or a snowflake with an x on it, you could also do that! Feel free to edit it!

Not Frozen: http://i.imgur.com/bGsab9U.png
Frozen: http://i.imgur.com/gHZJpei.png

To put the icon next to, say, a creature's name/gender in its profile view or the My Adopts page, simply use this bit of code:
PHP Code:

<img src='/picuploads/{$adopt->isFrozen()}.png' /> 


Now, we could also do this same thing for creatures who are/are not using alternate images, by placing the image of a star or something instead of the snowflake. However, this would require a bit more tinkering since the usealternates column also uses "yes" and "no". I'll probably come back to this later with some code for that. Right now I'm too lazy though. ^^'

EDIT: Rarity & Alternate Stars! http://www.mysidiaadoptables.com/for...ead.php?t=4983

Hwona 01-14-2016 08:37 AM

O.o This is actually really smart - planning to use it!

tahbikat 01-14-2016 01:20 PM

Glad you find it useful Wallie!

Also edited to include a link to the rarity stars guide!


All times are GMT -5. The time now is 11:36 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.