Jump to content

USA001

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by USA001

  1. The image not showing up in the badge is a bug.

    The ordering - if you're not doing it manually, set the rank as the flight hours.

    If you're doing it manually, you can still set it as flight hours, but it just has to be in order. So the lowest rank a 1, the next a 2, and so on.

    But correct me if I'm wrong, if they hit 2 hours or more, wouldn't that automatically bump them up to the next rank?

  2. When adding rank, one of the fields has this:

    The order of this rank (if ranks are manually set), or the minimum hours required.

    The way I understand that, is based on hours, hence minimum hours. However, if we wanted/needed to assign rank manually and not by flights or hours, how? Would it not show up in the Pilot Center for each pilot stating that he/she would need so many hours for the next one?

    Now, is there a way to have a rank image added to the badge dynamically? If someone signs up, their badge would have the new hire rank on their badge and as soon as they obtained the next rank, the new hire rank would be replaced with their new one.

  3. I'm posting the code from my pilot_list.tpl for this specific skin. Hopefully, this will help others on this page. Everything is aligned properly and the footer is in its proper place.

    <div class="mcright">
    
                                 <h3><?php echo $title?></h3>
    
    <?php
    if(!$allpilots)
    {
    	echo 'There are no pilots!</div>';
    	return;
    }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
    <th>Pilot ID</th>
    <th>Name</th>
    <th>Rank</th>
    <th>Flights</th>
    <th>Hours</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');		
     */
    ?>
    <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>
    <?php
    }
    ?>
    </tbody>
    </table>
                           </div>

  4.                        <div class="mc0102">
                               <img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_155.jpg" alt="" />
                               <img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_157.jpg" alt="" />
                               <img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_207.jpg" alt="" />
                               <img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_209.jpg" alt="" />
                               <div class="mcl">
                                   <div class="mcl01">
                                       Other Content
                                   </div>
                                   <div class="mcl02">
                                       Put what you want here.
                                   </div>
                               </div>
                           </div>
                       </div>
    <div class="mc02">
                           <div class="mc0201">
                               The Crew
                           </div>
                           <div class="mc0202" style="width: 18px; height: 15px">
                                
                           </div>
                           <div class="mc0203">
                               <div class="mc020301">
                                 <h3><?php echo $title?></h3>
    

    Try removing one or two of those closing divs line 12 13 14 15 in the code above

    That puts the footer up where it shouldn't be, as well as all the content is gone. Re-adding those divs.

  5. Just had a look at your site are you including that template? the page seems to be replicated, can you post your code for the pilots_list.tpl

    Sure, here it is:

    <div class="mcright">
                       <div class="mc01">
                           <div class="mc0101" style="left: 0px; top: 0px">
                               <img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_150.jpg" alt="" />
                               <img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_153.jpg" alt="" />
                               <img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_202.jpg" alt="" />
                               <img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_205.jpg" alt="" />
                               <div class="mcr">
                                   <div class="mcr01">
                                       Look at me
                                   </div>
                                   <div class="mcr02">
                                       <script type="text/javascript">
    
    // Highlighter Scroller II script- By JavaScript Kit (http://www.javascriptkit.com)
    // For this and over 400+ free scripts, visit http://www.javascriptkit.com/
    // This notice must stay intact
    
    //CONFIGURE MESSAGES AND VARIABLES
    var tickercontents=new Array()
    tickercontents[0]='Feel free to visit FsPaintShop for more skins <a href="http://www.fspaintshop.com" target="blank">Visit!</a>'
    tickercontents[1]='Hop on over to Va Central some time.'
    tickercontents[2]='Be sure to visit PHPVMS for support with this system'
    tickercontents[3]='You can change this in the frontpage_main.tpl file'
    
    var tickerwidth="300px"
    var tickerheight="25px"
    var fontcss="font: bold 10px Verdana; color:black"
    var tickdelay=4000 //delay btw messages
    var highlightspeed=2 //2 pixels at a time.
    var highlightcolor="white"
    var backdroptextcolor="#E1E1E1"
    
    ////Do not edit pass this line////////////////
    
    document.write('<style>#highlighterbg a{color:'+backdroptextcolor+'}</style>')
    document.write('<div style="position:relative;left:0px;top:0px; width:'+tickerwidth+'; height:'+tickerheight+';'+fontcss+'">')
    document.write('<span id="highlighterbg" style="position:absolute;left:0;top:0;color:'+backdroptextcolor+'; width:'+tickerwidth+'; height:'+tickerheight+';padding: 4px"></span><span id="highlighter" style="position:absolute;left:0;top:0;clip:rect(auto auto auto 0px); background-color:'+highlightcolor+'; width:'+tickerwidth+';height:'+tickerheight+';padding: 4px"></span>')
    document.write('</div>')
    
    var currentmessage=0
    var clipbottom=1
    
    function changetickercontent(){
    msgheight=clipbottom=crosstick.offsetHeight
    crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"
    crosstickbg.innerHTML=tickercontents[currentmessage]
    crosstick.innerHTML=tickercontents[currentmessage]
    highlightmsg()
    }
    
    function highlightmsg(){
    //var msgheight=crosstick.offsetHeight
    if (clipbottom>0){
    clipbottom-=highlightspeed
    crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"
    beginclip=setTimeout("highlightmsg()",20)
    }
    else{
    clipbottom=msgheight
    clearTimeout(beginclip)
    if (currentmessage==tickercontents.length-1) currentmessage=0
    else currentmessage++
    setTimeout("changetickercontent()",tickdelay)
    }
    }
    
    function start_ticking(){
    crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg
    crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
    crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
    if (parseInt(crosstick.offsetHeight)>0)
    crosstickParent.style.height=crosstick.offsetHeight+'px'
    else
    setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
    changetickercontent()
    }
    
    if (document.all || document.getElementById)
    window.onload=start_ticking
    
    </script>
    
                                   </div>
                               </div>
                           </div>
                           <div class="mc0102">
                               <img class="r0101" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_155.jpg" alt="" />
                               <img class="r0102" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_157.jpg" alt="" />
                               <img class="r0103" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_207.jpg" alt="" />
                               <img class="r0104" src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_209.jpg" alt="" />
                               <div class="mcl">
                                   <div class="mcl01">
                                       Other Content
                                   </div>
                                   <div class="mcl02">
                                       Put what you want here.
                                   </div>
                               </div>
                           </div>
                       </div>
    <div class="mc02">
                           <div class="mc0201">
                               The Crew
                           </div>
                           <div class="mc0202" style="width: 18px; height: 15px">
                                
                           </div>
                           <div class="mc0203">
                               <div class="mc020301">
                                 <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>
    </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');		
     */
    ?>
    <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>
    <?php
    }
    ?>
    </tbody>
    </table>
                           </div>
                       </div>
                   </div>
               </div>
           </div>
    	</div>
    	</div>
    	</div>
    	</div>
    	</div>
    

  6. Can you post a pic as an example?

    I posted up th thread about a closing div in the loop, have you tried that?

    I didn't see the th part. I know I added about 3 maybe 4 closing div's at the bottom to fist the footer, but here's the example:

    example.png

  7. I have this installed on 935 beta rev and it works fine except for the pilots page which I had to get a helping hand on. I am not sure why you would be having that issue. I grabbed a few more phpVMS skins and tried to duplicate your issue without any results. They all worked fine.

    You mind sharing what you had to do to fix the pilots page? I'd appreciate it.

    Great Skin by the way.

  8. I've done it differently, though abit more complex. I have teirs on the landing:

    Teir 1 = 10,000+ runways (if one or more runways are longer than 10,000 feet) = $400 monthly or $1200 yearly (25% discount on yearly package)

    Teir 2 = 5,000 - 9,9980 (all runways must not extend past 9980 nor can they be shorter than 5,000 feet) = $150 monthly or $990 yearly (15%)

    Teir 3 = 1,000 - 4,500 (all runways must not extend past 4,500 nor can they be shorter than 1,000 feet) = $85 monthly or $714 (12%)

    Teir H = 1 - 3 pads (helicopter pads. Each additional pad is an additional $25) = $50 monthly or $390 yearly

    Teir G = no specified length on Grass = $50 monthly or $390 yearly

    Each aircraft is also on loan, each one researched and priced, each with a different loan. Won't get into those here.

×
×
  • Create New...