Awards images

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.

Some more FYI

I took the img code for the rank

<img src=“<?php echo $userinfo->rankimage?>”  alt=“” />

and put it in place of the award image code…and got the same error…

I am looking higher up for an extra < now…

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

did you happen to put that inside a <?php ?> code tag?

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 ?

Its always worth a shot, try try and try again.

ok tried it within its own php and got this error

Parse error: syntax error, unexpected ‘<’ in /****/*****/******/*****/lib/skins/3col/pilot_public_profile.tpl on line 60

I just cant seem to find the unexpected ‘<’ anywhere…

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

}

?>

Yeah I was gonna say that has to sit outside of the php tags

outside the php but inside the list i found

yuppers, glad it worked

my award images dont show in the profile