GlobalOne Posted August 18, 2012 Report Share Posted August 18, 2012 Has anyone got a script which creates a different pilot badge depending on the pilot rank? Thanks Quote Link to comment Share on other sites More sharing options...
freshJet Posted August 18, 2012 Report Share Posted August 18, 2012 No, but you could do something so that the background image is chosen based on a PHP script like: <?php if (($userinfo->rank) == 'First Officer'){ echo 'link to image'; } elseif (($userinfo->rank) == 'Captain'){ echo 'link to image'; } ?> Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted August 18, 2012 Author Report Share Posted August 18, 2012 thats what I was thinking. Which file would I have to edit for this? Quote Link to comment Share on other sites More sharing options...
freshJet Posted August 19, 2012 Report Share Posted August 19, 2012 Not a clue. Most likely the profile_edit.tpl. Try deleting the code for the dropdown menu that lets you select your background image and replace it with that PHP. May or may not work. Quote Link to comment Share on other sites More sharing options...
GlobalOne Posted August 19, 2012 Author Report Share Posted August 19, 2012 ok will try to find a solution and update this post. Quote Link to comment Share on other sites More sharing options...
tgycgijoes Posted September 15, 2012 Report Share Posted September 15, 2012 If I understand this, you want to have your pilot's breast insignia (wings) reflect a particular rank? Correct? Like Pilot is a second or first officer; senior pilot as a captain and chief pilot as the lead captain or something like that? If so, what I did is to create the rank jpgs with the wings above the shoulder strap in the pilot center. Since our ranks are based on hours flown, and promotions are automatic, when a pilot achieves the next rank level his shoulder strap and wings above it show up in the pilot center. If you like this solution and need photoshop help I can help you with new rank jpgs if you'd like. Quote Link to comment Share on other sites More sharing options...
Jeff Posted September 18, 2012 Report Share Posted September 18, 2012 I believe that he is wanting to have the pilots' signature change based on the rank the pilot is, not the rank image itself. Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted September 18, 2012 Report Share Posted September 18, 2012 You would need to modify the PilotData.class file. Under generateSignature($pilotid). Look though the function and you will see where the background image is retrieved. You will need to change this to retrieve a different background based on the rank of the 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.