kbohme Posted April 4, 2009 Report Share Posted April 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 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.... Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 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.) Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2009 Administrators Report Share Posted April 4, 2009 did you happen to put that inside a <?php ?> code tag? Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 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 ? Quote Link to comment Share on other sites More sharing options...
Wayne Posted April 4, 2009 Report Share Posted April 4, 2009 Its always worth a shot, try try and try again. Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 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..... Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 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 } ?> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2009 Administrators Report Share Posted April 4, 2009 Yeah I was gonna say that has to sit outside of the php tags Quote Link to comment Share on other sites More sharing options...
kbohme Posted April 4, 2009 Author Report Share Posted April 4, 2009 outside the php but inside the list i found Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2009 Administrators Report Share Posted April 4, 2009 yuppers, glad it worked Quote Link to comment Share on other sites More sharing options...
davehardy Posted June 9, 2009 Report Share Posted June 9, 2009 my award images dont show in the profile Quote Link to comment Share on other sites More sharing options...
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.