Jump to content

LeonardIGO4036

Members
  • Posts

    116
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by LeonardIGO4036

  1. 7 hours ago, FlyingMachine said:

    Hi all,

    Currently when i have already 1 bid in my bids, i cannot to proceed to make 2nd booking, is there any option to allow 2 booking or more ?

    Yours,

    I believe it can be done via your core/local.config.php on line 103 approx 
     

    Config::Set('DISABLE_SCHED_ON_BID', true);

    change it to

    Config::Set('DISABLE_SCHED_ON_BID', false);

    That should hopefully fix your issue.

  2. Hey,
    phpvms 7 is built on Laravel, and I've taken a look at the DB tables. As you have guessed, the same import CSV files you used for phpvms v2/v5 wouldn't work. The documentation says that you will be able to do an import thought SSH Terminal using the following artisan command. Ik most of the guys are on TFDi hosting, and the good news is they support SSH Access via cPanel. So when you get phpvms7, all you gotta do is go to cPanel > Terminal > and enter the following command with your DB creds. 

    php artisan phpvms:importer  {db_host} {db_name} {db_user} {db_pass?}

    more information here: https://docs.phpvms.net/setup/importing-from-v2-v5

    On a side note, 
    There is this awesome tool https://virtualairlineschedules.net/ provides data (airports, aircrafts, schedules) which support phpvms7. The only thing left to actually import from your old VA DB is, Pilot Data & PIREP Data, which also can be imported manually

    I've been working on Laravel projects for a while now. I created a custom VMS for a client who were running on phpVMS earlier. It was fairly very easy to get all their data from the DB and put it into a format where it was accepted by my VMS because the database tables were much similar. So, the possibility that it can be done without using the Terminal in phpvms7 is still there. I've attached a screenie for reference from when I tried to export data from a phpvms v2 based VA to a custom Laravel VMS. 

    unknown.png


    In conclusion, the odds are that there would be a full featured import tool when phpVMS is released, so we'll cross that bridge when we get to it! 

    Cheers.

    • Like 1
    • Thanks 1
  3. 10 minutes ago, Cor said:

    Hey @LeonardIGO4036

    I have made some progress see https://www.virtual-classics.com.(second website we have)  I need to tweak it still a little bit and also see how it can automaticly update the board. But for a few hours playing with it I am happy with the result so far 🙂

    Regards,

    Cor

    Looks crazy @Cor. Good job. 

    To update the flight boards dynamically, use JS & AJAX. Set the code to load information from a url and parse it into the board, additionally add a "SetInterval" function with a custom time frame on JS so that the code refreshes accordingly. 

    Let me know if you need any help ;)

    Cheers! 

  4. On 9/11/2019 at 11:59 AM, CedGauche said:

    Good morning from germany,

    I've created a new module with a form. But how can I get the form values as a variable into the DataClass query.  The module has these 3 files:

    TourenDataClass.php

    Touren.php

    touren.tpl

     

    queries without variables from the TourenDataClass.php are working in the touren.tpl.

     

    I'm quity new in php so I need advice ;)

     

    Hello, greetings from India :)

    [Quick fix, change your file name to TourenData.class.php] 
    Assuming you are asking how to get data into the DataClass, the answer to that would be "using SQL". 

    Example: 
     

    public static function GetTourenData() {
    
    // Getting all values from a table 
    $sql = "SELECT * FROM `phpvms_tourendata`";
    return DB::get_results($sql);
    }


    If you need to use a variable in the module, assuming that it is already establed (coded) in the DataClass (core/common) folder, all you'll have to do is to just assign a variable to display the value. 

    Example: 
    In ACARSData.class.php, you have a static function called "GetACARSData()" which returns an array. The idea is to get your static function inside TourenData.class.php to return some value. Once that is done, you can call that inside your module like this... 

    Assuming we are coding in the public index function of your module, code this way 

    $this->set('tourendata', TourenData::GetTourenData()); 
    $this->render('touren.tpl');


    So now, phpVMS is assigning the values of TourenData::GetTourenData() function into a variable called "$tourendata" which you can use in the template file. 
    One more way I have seen people using this is, to set the data to the variable instead of using "this", 
     

    Template::set('tourendata', TourenData::GetTourenData()); 



    nevertheless, both methods work. 

    Let me know if this was of any help, 

    Regards, 
    Leonard
     

    • Like 1
  5. 14 minutes ago, omglookeyhere said:

    So, since Google browser is doing away with Flash in some very near future. Is there a way to take Flash charts and convert them to another source where every browser is able to display them? Thanks in advance. 

    Very much possible. Have you heard of Charts.js? I *guess* Nabeel is using that on phpvms7 
    Take a look here > https://www.chartjs.org/samples/latest/charts/line/basic.html
    It's very advanced as well as a very easy library to work with. Let me see if I can make a patch for the VA finance module.

    Regards.

  6. On 9/8/2019 at 9:59 PM, Cor said:

    Hi Jim,

    I will look into it but I found a lot on github but do not know where to start. I have already started something based on some old script I have found Look at https://www.virtual-classics.com/ . But I like the splitflap one but don't know where to start.

    Can you help me on my way so I can experiment a little bit.

    regards,

    Cor

    Hey @Cor, Any luck yet? I've done this way looooong back for a project. I can't share the exact code here cuz the client paid for it....but I sure can help.
    As far as I can recollect, if you can get splitflap.js to work on your crew side / website without any issues, all that is left would be to pass on some variables using the help of a little php. 

    <?php 
    	// First, let's get the ACARS data from phpVMS
    	$acarsdata = ACARSData::GetACARSData(); 
    	
    	//Checking if the data is empty and showing a message 
    	if($acarsdata == '') {
    	echo "Whoops, there are no live flights now!";
    	} else {
    		foreach($acarsdata as $flight) {
     			echo $flight->code.$flight->flightnum; // Displays flight number eg: VMS1024F
    			echo $flight->depicao; // Displays the departure ICAO code
    			echo $flight->arricao; // '' Arrival ICAO code
    			echo $flight->phasedetail; // Phase detail-> Boarding, Take-off, Climb etc.			
    		}			
    	}
    ?>

     

    So, if you can insert this piece of code in your page where you have splitflap.js working, you can get the acars data from phpVMS and display it there. 
    Use <?php ?> tags to break the php code where ever necessary so that you're able to format the code with HTML to make it work with the split flap. 

    I know this was a bit bare bones, but let me know how it goes. 

    P.S Emphasizing on "Live Free or Die" @Heritage1, I'd like to add something which I found on the internet a long time ago, a quote from this site, which reads 
     

    Quote

    "If you can’t help… just shut up and keep quiet. It’s a lot better… than opening your mouth and crushing someone’s dreams."
                                                                                                                                                                                             
    - Venkat Desireddy

    Hoping things become better for people who seek help from this forum. 
    Cheers, 
    Leonard.

  7. On 7/29/2019 at 5:39 AM, OmerAslan said:

     

    You need to run composer install on your shell. Contact your web hosting provider and ask him to run composer install on phpvms directory. 
    or, if you have shell access, you can do it yourself. Check out this video 

     

  8. Do you have the country image files located in the lib folder? 

    Try to test it, open the image on a new tab maybe. If the images don't exist, download the original copy of phpVMS, it'll have the images  If the image exists and is not loading, then there is some other issue. 

     

    Regards

  9. 1 hour ago, NationalAirlines said:

    Good Morning,

     I am very interested in this "iCrew" to be added to our VA and willing to look at your company to rebuild our VA site from the ground up if we may come to a price agreement. You can private message me here or contact me via Skype or my personal cell phone number (USA Based Phone Number) once you private message me, I would be willing to share that information with you so we can talk about this. I appreciate any assistance that your able to offer my VP, myself and our virtual airline.

    GOD BLESS!!!!

    Anthony

    Hello Anthony, 

    That sounds great. I will send you a DM :)

    Regards

  10. Hey guys, 
       I came across an issue where in a blank space appears on the top of the webpage. While inspecting it, it seems that the webpage was returning a speacial charecter &#65279; It is a UTF-8 byte order mark, and I have seen few people on the Discord channel addressing this problem with no success, it was very frustrating, but I have found a solution for it. 

                                                                   4o1Qu.png
    How to fix: Create a page called "fix.php" in your main folder, where there's action.php & index.php and add the following code to it. 
     

    <?php 
    // Tell me the root folder path.
    // You can also try this one
    // $HOME = $_SERVER["DOCUMENT_ROOT"];
    // Or this
    // dirname(__FILE__)
    $HOME = dirname(__FILE__);
    
    // Is this a Windows host ? If it is, change this line to $WIN = 1;
    $WIN = 0;
    
    // That's all I need
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>UTF8 BOM FINDER and REMOVER</title>
    <style>
    body { font-size: 10px; font-family: Arial, Helvetica, sans-serif; background: #FFF; color: #000; }
    .FOUND { color: #F30; font-size: 14px; font-weight: bold; }
    </style>
    </head>
    <body>
    <?php
    $BOMBED = array();
    RecursiveFolder($HOME);
    echo '<h2>These files had UTF8 BOM, but i cleaned them:</h2><p class="FOUND">';
    foreach ($BOMBED as $utf) { echo $utf ."<br />\n"; }
    echo '</p>';
    
    // Recursive finder
    function RecursiveFolder($sHOME) {
      global $BOMBED, $WIN;
    
      $win32 = ($WIN == 1) ? "\\" : "/";
    
      $folder = dir($sHOME);
    
      $foundfolders = array();
      while ($file = $folder->read()) {
        if($file != "." and $file != "..") {
          if(filetype($sHOME . $win32 . $file) == "dir"){
            $foundfolders[count($foundfolders)] = $sHOME . $win32 . $file;
          } else {
            $content = file_get_contents($sHOME . $win32 . $file);
            $BOM = SearchBOM($content);
            if ($BOM) {
              $BOMBED[count($BOMBED)] = $sHOME . $win32 . $file;
    
              // Remove first three chars from the file
              $content = substr($content,3);
              // Write to file
              file_put_contents($sHOME . $win32 . $file, $content);
            }
          }
        }
      }
      $folder->close();
    
      if(count($foundfolders) > 0) {
        foreach ($foundfolders as $folder) {
          RecursiveFolder($folder, $win32);
        }
      }
    }
    
    // Searching for BOM in files
    function SearchBOM($string) {
        if(substr($string,0,3) == pack("CCC",0xef,0xbb,0xbf)) return true;
        return false;
    }
    ?>
    </body>
    </html>

    Voila, you're done! 
    Hope this helps. 

  11. 1. Add the logo image (png preferred) of your airline(s) to "/lib/images/airlines/"

    2. As mentioned by artem, Go to /lib/skins/*your skin*/schedules_results.php and paste the code inside the "foreach" loop. 

    <?php $logo = SITE_URL."/lib/images/airline/".$route->code.".png"; ?>
    <img src="<?php echo $logo; ?>" style="height: 70px; width: auto;" />

    3. [IF YOU ARE NOT USING A CUSTOM SKIN] Go to core/templates and find schedules_results.php and do the same as mentioned in step 2. 

    P.S You can adjust the size of the image to your preference. 

  12. On 3/26/2019 at 1:10 AM, LauraG said:

    Hi, I am a hospital social worker and have a patient who is retired from flying secondary to a medical condition.  It is uncertain if he will be cleared to fly at a later date.  He has been flying for 40 years (commercial and in the National Guard) and the thought of not flying is understandably very depressing.  He does not have children, only a sibling who lives out of state but he does have some close friends locally...very limited social support.   Are you aware of support groups that might be appropriate for him?  Thank you for your time. 

    Laura

    Hey Laura, 
    Thanks for letting us know, could I suggest something?

    I think, he should take part in the training programmes of IVAO/VATSIM (and POSCON in future). I know a veteran pilot who teaches young enthusiasts about the "not-so-easy-to-understand" aviation subjects through IVAO. I feel, flying virtually on a simulator can also be monotonous sometimes. But teaching someone, might bring out the best in him, and also inspire the person he is teaching. Me being an IVAO instructor myself, I believe "You gain, by giving" 

    Of course it would not be easy to get into a division / vARTCC, but I am sure, considering his experience in the real world, he would be welcomed at the above mentioned virtual networks. 

    Please make him take a look,
    http://ivao.aero/
    http://vatsim.net/

    Hoping for the best. 
    Leonard.

  13. 7 hours ago, TheGmader said:

     

    Nope nowhere ! And i've followed the documentation !

    Hey buddy, 

    The problem is because, your php code is calling a function that does not exist, that is why it is quitting, or as we call it in the programming jargon "die"ing. 

    Here's something which you might have missed from the documentation 


     

    Quote

     

    How things work VERY IMPORTANT

    [UPDATE] : I have found through the phpVMS Forum post that most of the issues are because the admins forgot to do this part. I repeat, donot skip this part, it's quite important.

    Well, mostly I've made sure everything is dynamic, which means you don't have to change / monitor anything, but there are few stuff which you need to tweak in order to make sure everything works perfectly. 
    To begin with, the Staff Page needs a little configuration to do. It's simple, you just need to understand this over here! The skin is even already exported with the code, so no need to Copy paste too.


    To the guys who are from 'Non Computer Science background', and the guys who donot understand what is an array, An array is a special variable, which can hold more than one value at a time. So we are storing all the staff positions and the name of the respective staff inside "$staff_array". This is called as an Associative Array 
    You will need to edit these lines which are located at lib > skins > iCrewLITE > staff.php > on line 13 

    Layout : First Part = 'Name of the staff position', Second Part = 'Name of the person' 

    $staff_array = array( "COO"=>"Gabriel Iglesias", "Flight Operations"=>"D.J Trump" );


    Next, open core > common > StatsData.class.php and after line '556' add the following 

    public static function TodayHours() { return self::getTotalForCol(array('table' => 'pireps','column' => '*', 'where' => array('DATE(`submitdate`) = CURDATE()'),'func' => 'SUM')); }


     

     

    This might actually fix it but if it doesn't, text me up with a demo account, and a temporary FTP account on DM. I'll happily fix it for you. 

    Best regards
     

  14. On 1/4/2019 at 7:06 PM, bbuske said:

    Hi,

    happy new year. No worries.

    I have been using phpVMS 5.5.2 indeed.

    I have also checked the layout file layout.php. It is in the skins/iCrewLITE folder and it does seem to contain the correct paths. There are several paths in it, all containing iCrewLite.

    Can you try a full delete and reinstall? 

    Delete the skin, download the latest one and follow the documentation. 

    If this is not helping, set me up with a demo account and your FTP details on PM. I'll do it for you. 

    Regards. 

  15. On 1/4/2019 at 11:32 PM, Maksim said:

    Hello, As I can see there is a Focus Airport Module, How I can configure it, thank you very much!

    Hey there @Maksim 

    The module is extremely simple, no complex code at all. Which makes it almost a 'manual' module. 
    When you want to add a new Focus Airport, simply go the focusairport folder in lib > skins > iCrewLITE and change the 'ICAO Code' and the 'Image'. As default, I've added 'OMDB' to be the Focus Airport.
    Here's a Tip, (this is completely my opinion) use pictures which have tags like '#silhouette, #sunset' of famous monuments of the Airport's City. For example, i came up with this picture when I searched for 'Dubai skyline sunset silhouette'. 

     

    Let me know if any other help is required

×
×
  • Create New...