Jump to content

Pilot Center Awards


Cessna1234

Recommended Posts

Hi guys. I know there are tons of topics on Award images in the pilot Center, but when i try to past the code into the pilot_main.tpl and save it it doesn't work. this is the code i past-

<p>

<strong>Mis Medallas</strong><br />

<?php

if(!$allawards)

{

echo 'No awards yet';

}

else

{

?>

<ul>

<?php foreach($allawards as $award){ ?>

<li><?php echo $award->name ?><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li>

<?php } ?>

I click save and when i go to my pilot center i see the image, but when i go to view another pilot i dont see the image there for the award. I dont know if you can view this link but this is what i see. http://www.bostonexpressva.org/index.php/profile/view/12 Basically i see where the image is suppose to go like the box with a piece of paper and some color in it. So if some one could help me on how i can get the correct code so that under the awards sectioin on every pilot the award image appears.

Thanks,

Skylar

Link to comment
Share on other sites

The other code goes in the pilot_public_profile.tpl

Then you should be able to see the awards for other pilots. There are two templates that show stats for pilots.

1. profile main.tpl: This is what the member only sees.

2. pilot_public_profile.tpl: This is what non-members can see about a pilot.

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