coryb12 Posted July 1, 2010 Report Share Posted July 1, 2010 Hi all, I have searched this forum but have found nothing. I would like to disable the airline selection on the registration form so that pilots can;t select which airline to apply for, and have it default to one. I know I will need to mod the registration_mainform.tpl and registration.php, but I am not sure hat to change. Can anyone help me with this? Thanks, Cory Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 1, 2010 Administrators Report Share Posted July 1, 2010 Remove the selection from your tpl file and in registration.php file find line 81 -> 'hub' => $this->post->hub, and change it to -> 'hub' => 'ICAO', using the icao of the hub you want them to be assigned to. ie - KJFK etc Quote Link to comment Share on other sites More sharing options...
coryb12 Posted July 1, 2010 Author Report Share Posted July 1, 2010 Remove the selection from your tpl file and in registration.php file find line 81 -> 'hub' => $this->post->hub, and change it to -> 'hub' => 'ICAO', using the icao of the hub you want them to be assigned to. ie - KJFK etc Thanks for the wuick reply, but I was looking to disable the airline selection, not hub selection. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 1, 2010 Administrators Report Share Posted July 1, 2010 Doh! Line 79 then -> 'code' => $this->post->code, to 'code' => 'ABC', ABC being your airline prefix code. 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.