Jump to content

Text not showing...?


Wayne

Recommended Posts

Thats from the pilot_public_profile.tpl i added one table around everything but that didnt do anything the test from the codes like <?php echo $pilotcode ?>, <?php echo $userinfo->rank;?> and so on are the things not showing....kinda weird..

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<?php

if(!$userinfo)
{
echo '<h3>This pilot does not exist!</h3>';
return;
}
?>

<h3>Profile For <?php echo $userinfo->firstname . ' ' . $userinfo->lastname?></h3>
<table>
<tr>
	<td align="center">
		<img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" alt="No Avatar" /> 
		<br /><br />
		<img src="<?php echo $userinfo->rankimage?>"  alt="" />		</td>		
	<td valign="top">
		<ul class="style1">
			<li><strong>Pilot ID: </strong><?php echo $pilotcode ?></li>
			<li><strong>Rank: </strong><?php echo $userinfo->rank;?></li>
			<li><strong>Total Flights: </strong><?php echo $userinfo->totalflights?></li>
			<li><strong>Total Hours: </strong><?php echo $userinfo->totalhours?></li>
			<li><strong>Location: </strong>
					<img src="<?php echo Countries::getCountryImage($userinfo->location);?>" 
								alt="<?php echo Countries::getCountryName($userinfo->location);?>" />
					<?php echo Countries::getCountryName($userinfo->location);?>				</li>
			<?php
			// Show the public fields
			if($allfields)
			{
				foreach($allfields as $field)
				{
					echo "<li><strong>$field->title: </strong>$field->value</li>";
				}
			}
			?>
		</ul>	  </td>
  </tr>
</table>
    </td>
  </tr>
</table>

Below is a pic of the pilot center..

pilotcenter.gif

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