Thread: Mys 1.3.4 Simple NPC Battle
View Single Post
  #26  
Old 12-14-2016, 07:16 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,606
Abronsyth is on a distinguished road
Default

Alright, try changing the manage function in myadoptsview.php to this:
PHP Code:
   public function manage(){ 
            
        
$mysidia Registry::get("mysidia"); 
        
$aid $this->getField("aid")->getValue(); 
        
$name $this->getField("name")->getValue(); 
        
$image $this->getField("image"); 
        
$trophies $mysidia->db->select("owned_adoptables", array("trophies"), "aid = '{$aid}'")->fetchColumn();

        
$document $this->document;         
        
$document->setTitle("Managing {$name}"); 
             
        
$document->add($image); 
        
$document->add(new Comment("<br><br>This page allows you to manage {$name}.  Click on an option below to change settings.<br> 
 <center>
{$name} has {$trophies} trophies!</center><br>")); 
        
$document->add(new Link("pet/profile/$aid"' View Public Profile'TRUE)); 
        
$document->add(new Image("templates/icons/add.gif")); 
        
$document->add(new Link("levelup/click/{$aid}"" Level Up {$name}"TRUE)); 
        
$document->add(new Image("templates/icons/stats.gif")); 
        
$document->add(new Link("myadopts/stats/{$aid}"" Get Stats for {$name}"TRUE)); 
        
$document->add(new Image("templates/icons/bbcodes.gif")); 
        
$document->add(new Link("myadopts/bbcode/{$aid}"" Get BBCodes / HTML Codes for {$name}"TRUE)); 
        
$document->add(new Image("templates/icons/title.gif")); 
        
$document->add(new Link("myadopts/rename/{$aid}"" Rename {$name}"TRUE));  
        
$document->add(new Image("templates/icons/trade.gif")); 
        
$document->add(new Link("myadopts/trade/{$aid}"" Change Trade status for {$name}"TRUE));  
        
$document->add(new Image("templates/icons/freeze.gif")); 
        
$document->add(new Link("myadopts/freeze/{$aid}"" Freeze or Unfreeze {$name}"TRUE));  
        
$document->add(new Image("templates/icons/delete.gif")); 
        
$document->add(new Link("pound/pound/{$aid}"" Pound {$name}"TRUE));  
         
    } 
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote