Jump to content

Kyle

Moderators
  • Posts

    2282
  • Joined

  • Last visited

Everything posted by Kyle

  1. Try this... <?php echo (HubStats::CountFlights(KATL) + HubStats::CountFlights(KBOS) + HubStats::CountFlights(KSEA));?>
  2. What are you trying to do? Can you post the error and the code here? Cheers!
  3. Kyle

    vStatsCenter

    You may be editing the template file in the templates folder when you already have the templates for the module in the skins folder.
  4. Kyle

    vStatsCenter

    Would you paste the code where you are getting those decimal places? Something is still messed up, and it should be rounding.
  5. There's some pointers here, you don't want to really be sending large attachment files to people. Try to keep it under 15-20MB as possible, depending on email providers limitations on attachments. Better option if you don't want to edit the core files of phpVMS, upload the attachment in your site files, and add a link in the email. (Recommended) But if you want to actually send attachments and knowing the risks of modifying core files, then follow along below... THIS REQUIRES MODIFYING CORE FILES. BACK UP BEFORE YOU MAKE CHANGES. TAKE NOTE, WHEN YOU UPDATE PHPVMS, THIS OVERWRITES! IF YOU UPDATED YOUR PHPVMS, YOU WILL HAVE TO REDO IT. Fortunately, phpVMS has a Mailer class that allows to send attachments, we'll have to make some changes here... 1) Go to /core/lib/phpmailer/class.phpmailer.php and find this line... (around line 232) public static function SendEmail($email, $subject, $message, $fromname='', $fromemail='') Replace with this... public static function SendEmail($email, $subject, $message, $fromname='', $fromemail='', $attachment='') 2) In the same file still, find the following lines... (around lines 294-296) $mail->AddAddress($email); $mail->Subject = $subject; $mail->Body = $message; $mail->AltBody = $alt; Add after the following lines... if($attachment != '') { //We need to define the root, otherwise once this runs, it will start looking in the wrong place from here. $mail->AddAttachment(SITE_ROOT.'/'.$attachment); } 3) Save the file. 4) Go to /admin/modules/PilotAdmin/PilotAdmin.php and find this line... (around line 646) Util::SendEmail($pilot->email, $subject, $message); Now here's what I need to explain to you. If you were to upload the welcome.zip file onto your website files, like say if you put it in your root folder along with folders named (admin, core, lib...ETC.) You would update the following lines as above... to this...(note the additional three parameters, the first one is the From Name, and the second one is the From Email Address, and the third one is the location of the attachment) Util::SendEmail($pilot->email, $subject, $message, '', '', 'welcome.zip'); But if you wanted to put the attachment, welcome.zip in a folder called new_pilots in your root along with the folders named (admin, core, lib...ETC.), then the lines would be appropriate... Util::SendEmail($pilot->email, $subject, $message, '', '', 'new_pilots/welcome.zip'); I hope this works, but this isn't tested yet, but I believe this will work. Let me know how you make out! Cheers!
  6. Let's try this way... In the local.config.php.... find this... Config::Set('PAGE_ENCODING', 'UTF-8'); If not, then add this to your local.config.php / or update as below... Config::Set('PAGE_ENCODING', 'ISO-8859-1');
  7. No worries. And to mark the topic solved, go to the first post, click on edit, and add [sOLVED] to the title. (Already done that for you, ) Cheers!
  8. You may want to double check the URL that is set in FSACARS.
  9. You may be missing a file or a folder. The editor phpVMS uses is CKEditor. Check in your site files, (/lib/js.ckeditor/). I may also suggest try re-download and re-upload phpVMS and see if that solves the problem. Cheers!
  10. Kyle

    vStaff - v1.0

    Make sure you are downloading the correct versions. There's two versions. TPL and PHP Template Versions. If you are running phpVMS Version 2.1.934, then you have the TPL Version. - TPL Version If you are running phpVMS Beta, then you must have the PHP Version - PHP Version
  11. Kyle

    vStaff - v1.0

    Make sure you upload all of the files that you downloaded the module. If you are still getting the error, you may have a faulty downloaded file. Re-download it, and upload it again & overwrite it. Cheers!
  12. Kyle

    vStatsCenter

    You can do this way... <?php echo round($flighthours, 2); ?> Cheers!
  13. What's your idea on this? What features you want to see in it?
  14. The chart your referring to is the average PIREPS based on days of the week. I'm assuming that you just set up vaCentral yesterday or recently, it doesn't really count your past PIREPs that much. In a week, the stats will pop up as your pilots are submitting in PIREPs. Cheers!
  15. Where are you seeing these links? None of my modules are using any of those links.
  16. Not really, your pilots will have to select a background image when they edit their profiles. I wouldn't recommend removing the background.png, because that is the default signature for each new pilot. Like I said, you can make an background image, name it background.png, and then upload and overwrite it into /lib/signature/backgrounds/ folder.
  17. Upload some background images for the signatures in /lib/signatures/backgrounds/. The default file for the background signatures is background.png. If you want your pilots to use the same background, overwrite the background.png. Also be sure to go to your phpVMS Admin, in Maintenance, click on Reset Signatures.
  18. <?php echo $_SERVER["REMOTE_ADDR"]; ?>
  19. Can you specify what is out of the box, the module seems to be fine inside of your webpage. Are you talking about the maps of the aircraft locations?
  20. Don't really expect a speedy support here. People like us or lorathon has real-world priorities. Though, I dealt with lorathon on a few issues before, and the only thing that I did is be patient for him. He will get back with you within a reasonable time frame. So why not that can you be patient for him?
  21. There are enough cheap and unreliable web hosting companies just to rip you off... You can try out Site5 - I had no issues with phpVMS with them before, plus they are better in support, even support's right there on LiveChat. But one thing from my experience. Stay away from goDaddy, it's not even worth the headache to get phpVMS to work with them.
  22. Kyle

    vStaff - v1.0

    New Build Released! Added Online Staff Feature. View Changes Download
  23. This is just sad and terrible. Those hackers needs to get a life and stay the h*** away from phpVMS. Might have to delay the opening of my new VA. Don't want to risk getting those attacks when there's a exploit.
×
×
  • Create New...