Jump to content

Strider

Members
  • Posts

    1816
  • Joined

  • Last visited

  • Days Won

    51

Posts posted by Strider

  1. if($pilot->retired == 1)
    {
    // theyre inactive
    }
    else
    {
    // theyre active
    }

    for some reason I found that nabeel's code got it wrong, and my active pilots were shown to be inactive when they were active. I have put the fix up. But you can try both ways and see what works for you.

    Cheers

    Dan C

  2. <?php
     if($pilot == inactive)
    {
    	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/inactive.png" width="150" height="58" alt="inactive">';
    }
    
    
     else
    {
    	echo '<img src="'.SITE_URL.'/lib/skins/cargo/images/active.png" width="150" height="58" alt="active">';
    }
    ?>

    That is the code i used, should be fine, as it shows the active, but only at the bottom of each hubs roster.

    Cheers

    Dan C

  3. if($pilot == inactive)

    {

    //Show this badge

    }

    else

    {

    //Show this badge

    }

    }

    if($pilot == inactive)
    {
    //Show this badge
    }
    else
    {
    //Show this badge
    }
    

    took out the extra }

    i have it in my site, it works, but only for the bottom pilot of each table. How could i fix this?

    Cheers

    Dan C

  4. Uncomment lines 267 thru 271 in your Auth.class.php file and it will disable logins for retired pilots.

    Only problem with that is that when they want to re fly they wont be allowed login, thus they will not return as they will have to email the CEO or other staff member and get them to change their status, and it is not a quick way, so they will leave the VA and move on.

    Cheers

    Dan C

  5. No, as it is set up so that you have final say if the pirep should be approved or not, as auto approving pireps has its flaws, main flaw is that people can fake the pireps and go on an hour climbing rampage.

    Cheers

    Dan C

  6. Thank you, i made a few changes to it, as i found you had an extra <table> tag which was obsolete. Removed that, also added a css rule so that the borders collapsed so they didn't llook weird, also changed the <b></b> to <strong></strong> just to help with validation. Also changed the link to this thread to open up in a new tab.

    Cheers

    Dan C

  7. Hi simpilot, I am getting an error with the you have mail

    Notice: The template file "/home/globalai/public_html//core/templates/mail_check.tpl" doesn't exist in /home/globalai/public_html/core/classes/TemplateSet.class.php on line 227

    that is the error, not sure how exactly to fix this, I am using 2.0.854 of phpvms not sure if it works with it but it should.

    Cheers

    Dan C

×
×
  • Create New...