Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-08-2016, 01:28 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,550
Abronsyth is on a distinguished road
Default Restyling the adopt manage page

Resolved

I am trying to restyle the .../myadopts/manage/ID# page to actually display adopt data, but it's proving to be difficult. For some reason the methods that work to display data everywhere else in the .../myadopts file does not work right on the manage page. Elsewhere data can be displayed like;
PHP Code:
{$adopt->getTotalClicks()} 
And that'll display the total clicks an adopt has accumulated, but that same code does not work within the manage function.

If I could figure out how to at least define things within the manage function then I could get it all working, but I've tried;
PHP Code:
        $gender $this->getField("gender")->getValue(); 
And it doesn't work...so I'm lost.

Here is my public function manage:
PHP Code:
    public function manage(){
        
$mysidia Registry::get("mysidia");
        
$aid $this->getField("aid")->getValue();
        
$name $this->getField("name")->getValue();
        
$image $this->getField("image");
        
        
$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>
                        <a href='http://catisserie.mysidiahost.com/levelup/click/
{$aid}'>Play</a> | <a href='http://catisserie.mysidiahost.com/myadopts/stats/{$aid}'>Stats</a> | <a href='http://catisserie.mysidiahost.com/myadopts/bbcode/{$aid}'>Codes</a> | <a href='http://catisserie.mysidiahost.com/myadopts/freeze/{$aid}'>(Un)Freeze</a><br>
                        <ul>
                                        <li>Name: 
{$name} | <a href='http://catisserie.mysidiahost.com/myadopts/rename/{$aid}'>change</a></li>
                                        <li>Birthday: date adopted will display here </li>
                                        <li>Type: adopt breed will display here</li>
                                        <li>Sex: m or f will display here</li>
                                        <li>Trade Status: trade status will display here | <a href='http://catisserie.mysidiahost.com/myadopts/trade/
{$aid}'>change</a></li>
                                        <li>LVL: level will display here</li>
                                        <li>Total EXP: number of clicks will go here</li> 
                                    </ul>"
));
        
        
$document->add(new Image("templates/icons/delete.gif"));
        
$document->add(new Link("pound/pound/{$aid}"" Pound {$name}"TRUE)); 
    } 
Sorry again for all of the questions ;~;
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-18-2016 at 02:49 PM.
Reply With Quote
 


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


All times are GMT -5. The time now is 02:34 PM.

Currently Active Users: 9929 (0 members and 9929 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