Administrators simpilot Posted June 29, 2009 Administrators Report Share Posted June 29, 2009 Has anyone else had pilot awards start showing up for all pilots (even when they are not assigned an award) again after the last beta (rev 713) ? It started working correctly for me a few builds ago but now with this latest it has started acting up again...... ??? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 29, 2009 Administrators Report Share Posted June 29, 2009 Nothing changed with that. What page is it happening on? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 29, 2009 Author Administrators Report Share Posted June 29, 2009 The awards are showing in the public profile page for all pilots as well as in the pilot center when they are logged in. I have gone in and reset them all and the only one that will show is the first one in the list and it shows on all pilots even if it is not assigned to them. I have had to remove all awards for them not to show everywhere. Tried re-loading the beta and forced the update with no sucess... On the local development server here I went back and created a new site with beta 712 and the issue is not there, when I updated it to 713 it comes back. It must be something in the PilotData class I think, although I do not see a change in the file that would make it happen... Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 29, 2009 Administrators Report Share Posted June 29, 2009 I will take a look. What's your code on that page which shows the awards? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 29, 2009 Author Administrators Report Share Posted June 29, 2009 From the profile module it is using: case 'view': $pilotid = $this->get->pilotid; if(preg_match('/^([A-Za-z]{3})(d*)/', $pilotid, $matches) > 0) { $pilotid = $matches[2]; } $userinfo = PilotData::GetPilotData($pilotid); Template::Set('userinfo', $userinfo); Template::Set('allfields', PilotData::GetFieldData($pilotid, false)); Template::Set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); Template::Set('pilotcode', PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid)); Template::Set('allawards', AwardsData::GetPilotAwards(Auth::$userinfo->pilotid)); Template::Show('pilot_public_profile.tpl'); break; And from the template for display: <strong>Awards</strong> <?php if(is_array($allawards)) { ?> <ul> <?php foreach($allawards as $award) { /* To show the image:*/?> <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...
Moderators mark1million Posted August 1, 2009 Moderators Report Share Posted August 1, 2009 sorry to jump in on this one but i have a problem with the awards that the images wont show up but the awards are listed on the pilot profile page. Any one shine any light on that one please. Thanks Mark. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 3, 2009 Administrators Report Share Posted August 3, 2009 Did you add the above code in, to show the image? And for the images link, are you using the full http://... ? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 13, 2009 Moderators Report Share Posted September 13, 2009 Took me a while to get back but now works great, Thanks Quote Link to comment Share on other sites More sharing options...
fsx Posted June 16, 2011 Report Share Posted June 16, 2011 I have a problem with award in the view pilot The award is description without image, how can I insert the image ? I have insert the award in the pilot center according to this post and it's ok http://forum.phpvms.net/topic/1723-image-award-in-the-pilot-center/ thank's for responce Quote Link to comment Share on other sites More sharing options...
Jeff Posted June 16, 2011 Report Share Posted June 16, 2011 Same as above. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 17, 2011 Administrators Report Share Posted June 17, 2011 Look in the code for that template... it's explained in there Quote Link to comment Share on other sites More sharing options...
fsx Posted June 17, 2011 Report Share Posted June 17, 2011 Look in the code for that template... it's explained in there ok, I open the pilot_public_profile.tpl in the template folder and i change this <?php foreach($allawards as $award) { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <li><?php echo $award->award ?></li> <?php } ?> with this <?php foreach($allawards as $award) { ?> <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> <?php } ?> now it's ok, thank you 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.