OmerAslan Posted February 14, 2017 Report Share Posted February 14, 2017 (edited) I want to add pilot callsign in the email. What is the code for that please? Edited February 14, 2017 by OmerAslan Quote Link to comment Share on other sites More sharing options...
web541 Posted February 14, 2017 Report Share Posted February 14, 2017 Onto which email? (email_registered, email_registrationaccepted, email_registrationdenied) Try calling it like this $pilot->code; or PilotData::getPilotCode($pilot->code, $pilot->pilotid); It will work with two of the emails, otherwise you will need an extra step. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted February 14, 2017 Author Report Share Posted February 14, 2017 5 minutes ago, web541 said: Onto which email? (email_registered, email_registrationaccepted, email_registrationdenied) Try calling it like this $pilot->code; or PilotData::getPilotCode($pilot->code, $pilot->pilotid); It will work with two of the emails, otherwise you will need an extra step. Hi, email_registrationaccepted.php here next to this after Dear: Dear <?php echo $pilot->firstname.' '.$pilot->lastname ?>, Like first callsign then name and last name... Quote Link to comment Share on other sites More sharing options...
web541 Posted February 14, 2017 Report Share Posted February 14, 2017 In that case, try this Dear <?php echo PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname ?>, And that should work. Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted February 14, 2017 Author Report Share Posted February 14, 2017 (edited) 8 minutes ago, web541 said: In that case, try this Dear <?php echo PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname ?>, And that should work. This didn't work my friend. Just name and last name. I have phpvms 5.5.2 Edited February 14, 2017 by OmerAslan Quote Link to comment Share on other sites More sharing options...
web541 Posted February 14, 2017 Report Share Posted February 14, 2017 Hmm ok, try this (it won't calculate the code just yet but it will allow us to see what is being carried across) Dear <?php echo $pilot->code.''.$pilot->pilotid.' - '.$pilot->firstname.' '.$pilot->lastname ?>, Quote Link to comment Share on other sites More sharing options...
OmerAslan Posted February 14, 2017 Author Report Share Posted February 14, 2017 2 minutes ago, web541 said: Hmm ok, try this (it won't calculate the code just yet but it will allow us to see what is being carried across) Dear <?php echo $pilot->code.''.$pilot->pilotid.' - '.$pilot->firstname.' '.$pilot->lastname ?>, Perfect my friend. Thank you... Quote Link to comment Share on other sites More sharing options...
Marvin Posted August 26, 2017 Report Share Posted August 26, 2017 (edited) For some reason I don't have (email_registered, email_registrationaccepted, email_registrationdenied) in my /admin/templates folder... I have phpvms 5.5.2 could someone send me the files via email? marvingray94@hotmail.com thanks in advance Edited August 26, 2017 by Marvin Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted August 29, 2017 Moderators Report Share Posted August 29, 2017 Can you check core/templates? Do they exist there? 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.