Jump to content

Sava

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Sava

  1. Because some people have asked me for the status of this I though I'd share a bit more info. At first, I thought I lost the code in a file mixup I had a while back, but apparently I found the files backed up on a flash drive, so I have them with me.

    I am really busy with other projects at this time, but once I finish that, I'll be happy to get back to work on this....

    • Like 2
  2. You can just set a cookie for the user and select which skin it will load for them.

    Place this on the top of your local.config.php file under session_start()

    if(isset($_GET['lang']) && $_GET['lang'] != ''){
    $_SESSION['lang'] = $_GET['lang'];
    define('CURRENT_SKIN',$_GET['lang']);
    }
    if(isset($_SESSION['lang']) && $_SESSION['lang'] != '')
    {
    define('CURRENT_SKIN',$_SESSION['lang']);
    }
    

    Then create multiple skins. You can call them whatever you want. Then make a link to yoursite.com/?lang=SkinName.

  3. 1. You should then try harder. If you have HTML/CSS knowledge, the guides should give you good guidance on what to do. If you do not know HTML/CSS, you should learn it first.

    2. People are helping, but once you show that you actually tried to do it yourself and you are not just waiting for others to do the work for you. And in the end, no one is obliged to help you. phpVMS is free and you haven't paid anything to be in the position to *request* help. There is no customer service.

  4. Some good points by Jon.

    Something else to take into account:

    • Change Skyline to your VA Name
    • stylize the frontpage table for the flights somehow - the borders look really bad
    • change the name of the about us page to About Us (currently aboutus)
    • I don't see a point in making virtual pilots and virtual airline with capital letters
    • If you aim for a realistic VA, having that many ranks isn't the way. In real life, pilots go through much less ranks
    • Join us page has some weird characters on the top
    • If you are using 3rd party forms, it's better to have them included in the page somehow. :)
    • Customize the template/skin a bit.

    Most of these are trivial but really contribute to the general way people will see your VA. The most important thing is the skin, and that should be your priority!

  5. If I understand correctly, you want code that will allow you to have 2 schedules with the same number?

    You can just remove the code that checks for existing schedules :)

    admin/modules/Operations/Operations.php around line 903

    # Check if the schedule exists
    $sched = SchedulesData::getScheduleByFlight($this->post->code, $this->post->flightnum);
    if(is_object($sched))
    {
    $this->set('message', 'This schedule already exists!');
    $this->render('core_error.tpl');
    
    return;
    }
    
    

    change to

    # Check if the schedule exists
    /*$sched = SchedulesData::getScheduleByFlight($this->post->code, $this->post->flightnum);
    if(is_object($sched))
    {
    $this->set('message', 'This schedule already exists!');
    $this->render('core_error.tpl');
    
    return;
    }
    */
    

    I haven't tried it but it should work :) When adding schedules it will not verify any more.

    Edit: Just noticed that there is actually no verification in place when editing schedules, so if you set it up like 100A, and go to edit it to 100 afterwards, it will allow you.

×
×
  • Create New...