View Single Post
  #7  
Old 12-20-2014, 11:38 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 27,822
parayna is on a distinguished road
Default

Thank you! It worked! I even managed to edit the align:

PHP Code:
                $aCell->setAlign(new Align("center""bottom")); 
To make it look like they were on the same level :P

  Spoiler: For anyone interested in the dimensions I used, for whatever reason XD 
PHP Code:
                $lvl $adopt->getCurrentLevel();
                
# if level 0 (egg) resize to 50px
                
if ($lvl == 0) { $cell->add(new Comment("<a href='/myadopts/manage/{$aid}'><img src='{$adopt->getImage()}' width= '90px'></a>")); }
                
# if level 1 (baby) resize to 100px
                
if ($lvl == 1) { $cell->add(new Comment("<a href='/myadopts/manage/{$aid}'><img src='{$adopt->getImage()}' width= '130px'></a>")); }
                
# if level is 2 or greater (adult) resize to 200px
                
if ($lvl >= 2) { $cell->add(new Comment("<a href='/myadopts/manage/{$aid}'><img src='{$adopt->getImage()}' width= '200px'></a>")); } 


Thanks~

Last edited by parayna; 01-02-2015 at 12:12 AM.
Reply With Quote