Jump to content

redcoals

Members
  • Posts

    16
  • Joined

  • Last visited

redcoals's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi lorathon, Thank you so, the code you gave us along with the changes to be made in the acarsdata.class, the mod should work? Will try both sets of code and make the necessary changes and then report back, One again, thank you for your time and support. Much appreciated
  2. The only place other that this is in the PIREP.php and even so is withouth the $_post ending the line. Tested by adding the $_post as well as the $data and while one doesn't throw any errors, it still doesn't update either. How accurate is the calculation code?
  3. See the code above as posted by Jakes
  4. Hi again lorathon, Attempted to work with the code above and, still not throwing any errors BUT, still not updating in the database either. Is something set wrong in the code? What could this be? As I understand it could only be the code in the module!? Desperate now hehe
  5. Hi lorathon, Thank you so much for thi It makes sense so i will add it to the code and give it a try Tested earlier on using the editAircraft and we had no errors however, still no update. Will report back
  6. Hi lorathon, So what you suggest is placing the lines you gave above within the closing (array ?? I don't understand why this is so hard as its simply a matter of getting th event, getting the aircraft, doing the calculations and closing on editAircraft The code as it is now doesn't throw any errors but still not updating the 'cond' in the database. And, this is closing with the editAircraft. The call is getAircraftByReg instead of getAircraftInfo as shows in an earlier post (also without the sql input) Any help would be appreciated, Just a writing/updating issue now it seems
  7. For some reason I think I am completely misunderstanding yor last post lorathon, So sorry but could you please be more specific
  8. So this I will add below the updating line? Just as given above? If so, I will do so and report back hoping to achieve something, Your help is much appreciated lorathon
  9. Hi lorathon, Found the code so going to do a few tests and will report back, Hold thumbs Thank you for your support
  10. Thank you for the response, can't remember seeing that post but will go through the thread again so, I assume this being done, the mod will work? Also, would you be able to perhaps alter the code and add the editAircraft instead of the updateAircraft? Ps. What bout the sql section?
  11. Hi guys, quick update Spoken with Nabeel and my new understanding :: In the module code as given above, the closing seems to be completely wrong as the $update is being used. The call to updateAircraft should be replaced with the editAircraft parameter instead! This said, I am also unsure about the whole sql section belong the actual closing as the API should handle this. Finally, here is what I have now BUT I am NOT sure about what values I need to include:: OperationsData::editAircraft(array( Â 'id' => THE ID Â 'cond' => $cond )); NOW, I am not sure about what should be placed in THE ID ... Could anyone please check on this for me and give update as I am sure this will have this mod working hope this helps, Waiting for some feedback,
  12. I seem to be very 'vague' about what's going on here really however, also looking at the top pilots module, I note it functions between itself and its own data.class so, is there no way we could use the code as given above and just create a data.class for this module? Seem to be issues in making a tie from the module to an existing event. I am not too familiar with the codon framework but in general, where and what else would be altered in order for this to work? Also, the setup as given in this thread, is it sure to work in regard to calculating the condition according to the landing rates as well as write to the db? At this stage (and from what I see), it seems to be more of a writing and updating issue.
  13. I seem to be very 'vague' about what's going on here really however, also looking at the top pilots module, I note it functions between itself and its own data.class so, is there no way we could use the code as given above and just create a data.class for this module? Seem to be issues in making a tie from the module to an existing event. I am not too familiar with the codon framework but in general, where and what else would be altered in order for this to work? Also, the setup as given in this thread, is it sure to work in regard to calculating the condition according to the landing rates as well as write to the db? At this stage (and from what I see), it seems to be more of a writing and updating issue.
  14. Hi lorathon, Thank you for the response. The only reason for my assumption regarding the PIREPAdmin.php is because Mr. David Clark suggested either creating an event or using the existing one that is used to accept pireps. I will get back to you shortly, Thank you so much
  15. Hi lorathon, Would you be able to support my issue (please read up) I understand that the existing event in the PIREPAdmin php can be used and an additional listener can be tied to this event. The listener as I understand is obviously set up in the module? So, how would I alter the PIREPAdmin php to get the desired result in calculating the aircraft condition and writing/updating to the DB by using the existing event in addition to the additional listener? Just a push in the right direction will be much appreciated. If I need to be more clear, please do tell me Thankyou
×
×
  • Create New...