boeing974 Posted September 23, 2015 Report Share Posted September 23, 2015 Hi! My question is: It's possible to remove the code airline on the Pilot ID ? Ex: "AFR0001" to "123456" Thank you! Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 24, 2015 Members Report Share Posted September 24, 2015 from where ? Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 24, 2015 Author Report Share Posted September 24, 2015 ?? What ? Sorry i'm french I want to just delete the ICAO code of the pilot ID. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 24, 2015 Members Report Share Posted September 24, 2015 From what page Pilot Roster ? Pilot Profile or somewhere else Screenshot would help Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 26, 2015 Author Report Share Posted September 26, 2015 Its identifier to connect. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 26, 2015 Moderators Report Share Posted September 26, 2015 I think that on phpVMS you can just login with your number on the login forum in order to login. For example, I am GRW001 but I am logging in with just "1" (without ""). Have you tried it? Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 26, 2015 Author Report Share Posted September 26, 2015 Thank you But how to stop displaying the code on the profile page? Just display the number. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 26, 2015 Moderators Report Share Posted September 26, 2015 Open your core/templates/pilot_center.tpl (or .php) find this: <?php echo $pilotcode; ?> and replace with this: <?php echo $userinfo->pilotid; ?> This is only if you are using the default phpVMS template. Otherwise you will have to edit your template instead. Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 26, 2015 Author Report Share Posted September 26, 2015 Ok thank you but my id has 6 number. I already set Config::Set('PILOTID_OFFSET' 974000); it displays 1. On the front main page it display 974001. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 26, 2015 Moderators Report Share Posted September 26, 2015 What number do you want to display? 1 or 974001? Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 26, 2015 Author Report Share Posted September 26, 2015 974001 Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted September 26, 2015 Moderators Report Share Posted September 26, 2015 Use this instead: <?php echo $userinfo->pilotid+PILOTID_OFFSET; ?> Although, i do not know if it will be working with your login form. Just test it yourself and let us know. Quote Link to comment Share on other sites More sharing options...
boeing974 Posted September 26, 2015 Author Report Share Posted September 26, 2015 Thank you 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.