M.A.S. Reference Guide
Just thought I'd post some links to helpful threads and posts
free stuff
Spoiler: .
tutorials, tips, and reference
Spoiler: .
Explore Systems
Tinkering w/ Smarty Template:
Official Modifications (v1.3.4.)
Themes
Bugs & Fixes
others
Spoiler: .
Feel free to suggest threads or alert me of errs.
Just thought I'd post some links to helpful threads and posts
free stuff
tutorials, tips, and reference
- Gender Images & Snowflake
- Sending new user a welcome message
- Ideas for hiding promocodes
- Complying w/ COPPA
- Resetting Adoptables
- Add avatar to sidebar (v.1.3.3) (Compatible w/ v.1.3.4.)
- Building Custom Pages
- Reconstructing Profile Page
- Showing Pet Info on Manage Page
Species Rarity w/ Images
Explore Systems
- Kyttias: (P1) (P2)
- Cailynmae: (here) | (Tahbikat's Modification)
- AlexC: (here) | (Kyttias's Modification)
Tinkering w/ Smarty Template:
Official Modifications (v1.3.4.)
- Higher or Lower Game
- Alchemy
- Event/Holiday Shops
- Shop & Inventory: NPCs, Item Display, & Tooltips | Shop Listing Display
- News System
- Adoptable Gender Ratio
- Adoptable Itemdrop
- Gender Change Item Function
- Know Gender of Pets Before Naming
Themes
Bugs & Fixes
- Failed to create forum account Install MyBB v1.6.x or look to these threads: (P1) | (P2)
- Itemshop Validation
- SYSTEM User Glitch
- Strict Standards errors in ACP with PHP 5.4+
- Bug w/ Multiple Adopt Pages
- Backlashes by Apostrophes in Profile Comments (Removal)
- Can't Login From Profile Page
others
Changing the name of a file
Say if we want to rename http://yoursite.com/inventory to http://yoursite.com/stash. We look for the following:
Change InventoryView to StashView.
In stash.php, you'll find:
Change InventoryController to StashController.
Make sure to update any links that don't match up.
Random Name Generator
(Credit goes to Wallie987)
In adopt.php, under $gender = $adopt->getGender();, add:
and comment/delete this line:
Repeat in class_promo.php and class_breeding.php.
Instant Inbox Delete Redirect
In inbox.php, find the delete function and and replace with this:
Say if we want to rename http://yoursite.com/inventory to http://yoursite.com/stash. We look for the following:
- inventory.php Rename this file to stash.php, and open it in another tab.
- inventory.php (found in the view folder.) Rename this file to stashview.php and open it in another tab.
- lang_inventory.php Just rename to lang_stash.php
PHP:
<?php
use Resource\Collection\LinkedList;
class InventoryView extends View{
(...)
In stash.php, you'll find:
PHP:
<?php
class InventoryController extends AppController{
(...)
Make sure to update any links that don't match up.
Random Name Generator
(Credit goes to Wallie987)
In adopt.php, under $gender = $adopt->getGender();, add:
PHP:
$randName = array('NAME','NAME','NAME'); #List of possible outcomes
shuffle($randName); #Picking random outcome
foreach ($randName as $randName) {
$name = "$randName"; #Assigning variable to chosen outcome
}
PHP:
$name = (!$mysidia->input->post("name"))?$adopt->getType():$mysidia->input->post("name");
Instant Inbox Delete Redirect
In inbox.php, find the delete function and and replace with this:
PHP:
public function delete(){
header( "Location: /inbox" ); #Redirect
$mysidia = Registry::get("mysidia");
try{
$this->message = new PrivateMessage($mysidia->input->get("id"));
$this->message->remove();
}
catch(MessageNotfoundException $pne){
$this->setFlagss("nonexist_title", "nonexist");
}
}
Feel free to suggest threads or alert me of errs.
Last edited: