davehardy Posted June 15, 2009 Report Share Posted June 15, 2009 I added 5 or 6 awards and images to them but they dont show when i "award" them lol Any known issues? Cheers, Dave. Quote Link to comment Share on other sites More sharing options...
davehardy Posted June 15, 2009 Author Report Share Posted June 15, 2009 <li><?php echo $award->name ?></li> I edited to <li><?php echo $award->image ?></li> and now the full url to the image shows, so im guessing it needs some other variable to fetch the image? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 16, 2009 Administrators Report Share Posted June 16, 2009 You have to put it in an image tag <img src="<?=php echo $award->image?>" /> Quote Link to comment Share on other sites More sharing options...
davehardy Posted June 16, 2009 Author Report Share Posted June 16, 2009 <ul> <?php foreach($allawards as $award){ ?> <li><img src="<?=php echo $award->image?>" /></li> <?php } ?> </ul> Like that? because i get an error on the page with that Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /home/easternv/public_html/eva/lib/skins/eva/profile_main.tpl on line 79 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 16, 2009 Administrators Report Share Posted June 16, 2009 <?=php Should be <?php Quote Link to comment Share on other sites More sharing options...
davehardy Posted June 17, 2009 Author Report Share Posted June 17, 2009 cheers Nabeel!!!! 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.