Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. What exactly have you changed in EZDB_mysql.class.php your server is still a mysql server right ?
  2. If you want i can provide some code that blocks the specific user from accessing simbrief
  3. That depends on the acars you use as far as i know the free that are around do not provide such functions
  4. There is no option to change it only if you write your own
  5. To be honest it is the first time i see somwthing like this
  6. I will have to see the pirepdata.class in order to see if there is any diference with mine as i never have used smart acars and as far as i know they do not use the incluted functions but their owns
  7. So to confirm you an an airport and a schedule in phpvms and then the tracker says that you are not in the correct airport and can you please tell us which airport ?
  8. I would try and update the jquery functions And we can always try and help you
  9. Is there any change that we can see some part of the coding ?
  10. Unfortunatly the module only scans the log for keywords and if found it reject the pirep for that reason it cannot be done
  11. No idea when I get home I will have look but on my site it is working if you want you can login using the demo passwords www. Baggelis.com/phpvms
  12. add this function in core/common/Dashboard.php public function getpireps() { $data = PIREPData::getIntervalDataByDays(array(), 30); header("Content-type: application/json"); echo json_encode($data); } in admin/templates.tpl at the end add this code <script type="text/javascript"> var json = (function () { var json = null; $.ajax({ 'async': false, 'global': false, 'url': "<?php echo adminaction('/dashboard/getpireps');?>", 'dataType': "json", 'success': function (data) { json = data; } }); return json; }) (); new Morris.Line({ // ID of the element in which to draw the chart. element: 'myfirstchart', // Chart data records -- each entry in this array corresponds to a point on // the chart. data: json, // The name of the data record attribute that contains x-values. xkey: 'ym', // A list of names of data record attributes that contain y-values. ykeys: ['total'], // Labels for the ykeys -- will be displayed when you hover over the // chart. labels: ['Flights'] }); </script> and now where ever in the template you want to call the morris chart add <div id="myfirstchart" style="height: 250px;"></div>
  13. all this code could be replaced with $allPireps=PIREPData::findPIREPS($params=""); echo json_encode($allPireps); But this makes all the pireps in 1 json string and if you have to many pireps you will get Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 29413988 bytes) in like i did
  14. Have a look at this https://jsfiddle.net/vangelisb/a2hvgbo3/ With an ajax request you will be able to get the data you want
  15. web541 is right the data is being converted to json format with public function pirepcounts() { function if you run it with http://www.yoursite.com/admin/action.php/dashboard/pirepcounts You will get this result { "elements": [ { "type": "line", "values": [ 1 ], "dot-style": { "type": "solid-dot", "dot-size": 3, "halo-size": 1, "colour": "#3D5C56" }, "width": 2, "text": "", "font-size": 10, "colour": "#3D5C56" } ], "title": { "text": "Past 30 days PIREPS" }, "y_axis": { "min": -1, "max": 2, "steps": 1 }, "x_axis": { "labels": { "labels": [ "2015-11-04" ], "rotate": 270 } }, "bg_colour": "#FFFFFF" } But this is for ofCharts if you are using another charting code you might need to adjust it or make a new function
  16. You have no schedules in your va http://www.flysimple.co.uk/pilotarea/index.php/schedules You need to add them before using simbrief When have inserted 1 you will go to the briefing page and there you will find the simbrief button
  17. 1 more try replace var api_dir = 'www.pilotcenter.liftair.eu/core/modules/SimBrief/'; //Ex. "some/directory/"; in /lib/js/simbrief.apiv1.js with var api_dir = 'http://pilotcenter.liftair.eu/core/modules/SimBrief/'; //Ex. "some/directory/";
  18. in schedule_briefing replace http://www.pilotcenter.liftair.eu/index.php/SimBrief with http://pilotcenter.liftair.eu/index.php/SimBrief
  19. for start take this line <script type="text/javascript" src="http://pilotcenter.liftair.eu/lib/js/simbrief.apiv1.js"></script> and put it under <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="http://pilotcenter.liftair.eu/lib/js/jquery.form.js"></script> <script type="text/javascript" src="http://pilotcenter.liftair.eu/lib/js/phpvms.js"></script> and the button @ http://pilotcenter.liftair.eu/index.php/schedules/brief/165 for example is not working most propably of the above
  20. please your website link as i dont think it is www.mywebpage.com
  21. you need to place the js file in /lib/js/ folder and change <script type="text/javascript" src="[url="http://www.flyelite.org/phpvms/lib/skins/ocean_blue/js/simbrief.apiv1.js"]http://www.flyelite.org/phpvms/lib/skins/ocean_blue/js/simbrief.apiv1.js[/url]"></script>[font=monospace] to <script type="text/javascript" src="<?php echo fileurl('lib/js/simbrief.apiv1.js');?>"></script> also make sure you have inserted an api key
  22. You need to post the PIREPData.class file in order to see if the function calculatePIREPPayment is there
  23. i havent seen your email have you read the instructions ? what is your website ?
×
×
  • Create New...