Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2013, 03:16 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 45,086
Missy Master is an unknown quantity at this point
Default Question: Resizing Pet images for the myadopts and stats etc

I'm posting this question here in case others need to see how to do this :)

How would we resize the images shown on the myadopts and stats and market etc pages, for the pet images? Right now mine are all showing at regular size, and that would be fine for the manage section but the lists where there are a lot, each pet really dominates!

I tried this:

$image->resize(150);

in various places but no go, and I don't want to mess anything up! Plus Im not sure how to do it as 150 x 200 or something. Thanks for the help! :)
Reply With Quote
  #2  
Old 04-02-2013, 07:13 AM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,232
AlexC is an unknown quantity at this point
Default

Well, one way you could resize all pets is through the css sheet of your theme. Theoretically, (I don't know if this would work but it sounds like it might) you could put classes around certain images in the code and then in the stylesheet, specify that all images in that class are a certain size.

The only downsize is it would probably resize all images.
__________________
Reply With Quote
  #3  
Old 04-03-2013, 10:05 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,095
Hall of Famer is on a distinguished road
Default

I've solved this problem for Anna. Resizing an adoptable's image can be a bit tricky, since the image is wrapped inside a Link Object. For this reason, you have to get the link object and retrieve its image property before playing with image attributes.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Stats Page & Little Icon Glow Questions and Supports 4 12-07-2014 08:29 AM
Image Size: Myadopts & Stats pages Missy Master Questions and Supports 3 06-29-2014 01:07 PM
Showing stats on click page Hwona Questions and Supports 9 05-07-2014 07:40 AM
Adoptable Stats Abronsyth Suggestions and Feature Requests 2 09-10-2011 02:28 PM
Quick Question about Images.. Lady Questions and Supports 4 03-05-2009 05:28 PM


All times are GMT -5. The time now is 03:26 AM.

Currently Active Users: 9781 (0 members and 9781 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636