View Single Post
  #6  
Old 08-13-2014, 03:17 PM
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: 575,862
Hall of Famer is on a distinguished road
Default

Quote:
Originally Posted by Abronsyth View Post
I have it right here. I can see where I need to change it, but I'm still uneasy about PHP, so I don't want to break it, haha.
Yup, you just have to remove anything related to the variable $typeCell. Here you goes, locate these lines:

PHP Code:
                $row = new TRow
                
$idCell = new TCell(new RadioButton("""id"$id));                 
                
$imageCell = new TCell(new Image($adopt->getEggImage(), $adopt->getType())); 
                
$imageCell->setAlign(new Align("center")); 
                 
                
$type = new Comment($adopt->getType()); 
                
$type->setBold(); 
                
$description = new Comment($adopt->getDescription(), FALSE); 
                
$typeCell = new TCell
                
$typeCell->add($type); 
                
$typeCell->add($description);             

                
$row->add($idCell); 
                
$row->add($imageCell); 
                
$row->add($typeCell); 
                
$adoptTable->add($row); 
Replace them by:

PHP Code:
                $row = new TRow
                
$idCell = new TCell(new RadioButton("""id"$id));                 
                
$imageCell = new TCell(new Image($adopt->getEggImage(), $adopt->getType())); 
                
$imageCell->setAlign(new Align("center"));          
                
$row->add($idCell); 
                
$row->add($imageCell); 
                
$adoptTable->add($row); 
__________________


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