Jump to content

Awards images


kbohme

Recommended Posts

i get this error:

Parse error: syntax error, unexpected '<' in /****/****/*****/****/lib/skins/****/pilot_public_profile.tpl on line 51

when i uncomment the

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

i have tried all i can think of to change the code....but alas, i apparently have not learned as much as i first thought.

Link to comment
Share on other sites

well i can't find it  ???

also I notice that the awards aren't listed unless the pilot is logged in...was this intentional

(when a guest is viewing the public pilot info it doesn't list the awards ...just blank....until I log in and view the public pilot info, then it shows up.)

Link to comment
Share on other sites

it already sits inside the <?php

..........

<?php foreach($allawards as $award)

{

/* To show the image:

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

*/

?>

.........

I simply uncommented it, should i try it with its own <?php ?> surround ?

Link to comment
Share on other sites

FIXED

changed the code to this

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

}

?>

Link to comment
Share on other sites

  • 2 months later...

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