Me and my friend are trying to dev a bridge between phpvms and simmiles system what we need to ask is
“We need to print out the pilot ID and password variables on the profile page how can we do that?”
Me and my friend are trying to dev a bridge between phpvms and simmiles system what we need to ask is
“We need to print out the pilot ID and password variables on the profile page how can we do that?”
If you look at the profile_main.tpl there is code in there which does that. I think it’s just
<?php
echo $userinfo->pilotid;
Etc..
Hi nabeel can you attach a variable to this link "http://www.simmiles.com/asiava/JAL/newbuild/index2.php?pilotid=<? echo $pilotidvariable; ?> the pilot ID is being passed on to a different server so yeah.
It depends where you’re calling it from, you have to see how it is in the template, there are examples in there
im calling it from the profile page or profile_main.tpl
so see how the pilot id is called from there, if its in the pilot id, it might be Auth::$userinfo->pilotid
Yeah that’s what it is.
So what would i code be like this: http://www.simmiles.com/asiava/JAL/newbuild/index2.php?Auth::$userinfo->pilotid
OK i got the code calling the VA id ex JAL and latest flight number but i need to call the pilot id insted of the flight number so what would the varible be?
Original code
<?php echo $report->code . $report->flightnum; ?>
Edited
<?php echo $report->code . $report->*; ?>
* what would be the varible for the pilot ID number ex 0040 etc
<?php echo PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?>