tgycgijoes Posted January 3, 2012 Report Posted January 3, 2012 I'm rather frustrated right now so I hope some knowledgeable person would post the correct code for me to get my award images to appear in the Pilot Profiles. I have tried all the answers that are here after searching the Support Forum for Missing Awards Images, too many images...all the answers given about awards I tried but to no luck. I have worked on this back and forth from my site to the cpanel file manager for a couple hours now but have run out of ideas. I get the text of the award but no image. The URL's are correct because the images DO appear in the Admin Awards area with their descriptions. they are also I believe small enough being the same size as the rank.jpgs which I created. Can someone please type out here what code should be in the Profile_Main_template after <strong>My Awards</strong><br/> and before it begins the ACARS section so that the image would show and then the text description? I get no "bad image" little boxes, I get no image at all. Thank you for taking the time to help. I have fairly good repainting skills and good graphic skills and am willing to share here with someone who needs THAT kind of help, but no code skills at all. In fact I am quite proud of my ranks I created from scratch. See attached. Quote
tgycgijoes Posted January 4, 2012 Author Report Posted January 4, 2012 I'm replying to myself figuring this out....I added the src image line from pilot_public_profile.tpl just below the li line, saved it and I get my images in the public and members profile to appear just below the text of the award. Post this as solved and I hope it helps others who need to do this too. BTW the offer of graphic help to anyone here as MY thank you for php/vms still stands. See you all next time. Quote
Jeff Posted January 4, 2012 Report Posted January 4, 2012 Here's the code to show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> Here is the whole code: <table width="100%" cellpadding="1" cellspacing="0"> <thead> <tr bgcolor="#003399"> <th colspan="3"><font color="#FFFFFF">My Awards</font></th> </tr> </thead> <tbody> <?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){ ?> <tr bgcolor="#D8D8D8"> <td width="25%"><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> <td width="25%"><?php echo $award->name ?></td> <td width="50%"><?php echo $award->descrip ?></td> </tr> <?php } ?></ul> </tbody> </table> Quote
VatmeGroup Posted June 23, 2012 Report Posted June 23, 2012 Showing award images is commented out between the marks /* and */ and although I have the code as <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> it doesnt work when I remove the comment out signs.. Taking out the /* and */ just gives me an error (unexpected <) I cant see what is wrong. Any ideas whats wrong ? John Quote
VatmeGroup Posted June 30, 2012 Report Posted June 30, 2012 Does nobody know how to fix this ? Please help John Quote
flyalaska Posted July 1, 2012 Report Posted July 1, 2012 When you get on Windows Live, give me a shout. Quote
flyalaska Posted July 17, 2012 Report Posted July 17, 2012 Same problem here, any solutions? Are you seeing the award images on the admin side? Quote
Moderators Kyle Posted July 18, 2012 Moderators Report Posted July 18, 2012 Same problem here, any solutions? Be sure you have the full image URL path. Example would be http://www.something.com/images/anewpic.jpg Quote
Josf Posted February 10, 2014 Report Posted February 10, 2014 Copy and paste the code in <li><?php echo $award->name ?></li>HERE not found deleting /* */ example: <ul> <?php foreach($allawards as $award) { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <li><?php echo $award->name ?></li><br> <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> <?php } ?> </ul> the <br> is Enter You can made this in the profile_main.tpl Quote
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.