
Jon
Members-
Posts
253 -
Joined
-
Last visited
Profile Information
-
Gender
Male
Recent Profile Visitors
14383 profile views
Jon's Achievements
Newbie (1/14)
80
Reputation
-
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>
-
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; } ?>
-
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
-
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);
-
Welcome Redwood Virtual to San Francisco!
Jon replied to StartVM's topic in Virtual Airlines Discussion
-
Welcome Redwood Virtual to San Francisco!
Jon replied to StartVM's topic in Virtual Airlines Discussion
l -
Welcome Redwood Virtual to San Francisco!
Jon replied to StartVM's topic in Virtual Airlines Discussion
This I think I just fell off my chair -
Welcome Redwood Virtual to San Francisco!
Jon replied to StartVM's topic in Virtual Airlines Discussion
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. -
Open Flight: Innovative People Required
Jon replied to OpenFlight's topic in Virtual Airlines Discussion
You're not trying to reinvent the wheel here, are you? -
Need application programmer and/or someone with animation skills!
Jon replied to B77W's topic in Paid Services
It's not a necessity, I might use it once and then I'd be bored of it. -
He wanted to know what you wanted, not what he interprets your ideas as.
-
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
-
How do you 'beta test' schedules? Am I missing something here?
-
Well, their Facebook seems to have vanished , so I'm sure you can make your own deductions from that. Jon
-
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