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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-18-2017, 09:57 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 95,802
Dinocanid is on a distinguished road
Default

It would go in like this (following the example in step 2):
PHP Code:
    public function index(){ 
        
$mysidia Registry::get("mysidia"); 
        
$document $this->document;    
        
$status $mysidia->user->getstatus();
        
        
$document->setAlign(new Align("center""middle"));
        
$document->setTitle("Achievements");
        
        
$document->add(new Paragraph());
        
$document->add(new Comment("<h2> Unlocked </h2>"));
        if(
$status->fullpantry == "unlocked"){
         
$document->add(new Comment("
                <div class=\"s_panel sc_item\">
                <img rel='tooltip' title='<em>Achievement Description<em>' src='InsertImageHere'/}>
                <br/>
                  <b>Achievement Name</b>
                  <br/>
                  
                 </div>"
FALSE));
         }
                 
                
$document->add(new Paragraph());
                
$document->add(new Comment("<h2> Locked </h2>"));
                
                
                if(
$status->fullpantry == "locked"){
                
$document->add(new Comment("
                <div class=\"s_lockedpanel sc_item\">
                <img rel='tooltip' title='<em>Own 10 or more adoptables to unlock<em>' src='InsertImageHere'/}>
                <br/>
                  <b>???</b>
                  <br/>
                 </div>"
FALSE));
                 }

if(
$status->OwnCertainAdopt == "locked"){ 
                
$document->add(new Comment(
                <div class=\"s_lockedpanel sc_item\"> 
                <img rel='tooltip' title='<em>Own InsertSpeciesHere to unlock<em>' src='IMAGE'/}> 
                <br/> 
                  <b>???</b> 
                  <br/>  
</div>"
FALSE));
    } 
__________________
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:36 PM.

Currently Active Users: 2645 (0 members and 2645 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636