polirom Posted March 14, 2011 Report Share Posted March 14, 2011 hello, how is the correct way to view the images in my airline awards, because I have added several images in my awards but only you can see letters, but the images do not appear. I can not find the solution for any site The image is well placed. http://www.mundoairlines.org/webmaster/phpvms/lib/images/award/1000hours.jpg this is the code I have put in profile_main.tpl <img src="<?=php echo $award->image?>"/> alt="<?php echo $award->descrip?>" /> ?> <ul> <?php foreach($allawards as $award){ ?> <li><?php echo $award->name ?></li> <?php } ?> Quote Link to comment Share on other sites More sharing options...
James142 Posted March 14, 2011 Report Share Posted March 14, 2011 http://forum.phpvms.net/topic/4088-how-put-images-awards/page__p__27451__hl__%2Baward+%2Bimages__fromsearch__1#entry27451 Try to search for your question next time Quote Link to comment Share on other sites More sharing options...
polirom Posted March 14, 2011 Author Report Share Posted March 14, 2011 I did this already but still not working Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted March 14, 2011 Administrators Report Share Posted March 14, 2011 You need to put <img src="<?=php echo $award->image?>" alt="<?php echo $award->descrip?>" /> inside your foreach loop, it is above it and probably still commented out. Quote Link to comment Share on other sites More sharing options...
polirom Posted March 16, 2011 Author Report Share Posted March 16, 2011 I copied and pasted this line of poost and get this error Parse error: syntax error, unexpected '<'in / home / Mundoo / public_html / webmaster / phpvms / lib / skins / ObsessBlue / profile_main.tpl on line 99 I do not know anything about php, if can tell me exactly how I have to do would be much appreciated line 99 is: <img src="<?=php echo $award->image?>" alt="<?php echo $award->descrip?>" /> Quote Link to comment Share on other sites More sharing options...
polirom Posted April 5, 2011 Author Report Share Posted April 5, 2011 STILL WITH THIS PROBLEM AND IF NOT I BE ABLE TO SETTLE I do not understand programming and follow what is said in the forum as I can <p> <strong>Mis Medallas</strong><br /> <?php if(!$allawards) { echo 'No awards yet'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <ul> <?php foreach($allawards as $award){ ?> <li><?php echo $award->name ?></li> <?php } ?> </ul> <?php } ?> </p> this is what I have in profile_main.tpl if I delete "/ * To show the image," and "* /" I get this error: Parse error: syntax error, unexpected '<' in /home/mundoair/public_html/webmaster/phpvms/lib/skins/ObsessBlue/profile_main.tpl on line 100 and the line 100 is: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> can help and tell me the steps? Thanks Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted April 5, 2011 Report Share Posted April 5, 2011 Try This <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 } ?> </ul> <?php } ?> </p> Quote Link to comment Share on other sites More sharing options...
polirom Posted April 5, 2011 Author Report Share Posted April 5, 2011 I finally succeeded. The solution found here http://forum.phpvms.net/topic/1723-image-award-in-the-pilot-center/page__p__11111__hl__award__fromsearch__1#entry11111 Thanks 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.