Jump to content

Next Rank echo


mark1million

Recommended Posts

  • Moderators

HI for some reason i cant remember why now but i changed the code in the profile_main.tpl, clearly this is not the right statement to get the next users rank and current hours as they are not showing up.

  
<tr>
<?php
        if($nextrank)
        {
        ?>
   <td colspan="2"><p align="center"><strong>You have</strong> <?php echo ($nextrank->minhours - $pilot_hours)?> <strong>hours left until your promotion to <?php echo $nextrank->rank?></strong></p></td>
      <?php
        }
        ?>  
</tr>

Link to comment
Share on other sites

Here you go Mark...

<?php
		if($nextrank)
		{
		?>
			<p align="center"><font color="#FF0000">You have <?php echo ($nextrank->minhours - $pilot_hours)?> hours 
				left until your promotion to <?php echo $nextrank->rank?></font></p>
		<?php
		}
		?>

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