Jump to content

Jon

Members
  • Posts

    253
  • Joined

  • Last visited

Posts posted by Jon

  1. Inside the div tag for that area put the code you want for example:

    The screenshot centre is installed and i want it to show a random screenshot:

    <div id="leftcontent"></div>
    <table width="247" height="61" border="1" bordercolor="#000000">
         <tr>
           <td bordercolor="#000000"><div align="center"><?php Screenshots::show_random_screenshot(); ?></div></td>
         </tr>
       </table>
    </div>
    

    That would show:

    rndm.jpg

    Or if you wanted to just put something like a bit of text:

    <div id="leftcontent"></div>
    <table width="247" height="61" border="1" bordercolor="#000000">
         <tr>
           <td bordercolor="#000000"><div align="center">Our Virtual airline is amazing,wait until you join us!</div></td>
         </tr>
       </table>
    </div>
    

    Hope this helps:

    Jon

  2. I believe it's just change

    # After how long to mark a pilot inactive, in days
    Config::Set('PILOT_AUTO_RETIRE', true);
    Config::Set('PILOT_INACTIVE_TIME', 15);
    
    

    To:

    # After how long to mark a pilot inactive, in days
    Config::Set('PILOT_AUTO_RETIRE', true);
    Config::Set('PILOT_INACTIVE_TIME', 30);

  3. In your core/local.config.php edit this line:

    Config::Set('PILOTID_LENGTH', 4);	# Length of the Pilot ID

    To however many numbers you want, so in you case it would be:

    Config::Set('PILOTID_LENGTH', 3);	# Length of the Pilot ID

    Jon

    P.s. Make a backup og your local.config.php file before editing

  4. This is What I Use. Look Here Just added a few php functions to the orginal code

    IS that what you want~? If Yes then it's:

    <h3><?php echo $title?></h3>
    
    <?php
    if(!$allpilots)
    {
    	echo 'There are no pilots!';
    	return;
    }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
    <th>Pilot ID</th>
    <th>Name</th>
    <th>Rank</th>
    <th>Flights</th>
    <th>Hours</th>
       <th>Active/Inactive</th>
       <th>VATSIM ID</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($allpilots as $pilot)
    {
    /* 
    	To include a custom field, use the following example:
    
    	<td>
    		<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
    	</td>
    
    	For instance, if you added a field called "IVAO Callsign":
    
    		echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');		
     */
    
     // To skip a retired pilot, uncomment the next line:
     //if($pilot->retired == 1) { continue; }
    ?>
    <tr>
    <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
    		<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
    </td>
    <td>
    	<img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    		alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    
    	<?php echo $pilot->firstname.' '.$pilot->lastname?>
    </td>
    <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
    <td><?php echo $pilot->totalflights?></td>
    <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
       <td> <?php if($userinfo->retired == '1') echo "Retired"; else echo "Active";?></td>
       <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></td>
    <?php
    }
    ?>
    </tbody>
    </table>

    Remember you need to put this into your chosen skins folder so you don't overwrite the original file.

    Regards,

    Jon

  5. I have been making some modules for the site www.usaflightclub.com however, even though my code is in the right place etc.The modules won't show just getting a "Te Module ____ Doesn't exisit@ My modules code for example:

    
    
    
    
    <?php
    
    class east extends CodonModule
    {
    
           public function index()
           {                       
    
           Template::Show('east_region.tpl');
    
           }
    }
    ?>
    
    
    
    
    
    

    You Help is most welcome,

    Thanks,

    Jon

  6. Just create three diferent css rules. or example on my site I have two collums so i have:

    <div id="banner"></div>
    
    
     <div id="body">
    
       <div id="left"></div>
    
    
       <div id="right">
    <? echo $page_content; ?>
    </div>

    And then for my css file

    #wrapper #body #left {
    width: 200px;
    height: 500px;
    float: left;
    background-color: #888686;
    background-image: url(http://websiteupgradges.leavirtual.com/lib/skins/LEAV/images/img_240.jpg);
    background-repeat: no-repeat;
    }
    #wrapper #body #right {
    height: 500px;
    width: 600px;
    float: right;
    }
    

    Then put the info you want inside the div tags so on my right i wanted the page content:

       <div id="right">
    <? echo $page_content; ?>
    </div>

    Then, say I wanted to have popupnews by simpilot on the left:

    <div id="left">
    <?php
    
    // Show the News module, call the function ShowNewsFront
    //	This is in the modules/Frontpage folder
    
    PopUpNews::PopUpNewsList(5);
    
    
    
    ?>
    
    </div>

    Hope This Helps

    Jon

  7. Well, after a lot of work with help from Tom, I've got my first skin created and nearly finished. This won't be a release not even a beta but I'll make some skins for the community to return the favour.

    website.jpg

    TO DO:

    Add a right hand panel

    Code In Admin Panel Dropdown

    Modules On Front Page

    Jon

×
×
  • Create New...