Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Reply
 
Thread Tools Display Modes
  #11  
Old 04-06-2018, 01:51 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

I deleted the beausaviary.mysidiahost.com from the URL's and now the error doesn't appear but it just shows this:

  Spoiler: Invalid 
An error has occurred.
You specified an invalid action that cannot be completed.
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.
Reply With Quote
  #12  
Old 04-06-2018, 01:55 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 21,596
Dinocanid is on a distinguished road
Default

Can you show what your view file looks like?
__________________
Reply With Quote
  #13  
Old 04-06-2018, 01:56 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

Quote:
Originally Posted by Dinocanid View Post
Can you show what your view file looks like?

  Spoiler: encyclopediaview.php 
PHP Code:
<style>
   .myTable { width:600px; border-collapse:collapse; }
.myTable th { background-color:#543210;width:600px; padding:5px;border:5px solid #543210;color:#000;}
.myTable td { padding:5px;border:5px solid #543210;height:100px; }
</style>
<?php
class EncyclopediaView extends View{

    public function 
index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;        
        
$document->setTitle("Encyclopedia");  
        
$document->add(new Comment("<h2>Choose a species below</h2>"));
        
        
$document->add(new Comment("<a href='/encyclopedia/green_budgie'>Green Budgie February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/blue_budgie'>Blue Budgie February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/harry'>Harry February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/pied_budgie'>Pied Budgie February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/beau'>Beau February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/half_sider'>Half Sider Budgie February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/dark_grey_yellowface'>Dark Grey Yellowface Cockatiel February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/light_grey_yellowface'>Light Grey Yellowface Cockatiel February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/blue_grey_yellowface'>Blue Grey Yellowface Cockatiel February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/grey_with_white_wing'>Grey with White Wing Cockatiel February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/white_and_grey'>White and Grey Cockatiel February/March 2018</a>"));
        
$document->add(new Comment("<a href='/encyclopedia/lutino'>Lutino Cockatiel February/March 2018</a>"));
    }
    
    public function 
green_budgie(){
    
$mysidia Registry::get("mysidia"); 
    
$document $this->document;
    
$species "Green Budgie";
    
$topclicks $mysidia->db->select("owned_adoptables", array("totalclicks"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$topadopt $mysidia->db->select("owned_adoptables", array("name"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$topadoptowner $mysidia->db->select("owned_adoptables", array("owner"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$count $mysidia->db->select("owned_adoptables", array(), "Type='{$species}'")->rowCount();
    
$document->setTitle("<center>{$species}</center>");
    
$document->add(new Image("http://ibb.co/js7YrH"));
    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Basic info</th>
</tr>
<tr>
<td><b>Species:</b> 
{$species} <br></br><b>Height:</b> 20cm<br></br><b>Group:</b> Budgie <br></br><b>Rarity:</b> Very Common<br></br><b>Disposition:</b> Good<br></br><b>Description:</b> A lovely, simple green budgie with extra fluff. <br></br><b>Obtainable:</b> Adoption Center<br></br</td>
</tr>
</table>"
));

    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Background</th>
</tr>
<tr>
<td>The green budgie is based on it's natural colour, but the most important thing is that it is super fluffy.</td>
</tr>
</table>"
));

    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Statistics</th>
</tr>
<tr>
<td><b>Amount In-Game:</b> 
{$count}<br></br><b>Top {$species}:</b> {$topadopt} with {$topclicks} clicks. (Owned by {$topadoptowner})</td>
</tr>
</table>"
));

$document->add(new Comment("<a href='http://beausaviary.mysidiahost.com/encyclopedia'>Return to Encyclopedia</a>"));
    }

 public function 
blue_budgie(){
    
$mysidia Registry::get("mysidia"); 
    
$document $this->document;
    
$species "Blue Budgie";
    
$topclicks $mysidia->db->select("owned_adoptables", array("totalclicks"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$topadopt $mysidia->db->select("owned_adoptables", array("name"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$topadoptowner $mysidia->db->select("owned_adoptables", array("owner"), "Type='{$species}'""1 ORDER BY totalclicks DESC LIMIT 1")->fetchColumn();
    
$count $mysidia->db->select("owned_adoptables", array(), "Type='{$species}'")->rowCount();
    
$document->setTitle("<center>{$species}</center>");
    
$document->add(new Image("http://ibb.co/gvRhkc"));
    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Basic info</th>
</tr>
<tr>
<td><b>Species:</b> 
{$species} <br></br><b>Height:</b> 20cm<br></br><b>Group:</b> Budgie <br></br><b>Rarity:</b> Common<br></br><b>Disposition:</b> Good<br></br><b>Description:</b> Fred. Fred who? Fred who is Freda of course! <br></br><b>Obtainable:</b> Adoption Center<br></br</td>
</tr>
</table>"
));

    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Background</th>
</tr>
<tr>
<td>The blue budgie is summed up in 2 words. Fred. Freda.</td>
</tr>
</table>"
));

    
$document->add(new Comment("<center><table class='myTable'>
<tr>
<th>Statistics</th>
</tr>
<tr>
<td><b>Amount In-Game:</b> 
{$count}<br></br><b>Top {$species}:</b> {$topadopt} with {$topclicks} clicks. (Owned by {$topadoptowner})</td>
</tr>
</table>"
));

$document->add(new Comment("<a href='http://beausaviary.mysidiahost.com/encyclopedia'>Return to Encyclopedia</a>"));
    }
}
?>
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.
Reply With Quote
  #14  
Old 04-06-2018, 01:59 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 21,596
Dinocanid is on a distinguished road
Default

Well the view file looks fine. Did you make sure to add functions to encyclopedia.php too?
__________________
Reply With Quote
  #15  
Old 04-06-2018, 02:02 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

Quote:
Originally Posted by Dinocanid View Post
Well the view file looks fine. Did you make sure to add functions to encyclopedia.php too?
Sorry what does that mean?! I am rubbish at all this coding stuff. This is what is inside the encyclopedia.php file:
  Spoiler: Code 
PHP Code:
<?php

class EncyclopediaController extends AppController{

    public function 
__construct(){
        
parent::__construct("member");    
    }
    
    public function 
index(){
        
$mysidia Registry::get("mysidia");
    }
    
    public function 
species_name_here(){
                
$mysidia Registry::get("mysidia");   
        }
}
?>


Also, the font I chose isn't showing up on the theme :(
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.

Last edited by goofyunicorn; 04-06-2018 at 02:04 PM.
Reply With Quote
  #16  
Old 04-06-2018, 02:14 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 21,596
Dinocanid is on a distinguished road
Default

In the OP, it mentions that you need to add another public function to the encyclopedia.php too. Like this:
PHP Code:
  public function green_budgie(){ 
                
$mysidia Registry::get("mysidia");    
        } 
"Species_name_here" is meant to be replaced with the ones you make.
The font isn't loading because I forget to send you the .ttf file. I'll go find it and edit it into this post as an attachment.
__________________
Reply With Quote
  #17  
Old 04-06-2018, 02:14 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

Quote:
Originally Posted by Dinocanid View Post
In the OP, it mentions that you need to add another public function to the encyclopedia.php too. Like this:
PHP Code:
  public function green_budgie(){ 
                
$mysidia Registry::get("mysidia");    
        } 
The font isn't loading because I forget to send you the .ttf file. I'll go find it and edit it into this post as an attachment.
Thank you :)
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.
Reply With Quote
  #18  
Old 04-06-2018, 02:34 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

Quote:
Originally Posted by Dinocanid View Post
In the OP, it mentions that you need to add another public function to the encyclopedia.php too. Like this:
PHP Code:
  public function green_budgie(){ 
                
$mysidia Registry::get("mysidia");    
        } 
"Species_name_here" is meant to be replaced with the ones you make.
The font isn't loading because I forget to send you the .ttf file. I'll go find it and edit it into this post as an attachment.
I have it working now but for some reason it the statistics are wrong?
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.

Last edited by goofyunicorn; 04-06-2018 at 02:46 PM.
Reply With Quote
  #19  
Old 04-06-2018, 03:02 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 21,596
Dinocanid is on a distinguished road
Default

I got the file for you, just unzip it and upload it to the public_html folder. You may need to "ctrl+shift+r" to see the font.

For the statistics, that weird. Is "$species" exactly the same as the species name? I noticed that it's called "budgie" in the adopt shop, but you have it as blue/green/pied budgie in the encyclopedia.

(Also as a side note, it looks like you need to fix the links for your dropdown menus. For example, visiting the staff page and then clicking on the news will take you to an invalid page. To know how to fix it, there's a nice guide here: link)
Attached Files
File Type: zip cutie-patootie-skinny.zip (22.4 KB, 2 views)
__________________
Reply With Quote
  #20  
Old 04-06-2018, 03:20 PM
goofyunicorn goofyunicorn is offline
Kelpie
 
Join Date: Feb 2018
Location: Unicorn Land
Posts: 100
Gender: Female
Credits: 2,229
goofyunicorn is on a distinguished road
Default

Quote:
Originally Posted by Dinocanid View Post
I got the file for you, just unzip it and upload it to the public_html folder. You may need to "ctrl+shift+r" to see the font.

For the statistics, that weird. Is "$species" exactly the same as the species name? I noticed that it's called "budgie" in the adopt shop, but you have it as blue/green/pied budgie in the encyclopedia.

(Also as a side note, it looks like you need to fix the links for your dropdown menus. For example, visiting the staff page and then clicking on the news will take you to an invalid page. To know how to fix it, there's a nice guide here: link)
Oh yeah. It do alternative images though so thats why I do them seperatly.
__________________

Check out my Adoptable's Site! Art by the wonderful Eyesauce.
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:11 PM.

Currently Active Users: 196 (1 members and 195 guests)
Threads: 3,951, Posts: 31,454, Members: 15,544
Welcome to our newest members, howling11.
BER





What's New?

What's Hot?

What's Popular?


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