kbohme
April 4, 2009, 12:49am
1
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.
kbohme
April 4, 2009, 1:05am
2
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…
kbohme
April 4, 2009, 3:12am
3
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.)
nabeel
April 4, 2009, 1:43pm
4
did you happen to put that inside a <?php ?> code tag?
kbohme
April 4, 2009, 6:06pm
5
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 ?
Wayne
April 4, 2009, 6:17pm
6
Its always worth a shot, try try and try again.
kbohme
April 4, 2009, 6:22pm
7
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…
kbohme
April 4, 2009, 6:42pm
8
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
}
?>
nabeel
April 4, 2009, 6:44pm
9
Yeah I was gonna say that has to sit outside of the php tags
kbohme
April 4, 2009, 6:58pm
10
outside the php but inside the list i found
my award images dont show in the profile