Jump to content

Jon

Members
  • Posts

    253
  • Joined

  • Last visited

3 Followers

Profile Information

  • Gender
    Male

Recent Profile Visitors

14764 profile views

Jon's Achievements

Newbie

Newbie (1/14)

80

Reputation

  1. I think this is what you wanted, it's very rough solution, but I've got it working <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php $groups = PilotData::getPilotGroups($pilot->pilotid); $admin = false; $end = ""; foreach($groups as $group){ if($group->name == "Administrators"){ $admin = true; break; } } if($admin){ echo "<font color='red'>"; $end = "</font>"; } echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid).$end?></a> </td>
  2. You'd want to use the PilotData::getPilotGroups(); function, which returns all the groups they're a member of, and you can change the font colour using an if statement then. Something like: <?php $groups = PilotData::getPilotGroups($pilot->piloted); if(in_array("group name",$groups){ //They are an admin ?> <font color="red"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></font> <?php } else { echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname; } ?>
  3. I'm able to offer a wide range of phpVMS development services, from bespoke module production to basic skin design. Project turnaround times are currently quick, as I have no other commitments for the next 3 weeks. For more information, and a free no obligation quote feel free to get in touch with me via Private Message. Regards Jon
  4. I'd imagine you'd want to look at the modules for each ACARS system (core/modules/) and have a look in there at the code. For example, for kACARS, line 44 is the function call I'd look at: $results = Auth::ProcessLogin($xml->verify->pilotID, $xml->verify->password);
  5. It's just too big. I know this is called 'redwood', but you don't have to go overboard, the red on the map burns my eyes.
  6. You're not trying to reinvent the wheel here, are you?
  7. It's not a necessity, I might use it once and then I'd be bored of it.
  8. He wanted to know what you wanted, not what he interprets your ideas as.
  9. You seem to be missing a dot before the extension: <img src="<?php echo fileurl('/images/airline/'.$code.'.png'); ?>" alt="<?php echo $airline->name;?>" /> With regards to the value of $code, print it out and see what happens Jon
  10. How do you 'beta test' schedules? Am I missing something here?
  11. Well, their Facebook seems to have vanished , so I'm sure you can make your own deductions from that. Jon
  12. Seriously? How many people are falling for this idea that using free hosting is going to bugger up your chances of getting a pilot to join yoiur va? I'm sure 99.9% of people don't decide to check the nameserver of a website before they join it. What a ridiculous statement to make. I'm fed up of this happening time and time again, 'stay away from free hosting'. Tom's right, and I've had it working fine too, just get off your high horse of being able to pay for something and consider others for a second.And if we're bringing how much of a 'joke' the va industry is, shall we just consider CEOs that don't fly for their virtual airlines for nearly 2 years? Jon
×
×
  • Create New...