Toyuko Posted May 3, 2009 Report Share Posted May 3, 2009 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?" Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 3, 2009 Administrators Report Share Posted May 3, 2009 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.. Quote Link to comment Share on other sites More sharing options...
Toyuko Posted May 4, 2009 Author Report Share Posted May 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 4, 2009 Administrators Report Share Posted May 4, 2009 It depends where you're calling it from, you have to see how it is in the template, there are examples in there Quote Link to comment Share on other sites More sharing options...
Toyuko Posted May 5, 2009 Author Report Share Posted May 5, 2009 im calling it from the profile page or profile_main.tpl Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 6, 2009 Administrators Report Share Posted May 6, 2009 so see how the pilot id is called from there, if its in the pilot id, it might be Auth::$userinfo->pilotid Quote Link to comment Share on other sites More sharing options...
Toyuko Posted May 6, 2009 Author Report Share Posted May 6, 2009 Yeah that's what it is. Quote Link to comment Share on other sites More sharing options...
Toyuko Posted May 10, 2009 Author Report Share Posted May 10, 2009 So what would i code be like this: http://www.simmiles.com/asiava/JAL/newbuild/index2.php?Auth::$userinfo->pilotid Quote Link to comment Share on other sites More sharing options...
Toyuko Posted May 13, 2009 Author Report Share Posted May 13, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 13, 2009 Administrators Report Share Posted May 13, 2009 <?php echo PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.