Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by CarlosEduardo2409

  1. On 6/12/2018 at 2:17 PM, stifler13371 said:

    just a question, is it only me or is the /profile/view not working or is it under development? :)

    The profile/view was added in the latest version along with Airmail 3, you can see a preview here.

     

    Login Details for preview:

    User: ELC0003

    PW: Demo123

  2. 6 minutes ago, LeonardIGO4036 said:

    Okay, now i understood. You just need to amend this code with an extra conditional statement

     

    <?php 
    $allusers = StatsData::UsersOnline(); 

    $pilotid = (assign it here);
    foreach ( $allusers as $user) {

    if($user->pilotid == $pilotid) {

    echo 'Online';

    } else {

    echo 'Offline'; 

    }

    }

    ?>

    That should be it! 

    Amazing! Thank you so much!!

  3. 31 minutes ago, LeonardIGO4036 said:

    <?php 
    $allusers = StatsData::UsersOnline(); 
    foreach ( $allusers as $user) {

    echo $user->firstname.'<br>;

    }

    ?>

    This is just a simple code, I guess this should help.

    Thank you very much @LeonardIGO4036, but I would like to know one specific pilot.

    So, I'm customizing Airmail for ElaSkin, and it will tell me if the user of the message is online. So from what I'm thinking I would have to get the ID of this pilot and continue, but I have no idea how.

  4. 3 hours ago, stifler13371 said:

    When i install it and then choose it in general settings i get this :( https://gyazo.com/23d094c75141378c287e1aa410cafd4c

    Hi @stifler13371,

     

    So for fix this you need to go core/common and open StatsData.class.php

    After open, you need to paste this code:

    <?php
    public static function TotalPilotMiles($pilotid) {
            $key = 'total_miles';
            $key .= '_'.$pilotid;
    
            $total = CodonCache::read($key);
    
            if($total === false)
            {
                $total = 0;
                $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
                $results = DB::get_results($sql);
                if($results) { foreach($results as $result) { $total += $result->distance; } }
    
                CodonCache::write($key, $total, '15minute');
            }
            
            return $total;
        }

     

    Sorry for not coding, nothing I'm finding the function.

  5. UPDATE

    Airmail 3 + Pilot Public Profile + Admin Notification was added to ElaSkin. To download, go back to the top topic and download it through github.

     

    Do you have any idea for a new module for a future version? Let me know...

     

    Thanks.

    • Confused 1
  6. Hello everyone,

    I'm happy to announce my new free skin for phpVMS. A skin made in ElixarCode.

     

    DOWNLOAD & HOW TO INSTALLATION: 

     

    DEMO: Demo not working, because I don't have a host. Sorry guys, I don't have money now. I'll try to fix.

    IMPORANT: This skin was made for phpVMS 5.5.2

     

    This skin is designed using the Bootstrap framework, meaning it is fully responsive and works well on all sized devices, including desktops, tablets and phones. ElaSkin is not a complete website skin, it is only a pilot center application, designed to be installed into a phpVMS installation. If you have any feature, plugin skiing or custom VA branding requests, feel free to post a reply below.

     

    Enjoy!

     

    Screenshots:

    Dashboard page

    dashboard_(1).gif.e1ea0b25b69fb0c9c78e65

     

    Flight Report Page

    dashboard_(2).gif.d10b9ca7a55601f15df9ff

     

    Downloads page

    Screenshot_2.png.280a2e1197d9885aa811a97

    AirMail

    Screenshot_1.png.3b315cf32b7d92c53fcdfb0

    I was inspired by the crewcenter of @swan58 & iCrew Lite of @LeonardIGO4036

    EDIT: I just forgot to give credit to the creators of the used modules, sorry: AirMail 3.0 & Touchdown Stats by @simpilot

     

    EDIT 2020: I am aware that the credits on the footer are wrong, I will be fixing it. If you already have the skin, please change the footer in "app_bottom.php" to the following:

    © 2020 All rights reserved. Template designed by Colorlib             CrewCenter by Carlos Eduardo | Powered by phpVMS

     

    This skin was made using the ElaAdmin Template by Colorlib, due credits must be used on the footer.

    • Thanks 1
  7. Hello everyone! I'm Carlos Eduardo, DEV of FSvas.

    For those who do not know, FSvas is an airline company. In it we have vPrime, vEnergy and soon will be released the American Airways. But I'm not here to talk about it. I am here to talk about the new project that FSvas is announcing today, on this Thursday. This project is ElixarCode.

     

    ElixarCode is a project consisting of sales of skins and modules for phpVMS, UI Designer, Web Designer and more! 

     

    We're just starting out with a developer, me. Jobs for developers are open to everyone. ElixarCode has tried to accept all developers who send an application (This application can be found here: CLICK HERE). Accepted developers received a message in the email with all the information.

    Some information for developers:

    • Developers can do whatever they want. If he wants to make a skin for phpVMS he is free to do it at any time.
    • Developer will decide if your project will be free or paid.
    • If developer made a project and chose to leave it paid, most of this money will be to developer, a small part of the money will go to ElixarCode to keep the site up, etc.
    • All developers will gain recognition on our site. All the projects he does will be named after him on the project.

     

    Our first release will be a skin for phpVMS, which was made by me. I will be putting a topic with all the information (TOPIC LINK: CLICK HERE).

     

    So that's it, I'll be some links:

     

     

    Thank you for your attention.

     

    Regards,

    Carlos Eduardo, DEV of FSvas & ElixarCode.

    • Confused 1
  8. Hi Guys,

    This time, I have a new error. Look image: https://prnt.sc/j1dppl

    I do not know why this is happening. As you can see, when I enter the site the site gets all messed up, without css, with nothing. From what I saw is because of the scripts, this is saying that they are not safe, I do not know why, because I believe they are safe. The site looks all cute just if I click the blue "Done" button.

     

    Thanks.

    Regards,

    Carlos.

  9. @web541 But another question from my first question:

    I have a trains module, and he also counts how many pilots he has outstanding. And his code for counting is this:

    <?php FlightAcademyData::GetTrainingRequests() ?>

    Then you put him on the count. But I also need him to stay with the counts of the outstanding pilots and the pending pireps. But if I put it still gets that '1' error.

     

    [SOLVED]

  10. Hello guys, now I have doubts.

    1. The first is more or less an error and a doubt. I made a count to count how many registered pilots and pending pireps have, the two are on the same count, it works fine, but an example: If I have a pending pilot and I accept this pilot, the count does not reset, she It's 1. I do not know if it's because I have two count, I just do not know. This is the code I am using:

    <?php echo count(//code for count pireps\\ . //code for count pilots pending\\); ?>

     

    2. I wanted to make a graph to tell the altitude and ground speed that the pilot was in his PIREP, I saw in some topics that he had but did not have the complete answer. The only thing I know is that the rawdata column needs to be populated, but I do not know if SmartCARS fills in, because it's not here.

     

    Thanks.

    Regards,

    Carlos.

×
×
  • Create New...