Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by freshJet

  1. Why was this removed? Can I get it again? I need to update my files, they got corrupted...
  2. Same as Sava. Plus you have been told this before. Not a good sign that you haven't bothered fixing these errors and gone ahead and opened anyway.
  3. From the fuel bowser I use, the quantity is measured in gallons. For commercial traffic in Europe however it would typically be measured in kilograms, whereas the USA uses pounds. As for prices, you can use AirNav, at least for the USA anyway. http://www.airnav.com/fuel/local.html
  4. http://www.wingsair.co.uk/index.php I use the index.php trick on a lot of new sites just to see if I can get a sneak peak! The developers are wise on some sites though and prevent that which is really how most sites should be if they don't want people to see the site.
  5. freshJet

    VAForum 2

    I have thought about that before, should be quite simple.
  6. Ok no problem
  7. It's all sorted! I edited my PilotData file to add the new column I was talking about. I did this by uncommenting the PHP code that has an array for the variables for updateProfile. As the approve function inlcudes updateProfile, this meant that it was unable to do anything. Thanks anyway Parkho! Shall I delete your account now or do you wish to keep it?
  8. OK you got the email, great, so did I (I made a test), but you are still displaying as pending. So the situation is that it sends the acceptance email but does not approve the account. This means my pilot must have received a huge amount of emails by now You will be there, you are added to the db anyway when you register and deleted if the account is rejected, but your 'confirmed' value will be 0.
  9. I received your registration but again I cannot accept. Did you receive an email?
  10. Go to 'Careers'.
  11. Yes sorry should have gave you the link http://freshjetvirtual.com/ I should also note that I added a column a few weeks ago to phpvms_pilots but have now removed it
  12. I briefly got this error when I tried a second ago: Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 But I assume this is just a temporary SQL error.
  13. *DOUBLE POST*
  14. I'd rather not do this manually in case something goes wrong. Can anyone suggest a reason as to why it won't work? My code wasn't edited before this happened.
  15. That can easily be done with the one image like joeri said, just have one, create a div for it and then position the text around it with CSS.
  16. It's nice in the sense that it's clean but I do think it could do with some padding here and there, such as at the bottom and in the login div.
  17. Yes! If it helps, the pilot's ID is FRX0100, don't think that should affect it though (before it only went to 0099).
  18. Update: I created a test profile and the accept button did not work again. However, the reject button works.
  19. Definitely recurring. I've tried it on Firefox, Chrome, IE and my phone. Nothing happens. I even changed the button to just a link (no jQuery) but still nothing happened.
  20. Just received a new pilot application, but I can't accept him. I can press the 'accept' button but nothing happens whatsoever. Should I just change manually through phpMyAdmin?
  21. I can only suggest contacting your host
  22. It's in his post
  23. Updated today
  24. Whoops, silly me. I had a string in speech marks in a date() function. My bad.
  25. Here's a quick piece of code which will display the user's mailbox on their profile, however with just the date, subject and who from: 1. First, create the file mail_profile.tpl in core/templates/mail and paste the following code: <table width="100%" cellpadding="2"> <?php if(!$mail){ echo '<tr><td align="center" colspan="3">No NOTAMs available</td></tr>'; } else { foreach($mail as $data) { ?> <?php $user = PilotData::GetPilotData($data->who_from);?> <tr> <td width="25%" align="center"><?php echo date(DATE_FORMAT.' H:i', strtotime($data->date)); ?></td> <td><?php echo $user->firstname.' '.$user->lastname;?></td> <td> <?php if ($data->read_state=='0') { ?> <b><a href="http://www.freshjetvirtual.com/index.php/Mail/item/<?php echo $data->thread_id;?>"><?php echo $data->subject; ?></a></b> <?php } else { ?> <a href="http://www.freshjetvirtual.com/index.php/Mail/item/<?php echo $data->thread_id;?>"><?php echo $data->subject; ?></a> <?php } ?> </td> </tr> <?php } } ?> </table> 2. Add the following code to core/modules/Mail/Mail.php : public function GetProfileMail(){ $pid = Auth::$userinfo->pilotid; $this->set('mail', MailData::getallmail($pid)); $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $this->show('mail/mail_profile.tpl'); } 3. In your profile_main.tpl (or wherever else you want): <?php MainController::Run('Mail', 'GetProfileMail', 5);?> The number at the end can be changed to suit how many items you wish to display as per usual. Enjoy
×
×
  • Create New...