View Single Post
  #1  
Old 01-11-2016, 05:19 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 49,584
tahbikat is on a distinguished road
Default 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-
Male-

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:
Frozen:

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

Last edited by tahbikat; 01-14-2016 at 01:21 PM.
Reply With Quote