Jump to content

Kyle

Moderators
  • Posts

    2282
  • Joined

  • Last visited

Everything posted by Kyle

  1. yeah i got that as well too.
  2. Ok, Another one...... When I edit the pay for flight in the PIREP. I changed from 12 to 1 and then it seems to still to times the flight price to the pay, not per flight.
  3. We might have one thing..... When I filed a PIREP, it seems my hours aren't being added after approving a PIREP of mine.
  4. Yep, It worked now.
  5. EDIT: Nevermind. lol. Great job on the activity feed!
  6. Got the error when populating the tables Writing "phpvms_fieldvalues" table... Can't create table 'phpvms_1009.phpvms_fieldvalues' (errno: 150) Writing "phpvms_groupmembers" table... Can't create table 'phpvms_1009.phpvms_groupmembers' (errno: 150) Writing "phpvms_pirepcomments" table... Can't create table 'phpvms_1009.phpvms_pirepcomments' (errno: 150) And got the error when creating an admin in installer.... phpvms_revs\1009\install\includes\Installer.class.php 290 Table 'phpvms_1009.phpvms_groupmembers' doesn't exist
  7. That's in Nabeel's Area. I'm sure he will look into it soon.
  8. Awsome to hear Nabeel. I have added to the bug tracker. That's is something for us to keep track to what the pilots changes are.
  9. Nabeel, This came to my mind........ I'm not sure but I wanted to tell... What would if you could put a feature like a Account History for per pilots. Like for Example, you change the pilot's hub from KLGA to KLAS, the log data will be logged to the pilot's profile and it will display like this.... 12.21.10 Hub Changed From KLGA to KLAS VA0001 Kyle S. And it will show who changed the pilot's hub from the staff and what date. Just like DeltaVA. I'm kinda feeling it would be little hard but it's a great feature to have though. I'm interested to have that. It helps to keep track to what changes were made to the pilot's account
  10. Your welcome guys. I'm glad to share something.
  11. Can you check your local config and find that line that should look like this.... Config::Set('PAGE_ENCODING', 'ISO-8859-1'); If it's different, then try the code I pasted in.
  12. Yeah that would be cool!!! Good IDEA MARK!!! Nabeel? Pretty Please!!!
  13. Hey, joeri told me that Nabeel might. So I'm okay with Nabeel putting it in! My offer to the community
  14. To display the pilot status..... <?php if($userinfo->retired == 0) echo 'Active'; elseif($userinfo->retired == 1) echo 'Inactive'; elseif($userinfo->retired == 2) echo 'Banned'; elseif($userinfo->retired == 3) echo 'On Leave'; ?> Enjoy! First Post Updated!
  15. Thanks for letting me know. glad you got it working.
  16. Umm No lol. Sorry. But I can tell you what it does.... Basicly, like for example, if you want to ban a pilot from the VA. You go to the PilotAdmin and change the Pilot Status to banned and then when a banned pilot trys to log in, it won't let him in, and he will get the message in the login form like "Your account is banned!" Does that clear you up?
  17. Hey Everyone, Someone had requested me to show how to make a advanced pilot status so here's it is. Pilot Status - Advanced Follow this carefully so you don't hit a brick. AND BACK UP YOUR FILES BEFORE DOING IT! 1) Go to core/common/Auth.class and go to the following line /*if($userinfo->retired == 1) { self::$error_message = 'Your account was deactivated, please contact an admin'; return false; }*/ 2) Replace that to..... if($userinfo->retired == 1) { self::$error_message = 'Your account was marked inactive, please contact to Human Resources for more information.'; return false; } if($userinfo->retired == 2) { self::$error_message = 'Your account is banned!'; return false; } if($userinfo->retired == 3) { self::$error_message = 'Your account is marked on Leave! Please Contact to the Human Resources to ask them to reactive you in.'; return false; } But if you want to still let the LOA pilot to login, uncomment the code like this.... /* if($userinfo->retired == 2) { self::$error_message = 'Your account is banned!'; return false; }*/ 3)Go to /admin/templates/pilots_details.tpl and change the following from.... <td>Pilot active?</td> <td><?php if(intval($pilotinfo->retired) == 1) { $retsel='selected'; $activesel = ''; } else { $activesel = 'selected'; $retsel = ''; } ?> <select name="retired"> <option value="0" <?php echo $activesel?>>Active</option> <option value="1" <?php echo $retsel?>>Inactive</option> </select> </td> To... <td>Pilot active?</td> <td> <?php if(intval($pilotinfo->retired) == 1) { $retsel1='selected'; $activesel = ''; $retsel3 = ''; $retsel2=''; } else if(intval($pilotinfo->retired) == 2) { $retsel2='selected'; $retsel1=''; $retsel3=''; $activesel=''; } else if(intval($pilotinfo->retired) == 3) { $retsel3='selected'; $activesel = ''; $retsel = ''; $retsel2=''; } else { $activesel = 'selected'; $retsel1 = ''; $retsel3=''; $retsel2=''; } ?> <select name="retired"> <option value="0" <?php echo $activesel?>>Active</option> <option value="1" <?php echo $retsel1?>>Retired</option> <option Value="2" <?php echo $retsel2?>>Banned</option> <option value="3" <?php echo $retsel3?>>On Leave</option> </select> </td> 4) Last Thing! Go to /admin/modules/PilotAdmin/PilotAdmin.php and find the following lines..... if(intval($this->post->retired) == 1) { $retired = true; } else { $retired = false; } And Change to the following.... /* if(intval($this->post->retired) == 1) { $retired = true; } else { $retired = false; } */ $retired = $this->post->retired; To display pilot status in their profile or public profile, add the following.... <?php if($userinfo->retired == 0) echo 'Active'; elseif($userinfo->retired == 1) echo 'Inactive'; elseif($userinfo->retired == 2) echo 'Banned'; elseif($userinfo->retired == 3) echo 'On Leave'; ?> And That's It!!! It should be working now. Any problems, report here in this topic. Also, and a big thanks to lorathon for helping to complete this feature that I rquested. NOTE:* I'm not responsibility for any damages at all, you are responsible to back up your files before changes. UPDATE: This IS NOT SUPPORTED ANYMORE - It has been integrated into phpVMS. - Thanks Nabeel for putting in.
  18. Whenever i go to http://site.com/profile, it tells me that it's not found.
  19. Nabeel, It does seem that the rewrite does not work after I changed the url rewrite to true. What seems to be the problem?
  20. Everything would be nice, so I don't have to sit at my computer desk to do all of it. So I think it would be good.
  21. Awesome Site Cor!! I wish you the best of luck with phpVMS.
  22. It was found in Code Spinets.
  23. Oh ok, Cool. Does sound like a bonus to me. Thanks/
  24. No Problem!
×
×
  • Create New...