Jump to content

Recommended Posts

Posted

I'm wondering how to get an altitude and speed chart on pirep_viewreport.php like the one in vataware? I know data can be extracted but dunno the implementation of the code. Any help?

Posted

Do you have the data in the row of the PIREP?

If so, it should be fairly easy. Check out Chart.js. It's a good library for making all sorts of charts/grahps etc.

Posted (edited)

Take your most recent pirep from the DB. What is in the raw_data column?

If there is data there, you can get it working. Take a look at the exaple Chart.js charts and you'll see the format it requires. It should be a simple JS array format

data = [1,2,3,4] etc.

And then each element of the array should have an associated element in the labels array. But check the docs for this.

A quick solution would be to just generate a script that creates a properly formatted string, and call it inside the .tpl/.php file. I guess the better way would be to perform some sort of AJAX call to get the data then do a $.each() on the array.

 

Did this for a VA.

Take a look at the part of the code

graph.JPGdata.JPG

Edited by Sava
  • Like 1
Posted (edited)

You are so good buddy! Thanks for your help. This is the thing I wanted! +1 for you ;)

 

Sincerely

Aaryan Kapoor

Edited by Aaryan
  • 1 month later...
Posted
  On 6/22/2017 at 8:12 PM, Sava said:

Take your most recent pirep from the DB. What is in the raw_data column?

If there is data there, you can get it working. Take a look at the exaple Chart.js charts and you'll see the format it requires. It should be a simple JS array format

data = [1,2,3,4] etc.

And then each element of the array should have an associated element in the labels array. But check the docs for this.

A quick solution would be to just generate a script that creates a properly formatted string, and call it inside the .tpl/.php file. I guess the better way would be to perform some sort of AJAX call to get the data then do a $.each() on the array.

 

Did this for a VA.

Take a look at the part of the code

graph.JPGdata.JPG

Expand  
This message is great if you can share the code
we need flight map, please share this code to us also
k922365@gmail.com

 

  • Like 1
  • 2 weeks later...
Posted
  On 6/23/2017 at 4:02 PM, Aaryan said:

You are so good buddy! Thanks for your help. This is the thing I wanted! +1 for you ;)

 

Sincerely

Aaryan Kapoor

Expand  
This message is great if you can share the code
we need flight map, please share this code to us also
 
  • 3 weeks later...
  • 2 months later...
  • Moderators
Posted

Just a quick question - does anyone know what page calls the pirep view and route_map on /index.php/pireps/view/XXXX?

I am trying to change the layout but the routemap is being called from somewhere other than pirep_viewreport.php

  • 2 years later...
  • 3 months later...
  • Administrators
Posted
  On 5/8/2020 at 7:14 PM, DarlanFernandes said:

Does anyone have any idea how to do this? I have the Crazy Creatives module

Expand  

 

Be aware that the Crazy Creatives module is payware. We can not address your issues in this public forum. If you have issues, you will need to go to the CC forum (yes, we know that a response there is unlikely) or you can hope that a member here sees your post and sends you a PM.

Posted
  On 5/8/2020 at 9:14 PM, ProAvia said:

 

Be aware that the Crazy Creatives module is payware. We can not address your issues in this public forum. If you have issues, you will need to go to the CC forum (yes, we know that a response there is unlikely) or you can hope that a member here sees your post and sends you a PM.

Expand  

You say it everywhere. Crazy creatives have no active support you are complaining about.

  • Moderators
Posted
  On 5/9/2020 at 1:55 PM, DarlanFernandes said:

You say it everywhere. Crazy creatives have no active support you are complaining about.

Expand  

It's not a complaint. It's a rule here and respecting a payware developers code. Just because they have no active support, doesn't give people the right to openly discuss, share, post code here from their payware modules. 

 

Sava's comment above tells you how to do it. 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...