Connor1994 Posted March 22, 2011 Report Share Posted March 22, 2011 Hi, Another issue The automatic emails that get sent out to members seem to be causing me some grief, Whenever the emails are sent the dear (PILOT NAME) is blank, the name doesn't show, just like other bits of information Here is roughly what the email tpl files include: <center><div id="wrap"> <div id="content"><div align="left"> <h3><img src="http://www.futura-va.co.uk/images/LOGO.png" alt="" width="183" height="54" align="right" /></h3> <p><br /> <br /> </p> <p>Dear <?php echo $firstname .' '. $lastname; ?>,<br/> </p> <p>We are delighted to inform you that your application has been successful. You are now a fully fledged Futura Virtual Pilot!</p> <p>Here is some help to get you on your way:</p> <table width="700" border="0" cellspacing="0" cellpadding="2"> <tbody> <tr> <td><strong>Membership Details</strong></td> </tr> <tr> <td><p>All of our operations are conducted from the Flight Operations area of our web site. To log into your account you will need the following information:</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr valign="top"> <td width="172"><strong>Web site Address:</strong></td> <td width="376"><a href="http://www.futura-va.co.uk" target="_blank">http://www.futura-va.co.uk</a></td> </tr> <tr valign="top"> <td><strong>Pilot Id:</strong></td> <td><?php echo $pilotcode; ?></td> </tr> <tr valign="top"> <td><strong>Password:</strong></td> <td>The password you entered on your application form.</td> </tr> <tr valign="top"> <td><strong>Starting Rank:</strong></td> <td><?php echo $userinfo->rank;?></td> </tr> </tbody> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Forum Membership</strong></td> </tr> <tr> <td><p>You have automatically been given an account on the Futura Virtual Forum. This is a closed forum. Viewing and posting is only allowed by Futura Virtual members. To access the forum you will need the following information:</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr valign="top"> <td width="172"><strong>Web site Address:</strong></td> <td width="376"><a href="http://www.community.futura-va.co.uk" target="_blank">http://www.community.futura-va.co.uk</a></td> </tr> <tr valign="top"> <td><strong>Forum Id:</strong></td> <td><font color="#FFF"><strong><?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?></strong></font> <?php echo $pilotcode; ?></td> </tr> <tr valign="top"> <td><strong>Password:</strong></td> <td>The password you entered on your application form.</td> </tr> </tbody> </table></td> </tr> <tr> <td><p><strong>NOTICE: </strong>There is a slight chance your forum account may not yet be activated automatically, this sometimes happens and is nothing to worry about. At the very latest your account should be active within a few hours from this email.</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Teamspeak Account</strong></td> </tr> <tr> <td><p>You want to meet new people and socialise right? Why not hop on to our Teamspeak 3 server!</p></td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="150"><strong>Server Address:</strong></td> <td width="630">65.75.245.108:8767</td> </tr> </tbody> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Flight Policy</strong></td> </tr> <tr> <td><p><strong>We would like to remind all pilots that you must complete your first flight within 7 days of joining and then one flight every 28 days thereafter. Failure to meet this requirement will result in the closing of your account. Please note that our shortest flight is around 20 minutes.</strong></p></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Thanks!</strong></td> </tr> <tr> <td><p>Thanks for joining Futura Virtual. We hope that you enjoy flying with us. Please check our NOTAMS for details of regular flyin's and group flights performed on VATSIM, IVAO or Virtual Skies. If you require training please don't hesitate to contact our training department to organise mentoring and/or training. This can be done via the forums.</p></td> </tr> </tbody> </table> <p>Hope to see you in the skies, they are what you make them...</p> <p>Best regards,</p><p>Paul Craven <br /> Futura Virtual Airways - Human Resources</p> </div><br /> <div class="footer" style="font-size:9px" align="left"><strong> Notice: This email transmission contains information that is intended only for the individual or entity named in the email address and may be confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this email message is strictly prohibited. If you have received this email transmission in error, please reply to the sender so that proper delivery can be arranged, and please delete the message from your in-box </strong></div></div> </div> </div> </center> Hope someone can help rectify the problem. P.S. this happens in a few of the email files... Quote Link to comment Share on other sites More sharing options...
James142 Posted March 22, 2011 Report Share Posted March 22, 2011 Change <?php echo $firstname .' '. $lastname; ?> With <?php echo $pilot->firstname.' '.$pilot->lastname ?> Not sure if it will work, but thats the code I have. Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 22, 2011 Author Report Share Posted March 22, 2011 will try cheers Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 22, 2011 Author Report Share Posted March 22, 2011 Nope, still no luck... Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 23, 2011 Author Report Share Posted March 23, 2011 bump Quote Link to comment Share on other sites More sharing options...
James142 Posted March 23, 2011 Report Share Posted March 23, 2011 Damn, it looks like my email isnt giving the name either :S Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 23, 2011 Author Report Share Posted March 23, 2011 mines now isnt showing pilot ID etc aswell... rank the lot! Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 25, 2011 Author Report Share Posted March 25, 2011 Anyone? CD Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 25, 2011 Administrators Report Share Posted March 25, 2011 Are you using the variables it says to? Those variables have to be put in that actual email form, not in the template. There's no variables assigned into the template Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 26, 2011 Author Report Share Posted March 26, 2011 Hi Nabeel, Yeah I have been using them, It just isnt working For the pilot name, I have been using - <?php echo Vars::POST('firstname'); ?> <?php echo Vars::POST('lastname'); ?> Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 26, 2011 Author Report Share Posted March 26, 2011 Any other suggestions? CD Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 27, 2011 Author Report Share Posted March 27, 2011 Guys please, This really is becoming a large issue. It is one of the main things holding us back CD Quote Link to comment Share on other sites More sharing options...
James142 Posted March 27, 2011 Report Share Posted March 27, 2011 Have you ever edited your Registration.php file in core > Registration ? Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 27, 2011 Author Report Share Posted March 27, 2011 nope Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 27, 2011 Moderators Report Share Posted March 27, 2011 What you are using seems OK, for the email when they register that is template that should be in your skins folder and its called email_registrationaccepted.tpl, The variables to use in there are, //Firstname Lastname <?php echo $pilot->firstname.' '.$pilot->lastname ?> //Firstname Lastname Pilot ID <?php echo $pilot->firstname.' '.$pilot->lastname ?> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?> This is what i use OK. Let me know how you get on. Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 27, 2011 Author Report Share Posted March 27, 2011 yeah, the TPL's are in my skins folder... Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 27, 2011 Author Report Share Posted March 27, 2011 also, for example, the forgot pword one, The "Dear .... no name" doesn't show the name but shows the new password below, so I am thinking it is the names that are causing the issues Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 27, 2011 Author Report Share Posted March 27, 2011 Got it working with just - <?php echo $firstname .' '. $lastname; ?> hmmm? confusing sooooo much Quote Link to comment Share on other sites More sharing options...
James142 Posted March 28, 2011 Report Share Posted March 28, 2011 good to hear you got it fixed Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 28, 2011 Author Report Share Posted March 28, 2011 Right, Getting really stressed now, its still not working despite what I said earlier, its not actully, why, when someone registers does all the information go blank like, name, ID, rank etc but in the lost password email all data remains, (Name) <center><div id="wrap"> <div id="content"> <div align="left"> <h3> </h3> <div align="left"> <h3><img src="http://www.futura-va.co.uk/images/LOGO.png" alt="" width="183" height="54" align="right" /></h3> <p><br /> <br /> </p> <p>Dear <?php echo $firstname .' '. $lastname; ?>,<br/> </p> <p>We are delighted to inform you that your application has been successful. You are now a fully fledged Futura Virtual Pilot!</p> <p>Here is some help to get you on your way:</p> <table width="700" border="0" cellspacing="0" cellpadding="2"> <tbody> <tr> <td><strong>Membership Details</strong></td> </tr> <tr> <td><p>All of our operations are conducted from the Flight Operations area of our web site. To log into your account you will need the following information:</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr valign="top"> <td width="172"><strong>Web site Address:</strong></td> <td width="376"><a href="http://www.futura-va.co.uk" target="_blank">http://www.futura-va.co.uk</a></td> </tr> <tr valign="top"> <td><strong>Pilot Id:</strong></td> <td><?php echo $userinfo->rank;?></td> </tr> <tr valign="top"> <td><strong>Password:</strong></td> <td>The password you entered on your application form.</td> </tr> <tr valign="top"> <td><strong>Starting Rank:</strong></td> <td><?php echo $pilotrank; ?></td> </tr> </tbody> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Forum Membership</strong></td> </tr> <tr> <td><p>You have automatically been given an account on the Futura Virtual Forum. This is a closed forum. Viewing and posting is only allowed by Futura Virtual members. To access the forum you will need the following information:</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr valign="top"> <td width="172"><strong>Web site Address:</strong></td> <td width="376"><a href="http://www.community.futura-va.co.uk" target="_blank">http://www.community.futura-va.co.uk</a></td> </tr> <tr valign="top"> <td><strong>Forum Id:</strong></td> <td><?php echo $firstname .' '. $lastname; ?> <?php echo $pilotid; ?></td> </tr> <tr valign="top"> <td><strong>Password:</strong></td> <td>The password you entered on your application form.</td> </tr> </tbody> </table></td> </tr> <tr> <td><p><strong>NOTICE: </strong>There is a slight chance your forum account may not yet be activated automatically, this sometimes happens and is nothing to worry about. At the very latest your account should be active within a few hours from this email.</p></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Teamspeak Account</strong></td> </tr> <tr> <td><p>You want to meet new people and socialise right? Why not hop on to our Teamspeak 3 server!</p></td> </tr> <tr> <td><table width="548" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="150"><strong>Server Address:</strong></td> <td width="630">65.75.245.108:8767</td> </tr> </tbody> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Flight Policy</strong></td> </tr> <tr> <td><p><strong>We would like to remind all pilots that you must complete your first flight within 7 days of joining and then one flight every 28 days thereafter. Failure to meet this requirement will result in the closing of your account. Please note that our shortest flight is around 20 minutes.</strong></p></td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>Thanks!</strong></td> </tr> <tr> <td><p>Thanks for joining Futura Virtual. We hope that you enjoy flying with us. Please check our NOTAMS for details of regular flyin's and group flights performed on VATSIM, IVAO or Virtual Skies. If you require training please don't hesitate to contact our training department to organise mentoring and/or training. This can be done via the forums.</p></td> </tr> </tbody> </table> <p>Hope to see you in the skies, they are what you make them...</p> <p>Best regards,</p> <p>Paul Craven <br /> Futura Virtual Airways - Human Resources</p> </div> <br /> <div class="footer" style="font-size:9px" align="left"><strong> Notice: This email transmission contains information that is intended only for the individual or entity named in the email address and may be confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this email message is strictly prohibited. If you have received this email transmission in error, please reply to the sender so that proper delivery can be arranged, and please delete the message from your in-box </strong></div> <p></div> </p></div></div></div></center> Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 28, 2011 Moderators Report Share Posted March 28, 2011 Does all that stuff really work? Cant you just remove the tables and use <p> Forget the div formatting as well loose all that stuff if i was you. Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 29, 2011 Author Report Share Posted March 29, 2011 Will try it, I know its really messy coding but I was just getting stressed when I made it Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 31, 2011 Author Report Share Posted March 31, 2011 anyone? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted March 31, 2011 Moderators Report Share Posted March 31, 2011 Still having problems? Try that code because you said the name isn't showing. <?php echo $pilot->firstname.' '.$pilot->lastname ?> Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted March 31, 2011 Author Report Share Posted March 31, 2011 Quick question, Can someone put down the code for: Full name - <?php echo $pilot->firstname.' '.$pilot->lastname ?> Pilot ID (FUA***) ? Pilot Email - ? Pilot Rank - ? Last flight - ? Pilot Location - ? also, could I possibly be experiencing issues due to htaccess Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 31, 2011 Administrators Report Share Posted March 31, 2011 What template is this? Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted April 1, 2011 Author Report Share Posted April 1, 2011 All of the email ones! Its really frustrating, always worked great in my other VA, tried copying the files and everything. Could it be htaccess I mean, these files are in my skins folder/futura not core like default Quote Link to comment Share on other sites More sharing options...
Moderators joeri Posted April 1, 2011 Moderators Report Share Posted April 1, 2011 have you tried to delete the skined tpl and use the defould one see how the emails are comming Quote Link to comment Share on other sites More sharing options...
Connor1994 Posted April 1, 2011 Author Report Share Posted April 1, 2011 Sorry what? Quote Link to comment Share on other sites More sharing options...
Moderators joeri Posted April 1, 2011 Moderators Report Share Posted April 1, 2011 i just registered at your va this is what has bene send to me Dear joeri test, Your account have been made at Futura Airways Virtual, but your account has not yet been activated. You will receive an email when your registration has been activated by someone on our staff. Thanks! Futura Airways Virtual Staff as you see my name is fully correct and yo sended it out with the defauld email registerd tpl so this is working now i only need an activation to see how the other email comes true 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.