Jump to content

omglookeyhere

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by omglookeyhere

  1. So, I have figured out how to work charts.js. But i am still confused on how to extract data from Finances page and insert it into the charts. I mean I could manually insert every month, but I have to believe that there is better ways to do it. Any ideas?

    http://prntscr.com/pe1evg

    this is the chart i am trying to make with this example code provided by charts.js

    <script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js"></script>
    <canvas id="myChart" width="400" height="400"></canvas>
    <script>
    var ctx = document.getElementById('myChart').getContext('2d');
    	var myLineChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
            datasets: [{
                label: '# of Votes',
                data: [12, 19, 3, 5, 2, 3],
                backgroundColor: [
                    'rgba(255, 99, 132, 0.2)',
                    'rgba(54, 162, 235, 0.2)',
                    'rgba(255, 206, 86, 0.2)',
                    'rgba(75, 192, 192, 0.2)',
                    'rgba(153, 102, 255, 0.2)',
                    'rgba(255, 159, 64, 0.2)'
                ],
                borderColor: [
                    'rgba(255, 99, 132, 1)',
                    'rgba(54, 162, 235, 1)',
                    'rgba(255, 206, 86, 1)',
                    'rgba(75, 192, 192, 1)',
                    'rgba(153, 102, 255, 1)',
                    'rgba(255, 159, 64, 1)'
                ],
                borderWidth: 1
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: true
                    }
                }]
            }
        }
    });
    </script>	

     

  2. Hey everyone

    So, since it seems that crazy creatives is not answering, I thought maybe someone here will have an idea. I got the flight tracker thingy from crazy creatives and installed it, however the map insn't showing up and a "snail trail" on a live map also isn't showing up. I was wondering do I need to convert google maps to OSM or did I just not install something correctly? 

    Thank you.

  3. 10 hours ago, LeonardIGO4036 said:

    Very much possible. Have you heard of Charts.js? I *guess* Nabeel is using that on phpvms7 
    Take a look here > https://www.chartjs.org/samples/latest/charts/line/basic.html
    It's very advanced as well as a very easy library to work with. Let me see if I can make a patch for the VA finance module.

    Regards.

    I have version 5.5 is it still going to work? Anyone have any ideas where I can get some tutorials to learn it? Would love to see charts in action. :D:D

  4. Not sure what's happening here. This code is straight from IceBlue by FlyAlaska. 

    <section class="page-contents">
    <div class="container">
    <br />
    <h3><i class="fa fa-users" fa-lg style="color:#04327F"></i> Our Pilots</h3>
    <script type="text/javascript">
    $(document).ready(function() {
        oTable = $('#blueIce_Pilots_List').dataTable({
            "bJQueryUI": true,
            "sPaginationType": "full_numbers"
        });
    } );
    
    </script>
    <table id="blueIce_Pilots_List" width="100%" border="0" cellspacing="0" cellpadding="0" class="blueIce_table">
    <thead>
    <tr>
    	<th>PID</th>
    	<th>Name</th>
    	<th>Rank</th>
    	<th>Flights</th>
    	<th>Hours</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($pilot_list as $pilot)
    {
    	/* 
    		To include a custom field, use the following example:
    
    		<td>
    			<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
    		</td>
    
    		For instance, if you added a field called "IVAO Callsign":
    
    			echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');		
    	 */
    	 
    	 // To skip a retired pilot, uncomment the next line:
    	 //if($pilot->retired == 1) { continue; }
    ?>
    <tr>
    	<td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
    			<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
    	</td>
    	<td>
    		<img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    			alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    			
    		<?php echo $pilot->firstname.' '.$pilot->lastname?>
    	</td>
    	<td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>
    	<td><?php echo $pilot->totalflights?></td>
    	<td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
    <?php
    }
    ?>
    </tbody>
    </table>
    </div>
    </section>

    And this is the error I keep getting. If I remove that line, than the whole page disappears. 

    http://prntscr.com/p2cgqc

  5. Hi everyone

    Not sure if i am missing something, or just doing something wrong but when i click on Dashboard I am presented with this http://prntscr.com/p17716 

    Also, when I create subdomain and basically copy everything from the original domain, the page comes out looking blue-ish and welcome mesage repeats several times. 

    Thank you for your help. 

     

  6.  I am not entirely sure what's happening here. But when I install Ela skin, it keeps giving me this error. 

    https://i.imgur.com/12t8yYK.jpg

    I have gone to that line and looked at it. This is a code on that line. Am i supposed to put the path of the template there? Any help would be greatly appreciated. Thank you.

    Quote
    
    {
    			trigger_error('The template file "'.$php_path.'" doesn\'t exist');
    			return;
    		}

     

     

  7. Never mind, I have figured it out. Technically I didn't even need Filezilla, I could have just transferred all those files in zip format and unpacked them through cpanel. Oh well.

    And @Heritage1 you shouldn't be so dismissive of new people who want to create a VA. Sure, it's complicated at first and sure not everyone might have the basic knowledge of how to set it up. However, instead of just blowing "newbies" off, how about you teach them and guide them or at the least, don't be so judgmental. Some of us do know HTML/CSS and few other coding languages.

  8. Hey everyone

    Soooo, I've been tinkering with this install/install.php for hours and still cannot find a way to understand. I got a webspace from Zap Hosting and what I don't understand is where and how do i install the installer. Where do i install the installer? I can't seem to get to a screen where you set up your VA. Do i upload phpvms files through Filezilla or can I upload them through admin panel on my webspace?

    Any help would be greatly apreciated. 

    THank you. 

×
×
  • Create New...