Cessna1234 Posted December 7, 2011 Report Share Posted December 7, 2011 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 Quote Link to comment Share on other sites More sharing options...
edmundk Posted December 7, 2011 Report Share Posted December 7, 2011 EDIT Nevermind~ Quote Link to comment Share on other sites More sharing options...
Cessna1234 Posted December 7, 2011 Author Report Share Posted December 7, 2011 EDIT Nevermind~ What do you mean? Quote Link to comment Share on other sites More sharing options...
edmundk Posted December 9, 2011 Report Share Posted December 9, 2011 What do you mean? I mean i thought i had an answer to your question.. But double checked it and it wasn't that. Quote Link to comment Share on other sites More sharing options...
Jeff Posted December 9, 2011 Report Share Posted December 9, 2011 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. 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.