StartVM Posted March 2, 2014 Report Share Posted March 2, 2014 Is your Human Resources department tired of sending out welcome emails with their demographic information and general airline info? Here is a template I have constructed to solve the issue. It uses PHP Tags to pull registration info from the database such as pilot name, pilot ID, chosen hub, etc. Now you can spend less time sending emails and more time flying! Simply replace your email_registrationaccepted.tpl file with this code http://pastebin.com/Q2v4VuUR Cheers! Link to comment Share on other sites More sharing options...
biokemisten Posted March 26, 2014 Report Share Posted March 26, 2014 Thanks! Link to comment Share on other sites More sharing options...
flyalaska Posted March 27, 2014 Report Share Posted March 27, 2014 Nice! If anyone has a offset Pilot ID, any number that didn't start with XXX000 would have to edit your pilot ID line. Pilot ID: XXX<?php echo $pilot->pilotid +99; ?> or <?php echo $pilot->email; ?></b> Replace XXX with your Airlines ICAO Replace 99 with your offset. Link to comment Share on other sites More sharing options...
StartVM Posted March 31, 2014 Author Report Share Posted March 31, 2014 Nice! If anyone has a offset Pilot ID, any number that did start with XXX000 would have to edit your pilot ID line. Pilot ID: XXX<?php echo $pilot->pilotid +99; ?> or <?php echo $pilot->email; ?></b> Replace XXX with your Airlines ICAO Replace 99 with your offset. Thanks for the catch! Link to comment Share on other sites More sharing options...
flyalaska Posted April 1, 2014 Report Share Posted April 1, 2014 NP, I ran into that problem when we were making our email template. I started out with 100, so I had an offset. Was also trying to display their password in their email, with no luck. Link to comment Share on other sites More sharing options...
Moderators servetas Posted April 1, 2014 Moderators Report Share Posted April 1, 2014 Hello, You can get the pilot id using the following part of code on your .tpl file. <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid); ?> As for the password, i don't think that you are able to get the password as it has been encrypted on your database. From my point of you, i think that this is better because this is more secure for your users... That's all.. Link to comment Share on other sites More sharing options...
StartVM Posted April 3, 2014 Author Report Share Posted April 3, 2014 Correct me if this is way off, but it seems the reason the password display is not possible is because the hash is salted Link to comment Share on other sites More sharing options...
Moderators servetas Posted April 3, 2014 Moderators Report Share Posted April 3, 2014 Correct. Link to comment Share on other sites More sharing options...
StartVM Posted February 17, 2015 Author Report Share Posted February 17, 2015 Correct. Old post IK! Is there an easy way to include the password made at registration into the welcome email BEFORE it is salted into the db? Link to comment Share on other sites More sharing options...
Tom Posted February 17, 2015 Report Share Posted February 17, 2015 Old post IK! Is there an easy way to include the password made at registration into the welcome email BEFORE it is salted into the db? Never do this. Ever. So insecure, and really not beneficial at all - they just typed it to register, I'm sure they can remember it. If not, there's already a feature to reset it. 2 Link to comment Share on other sites More sharing options...
freshJet Posted February 17, 2015 Report Share Posted February 17, 2015 Agreed, don't bother. Why does it say demographic information? That's not demographics? That's just login details. And what did you mean by 'pristine' airline Link to comment Share on other sites More sharing options...
StartVM Posted February 19, 2015 Author Report Share Posted February 19, 2015 Agreed, don't bother. Why does it say demographic information? That's not demographics? That's just login details. And what did you mean by 'pristine' airline Lol... What do you have to do with any of this? Last few posts you have made have made are completely wrong or off topic. http://forum.phpvms.net/topic/22058-showing-all-schedules-with-searching/ maybe you need to focus on whats important yes? I don't recall him asking for YOUR input on his design. Removing the display of his schedules had nothing to do with what he wanted. Read the post maybe? ... If you don't think hub and pilot ID are statistical data then I can't help you. At the time of the post "March 01 2014" my VA Hawaiian Virtual was new and boundaries yet to be found. Best adjective? Maybe not, but I am sure my contribution helped out many people. Maybe in your country words are tossed around differently... Link to comment Share on other sites More sharing options...
StartVM Posted February 19, 2015 Author Report Share Posted February 19, 2015 Never do this. Ever. So insecure, and really not beneficial at all - they just typed it to register, I'm sure they can remember it. If not, there's already a feature to reset it. Fair point Link to comment Share on other sites More sharing options...
Moderators servetas Posted February 19, 2015 Moderators Report Share Posted February 19, 2015 Guys, there is no need to continue this in public... If you wish to accuse eachother for anything, you can use private messaging. In this forum, we are all trying to do out best and support as much as we can. Some members do not have that much knowledge or (as it is an international forum) some do not know Engish as much as others do. Come on! Keep up what you do with supporting each others and leave anything else behind. Link to comment Share on other sites More sharing options...
freshJet Posted February 19, 2015 Report Share Posted February 19, 2015 DJRixton, that first part - irrelevant. Why are you discussing another thread? Firstly, what am I doing here? You have provided code for the community to use, and you are receiving feedback. I gave you feedback, i.e backing up what Tom said, and then I asked why you phrased it the way you did. Second of all, your argument about the demographics is invalid - hub and pilot ID do not fit the definition you provided. You cannot define someone's demographics, they are what they are. You can't tell someone where they live or what age you are. Thirdly, would that mean you are calling your VA perfect, especially right at the launch stage? Regardless, I was only asking what you meant. I was not challenging your word choice. Lastly, 'my country' is where your language originated. Given the two above examples it seems that it's in fact your country where words are tossed around differently. Or, more likely, just you. Link to comment Share on other sites More sharing options...
StartVM Posted February 19, 2015 Author Report Share Posted February 19, 2015 DJRixton, that first part - irrelevant. Why are you discussing another thread? Firstly, what am I doing here? You have provided code for the community to use, and you are receiving feedback. I gave you feedback, i.e backing up what Tom said, and then I asked why you phrased it the way you did. Second of all, your argument about the demographics is invalid - hub and pilot ID do not fit the definition you provided. You cannot define someone's demographics, they are what they are. You can't tell someone where they live or what age you are. Thirdly, would that mean you are calling your VA perfect, especially right at the launch stage? Regardless, I was only asking what you meant. I was not challenging your word choice. Lastly, 'my country' is where your language originated. Given the two above examples it seems that it's in fact your country where words are tossed around differently. Or, more likely, just you. The demographics display exactly what the Pilot input. His hub, is something he chose. Pilot ID, uniquely identifyies him. When did I ever say that users of this code had to keep the current format. It was what I used for my VA, and generally one would assume anyone using it would customize it to their liking. What does backing up what Tom said have to do with this? I didn't address that part of your post. Link to comment Share on other sites More sharing options...
freshJet Posted February 19, 2015 Report Share Posted February 19, 2015 The demographics display exactly what the Pilot input. His hub, is something he chose. Pilot ID, uniquely identifyies him. Therefore not demographics! You cannot choose your demographics. What does backing up what Tom said have to do with this? I didn't address that part of your post. You quoted it, which generally means you are addressing it. "What do you have to do with any of this" is such a stupid thing to say to someone on a community forum. Link to comment Share on other sites More sharing options...
Moderators servetas Posted February 19, 2015 Moderators Report Share Posted February 19, 2015 I think that that is enough. You can continue your dìscussion privately. Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 19, 2015 Administrators Report Share Posted February 19, 2015 smh..... 2 Link to comment Share on other sites More sharing options...
Recommended Posts