Jump to content

alpyeni1

Members
  • Posts

    51
  • Joined

  • Last visited

Posts posted by alpyeni1

  1. Hey,

    Yes, you can do it with simple database query. I don't know, How I do this in phpVMS infrastructure. Because, I've never done such a thing. But, I can write something for you If you want to do this.

    Also, I think, Somebody add a simple line into specified classes. (for example, into AircraftStats.class.php or OperationsData.class.php)

    Thanks.

  2. Hey,

    Give me more details.

    1- You're full admin rights in your webpage (I mean, you are the developer?) and Are you sure about it?

    2- Right click to your page and select "Inspect Element", select "Console" tab. Then, What do you read there, copy all lines and paste here.

    Thanks!

  3. Hey,

    Did you tried to clean the cache? Also, If you get any Time Out, HTTP 406 and 500 erros, please disconnect your phpVMs from VaCentral if you don't use it.

    How I do this?

    Go to your local.config.php in core/ folder. Open it and paste this settings to anywhere.

    /* VACentral */
    Config::Set('VACENTRAL_ENABLED', false);
    

    If it doesn't work, follow this instructions

    a. Open your dashboard.tpl in admin/templates folder.

    b. Delete all lines and paste this codes. Remember to create backup!

    <h3>VA Stats:</h3>
    <table width="100%">
    <tr>
    <td valign="top" width="33%" nowrap="nowrap"> 
     <strong>Users Online: </strong><?php echo count(StatsData::UsersOnline()); ?><br />
     <strong>Guests Online: </strong><?php echo count(StatsData::GuestsOnline()); ?>
    </td>
    <td valign="top" width="33%" nowrap="nowrap" >
     <strong>Total Pilots: </strong><?php echo StatsData::PilotCount(); ?><br />
     <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br />
     <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?>
    </td>
    <td valign="top" width="33%" nowrap="nowrap" >
     <strong>Miles Flown: </strong><?php echo StatsData::TotalMilesFlown(); ?><br />
     <strong>Total Schedules: </strong><?php echo StatsData::TotalSchedules(); ?><br />
     <strong>Flights Today: </strong><?php echo StatsData::TotalFlightsToday();?>
    </td>
    </tr>
    </table>
    <h3>Pilot Reports for the Past Week</h3>
    <div align="center" style="width=98%">
    <div id="reportcounts" align="center" width="400px" >
    <img src="<?php echo fileurl('/lib/images/loading.gif');?>" /><br /><br />
    Loading...
    </div>
    </div>
    <?php
    /*
    Added in 2.0!
    */
    $chart_width = '800';
    $chart_height = '200';
    /* Don't need to change anything below this here */
    ?>
    <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script>
    <script type="text/javascript">
    swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>",
    "reportcounts", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>",
    "9.0.0", "expressInstall.swf",
    {"data-file":"<?php echo adminaction('/dashboard/pirepcounts');?>"});
    </script>
    

    With this code, you're detaching all of the connections between phpVMS and vaCentral.

    Try this solutions. If it doesn't work, we spoke again about this problem.

    Note: Paste your error_log if you have in your FTP.

    Thanks!

  4. Hey,

    Can you check this line in schedule_briefing.tpl? (line 195 on default)

    <input type="button" onclick="simbriefsubmit('http://www.YOURSITENAME.com/index.php/SimBrief');" style="font-size:30px" value="Generate Simbrief">
    

    Change YOURSITENAME aera in this code. If you do this, your simBrief module can work with your system.

    Thanks.

  5. in the /core/ folder you will find a file called App.config.php Open it and look for the following (usually around line 110)

    # ACARS options
    # Minutes, flights to show on the ACARS
    # Default is 720 minutes (12 hours)
    Config::Set('ACARS_LIVE_TIME', 720);
    Config::Set('ACARS_DEBUG', false);
    

    And change the ACARS_LIVE_TIME value to something like 5.

    I hope this helped.

    Regards,

    Kishshey

    http://skylinefsx.com

    Hey,

    It is not true. Read the line in app.config.php on line 19~28

    /**
    * DO NOT MODIFY THESE SETTINGS HERE!!
    * They will get over-ridden in an update. These are just defaults
    * To change, copy-paste and change the line/option/setting into your
    * local.config.php file
    *
    * Most of these are in your local.config.php already
    *
    * View the docs for details about these settings
    */
    

    Copy this codes (below) and paste your local.config.php in core/ folder. (Anywhere. Doesn't matter)

    # ACARS options
    # Minutes, flights to show on the ACARS
    # Default is 720 minutes (12 hours)
    Config::Set('ACARS_LIVE_TIME', 10);
    Config::Set('ACARS_DEBUG', false);
    

    P.S: 10 is the minutes of live time. I all set to 10 minutes live time. You're free to change this. Remember, it's minute value. Not hour!

    Thanks!

  6. I want to have a progress bar for each pilot to next rank!

    Like this:

    http://screencast.com/t/HYPoTYLP4az

    How do I accomplish this? I have the % Complete code for Live Flights like this:

    http://screencast.com/t/nE0bLsOCF

    Thanks for your help!

    Hey,

    I am writed something for you. I'm sure it's working with bootstrap progress bar. You can try another progress bar styles. Remember to change <div class="here">

    Preview: http://i.hizliresim.com/b5kQ4Z.jpg

    <?php
    // Code by Alp Yeni
    $percentage = ($pilot_hours/$nextrank->minhours) * 100; //Calculate percentage to next rank.
    $round = round($percentage); // Round percentage because xxx.x% is not good for CSS.
    echo '<div class="progress">'; // Create progress bar
    echo "<div class='progress-bar' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: ", $round, "%'></div>"; // Progress bar inner
    echo '<span class="sr-only">' .$round. '% Complete</span>'; // Progress bar percentage
    echo '</div>'; //close inner
    echo '</div>'; // Close percentage bar
    ?>
    

    For more bootstrap progress-bar styles: http://getbootstrap....nents/#progress

    Thanks!

  7. Hey,

    If you want to close the automatic e-mails follow these easy stepes:

    1. Go to your local.config.php (in core/ folder)
    2. Add these lines after #Email Settings

    # Set specific email addresses to send notifications to
    Config::Set('EMAIL_NEW_REGISTRATIONS', false);
    Config::Set('EMAIL_NEW_PIREP', false);
    

    3. Save and send your local.config to your server.

    phpVMS sending automatic e-mails in two categories. New Registrations and New PIREPs. You're closing these functions with using these code.

    Thanks!

  8. Hey,

    Try reupload this files from phpvms.full.zip (downloadable from phpvms website):

    • core/modules/Registration If you get a Overwrite Question, click yes.

    If you don't change anything in registration template files or you're uploaded edited version to core/templates folder;

    • Reupload; registration_autoconfirm, registration_complete (In particular, these file), registration_customfields, registration_error, registration_javascript, registration_mainform and registration_sentconfirmation.tpl files from .zip archive to your core/templates folder in FTP. If you get a Overwrite Question, click yes.

    If you changed the template files or uploaded to your theme folder, don't use 2nd step and pass directly to step 3rd.

    • Reupload changed files to lib/skins/YOUR_SKIN_NAME/ If you get a Overwrite Question, click yes.

    Remember to create backup!

    Thanks!

  9. I have no idea what this means......

    You're right about that because I already have no idea. I helped to they about designing own VA Site. But they are broke it own site. And they called me to resolve the problems. Then, I opened this topic to here. But they acted impatiently and they destroyed the site. There is nothing to do.

    As I said earlier, the error can occur in any system. The important thing is to be patient in order to achieve a solution.

    Finally, Thanks simpilotgroup (David) to all helps and tips. After all, our own pages running smoothly. :wub:

    Thanks!

  10. The first part of the log looks like the mysql server was down or could not be reached at some point in time.

    There should be server logs available in your cpanel if they are not in the root of your site, or your host should be able to supply them.

    I really think that you may want to look at a different hosting platform with all the 503 errors and mysql server being down, among other things. It looks like your site is having some permissions issues on the server as well right now.

    post-198-0-37187600-1431219772_thumb.png

    Hi simpilot,

    All file permissions set to CHMOD 777. ;)

    Thanks!

  11. web_logo_default.png

    Journey over peaks. Zirve Airlines

    What is the meaning of Zirve?

    Zirve means "Summit" in Turkish Language.

    Dear IVAO Members,

    Zirve Airlines was established on IVAO in 29.12.2013 with VA Id 11640. In this month, after the surveys and user feedbacks, we have decided to change our old design. In this case, our logistic department started to creating newest design for our Web Systems.

    The work has been ended today and we want to share our completed project with all IVAO users.

    Let's Start

    The new design of Zirve Airlines is named Arctix. (Arctix name comes from Zume Web's Arctic Theme)

    • Simplicity, ease of use, ease mobile access are expected in the new Arctix design.
    • In the new design, we use the new pilot panel which was completely renovated and restored.
    • With the new design, your requests are just a click away.
    • With the Web Map, you can follow all of the live flights via your Web Browser.
    • With the Full Responsive design, you can access to our web pages via any device.
    • If you don't like anything in the new design, or you have an error, you can contact us.

    Screenshots

    g58Pb2.jpg

    og3dyk.jpg

    Web Mapâ„¢

    l7jQ4b.jpg

    Pilot Center

    VVaQBr.jpg

    Click here for Newest Arctix Web Page

    Thanks!

    We want to thank to Alp Yeni for his great effort about this project, and to Metin DikbaÅŸ as well for testing and supporting.

    Sincerely,

    Zirve Airlines Team

    Theme by ZumeWeb

    Recoding & Design Corrections by Alp Yeni

    • Like 1
  12. Hello again!

    I finded newest error_log in smartCARS folder. I think there was an MySQL Problem. Can you help me?

    Thanks!'

    [29-Apr-2015 09:25:57 Europe/Helsinki] PHP Fatal error:  Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Lost connection to MySQL server at 'waiting for initial communication packet', system error: 95 (2013)</b></font>]<br />[<font color=000000></font>]</font><p>
     </blockquote><hr noshade color=dddddd size=1>
     thrown in /home/birgenai/public_html/v1/core/classes/ezdb/ezdb_mysql.class.php on line 99
    [29-Apr-2015 09:29:45 Europe/Helsinki] PHP Fatal error:  Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) (2002)</b></font>]<br />[<font color=000000></font>]</font><p>
     </blockquote><hr noshade color=dddddd size=1>
     thrown in /home/birgenai/public_html/v1/core/classes/ezdb/ezdb_mysql.class.php on line 99
    [29-Apr-2015 09:30:04 Europe/Helsinki] PHP Fatal error:  Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) (2002)</b></font>]<br />[<font color=000000></font>]</font><p>
     </blockquote><hr noshade color=dddddd size=1>
     thrown in /home/birgenai/public_html/v1/core/classes/ezdb/ezdb_mysql.class.php on line 99
    [29-Apr-2015 09:37:05 Europe/Helsinki] PHP Fatal error:  Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Lost connection to MySQL server at 'waiting for initial communication packet', system error: 95 (2013)</b></font>]<br />[<font color=000000></font>]</font><p>
     </blockquote><hr noshade color=dddddd size=1>
     thrown in /home/birgenai/public_html/v1/core/classes/ezdb/ezdb_mysql.class.php on line 99
    [01-May-2015 01:32:35 Europe/Helsinki] PHP Parse error:  syntax error, unexpected ',' in /home/birgenai/public_html/v1/core/modules/Registration/Registration.php on line 171
    [01-May-2015 01:32:50 Europe/Helsinki] PHP Parse error:  syntax error, unexpected ',' in /home/birgenai/public_html/v1/core/modules/Registration/Registration.php on line 171
    [01-May-2015 01:33:05 Europe/Helsinki] PHP Parse error:  syntax error, unexpected ',' in /home/birgenai/public_html/v1/core/modules/Registration/Registration.php on line 171
    [01-May-2015 01:33:35 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_IF, expecting T_FUNCTION in /home/birgenai/public_html/v1/core/modules/Registration/Registration.php on line 166
    [01-May-2015 01:33:50 Europe/Helsinki] PHP Parse error:  syntax error, unexpected T_IF, expecting T_FUNCTION in /home/birgenai/public_html/v1/core/modules/Registration/Registration.php on line 166
    

×
×
  • Create New...