Jump to content

t_bergman

Members
  • Posts

    246
  • Joined

  • Last visited

Everything posted by t_bergman

  1. Not sure if a free web host is the way to go. phpVMS requires php and mysql.
  2. For a 29 seat aircraft, I have a 30 minute turn time. This is pretty standard for commuter flights which land, taxi, and are back to the hub. Generally, yes; the saying is that the aircraft is not making money unless the engines are running. No, most of my aircraft don't start until 7am and are done by 10pm thus allowing overnight maintenance.
  3. In your local.config.php file make sure the following settings are correct. Config::Set('CARGO_UNITS', 'lbs'); Config::Set('WeightUnit', '1'); # 0=Kg 1=lbs Config::Set('DistanceUnit', '2'); # 0=KM 1= Miles 2=NMiles Config::Set('SpeedUnit', '1'); # 0=Km/H 1=Kts Config::Set('AltUnit', '1'); # 0=Meter 1=Feet Config::Set('LiquidUnit', '1'); # 0=liter 1=gal 2=kg 3=lbs
  4. Thanks very much, I ended up just rounding the individual pages I needed as you're right the calculations will be much more precise. For those who may find this thread later, this is how the code looks. <?php echo round($bid->distance) . Config::Get('UNITS');?>
  5. Is there a way to universally set all of the route distances to a whole number and not have decimal places?
  6. Use php 5.4 and reinstall. I've found 5.5 or 5.6 to cause issues.
  7. MySQL is most likely in strict mode.
  8. phpVMS's acars map draws from the database and not from an xml file.
  9. Not only offline, but no DNS resolve. Personally I don't know why people post hosting offers that compete with FiveDev. It's in bad taste in my opinion.
  10. I've got some work to do with file_get_contents, I like that fact that I should be able to turn parts of the data into variables and mold them into more useful information than just a metar. But I'll have to design the data as right now the iframe looks better than the file_get_contents method. php method iframe method
  11. Thank you very much, I will play around with this tonight and report back.
  12. I'm not sure how I would implement that. The iframe's source is http://weather.noaa.gov/pub/data/observations/metar/decoded/KAPF.TXT and the station identifier changes based on what the user submits in the form. I would agree with you that the 0 iframes is the perfect number of iframes to have.
  13. Try installing a plugin, its possible the plugin manager is expecting something to be there when nothing is.
  14. Thank you very much, the "if" statement was the script needed.
  15. A small update, I've got the function "working" but I have a feeling there is a better way to do this. I have no formal php training so everything I know is from just screwing around. The goal of this portion of the module is to be able to lookup any metar through a form on the site. This is my dashboard_metar.php file <?php $url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/'. $_POST["metar"] .'.TXT'; ?> <div id="dashboardWrap"> <div id="dashboardHeader"> <table border="1" style="width: 780px; border: 2px solid"> <tr> <th style="width: 190px; text-align: center;"><a href="<?php echo SITE_URL?>/index.php/dashboard/">Crew Resource Center</a></th> <th style="width: 400px; text-align: center;">METAR/TAF Request</th> <th style="width: 190px; text-align: center;">Dispatch: Off/Online</th> </tr> </table> <table border="1" style="width: 780px; border: 2px solid; text-align: center;";> <tr> <td style="width: 190px;">Metar Request:</td> <td style="width: 400px; text-align: left;"><form action="dashboard_metar.php" method="post"><input type="text" name="metar" value="Upper Case Only" ><input type="submit" value="Submit"></form></td> </tr> <tr> <td colspan="2"; style="width: 780px; text-align: left;"><iframe src="<?php echo $url; ?>"; frameborder="0"; width="769px"; height="400px"; scrolling="auto";></iframe></td> </tr> </table> </div> </div> This is my Dashboard.php file <?php //This is the Hemisphere Virtual Airlines Crew Resource Center Module //Use of this module outside of the Hemisphere Virtual Airlines domain is prohibited //Copyright 2013 - hphvirtual.com Administration class Dashboard extends CodonModule { public $title = 'C.R.C. v0.0.1'; public function index() { if(!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.php'); return; } $this->render('dashboard/dashboard.php'); $userinfo = Auth::Displayname(); } public function metar() { if(!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.php'); return; } { $this->render('dashboard/dashboard_metar.php'); } } } Thanks for any help or comments on this. Right now the module displays a 404 error when its first brough up, which I'm not too thrilled about but hopefully with a php if statement I can get that figured out.
  16. I think I have a bad cake , cause I have way too much php code in my views. I'll work on it tonight and see what I can come up with. Thanks,
  17. I am in the process of creating my own dashboard module, a couple of quick questions. Does all of the php code need to be the module/module.php file? Or can most of the code be placed in the template/template.php file? I'm currently trying to figure out why a form of my is not working, when the form is processed the browser moves onto the process page url but the actual content does not change. Why would this be happening? Thanks,
  18. phpVMS is not a powerful CMS like others, the flexibility of the content is very limited as it was designed as a virtual airline management tool (which it excels at). I am wanting to build a module within the phpvms framework using its backend and then have the ability of a very robust cms.
  19. The framework I am using is CMS made simple, I am able to very easily add into custom php code within the framework via global content blocks.
  20. I'm stuck and need some help from the gurus on this board. I am trying to insert phpvms content within another cms without relying on an iframe. I want to be able to use modules within phpvms but use the cms framework to build pages etc with another system. Right now my folder structure is \root\ where the cms is and \root\phpvms\ where phpvms is installed. I've got this code so far but I don't know if I am missing elements? Thanks,
  21. My skins are using tpl extentions in the layout.tpl for the individual skins. I will try the other file and report back.
  22. I've got servers with Softsyshosting.com, great hardware if you understand how to administer a webserver. They also have fully managed servers if you want them to take care of everything, they feature both windows and have started offering linux recently.
  23. I've got the same issue and I am using the patched 2.1.936 version? Any ideas? Thanks,
  24. That is the date the file was created, not uploaded.
×
×
  • Create New...