Jump to content

Award Image Missing


tgycgijoes

Recommended Posts

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.

post-2840-060234700 1325625732_thumb.jpg

post-2840-084216100 1325626053_thumb.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 5 months later...

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

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

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

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