Jump to content

Pilot Email


Connor1994

Recommended Posts

Hi,

Another issue :D

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...

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...