Time for a stupid question

I’ve seen a lot of cool stats listed on peoples sites but I can’t figure out what code to put in do to what.  I’m sure there is a list of what does what somewhere in the docs but I can’t seem to figure out what is what.

Heck, I don’t even know how to link the contact module so I can have a contact form.  Any help would be appreciated.

BTW,  I’m a network engineer so working with code is not really my thing.  :slight_smile:

For the stats you can download this class: () and paste the following code into your template:

Total Pilots: <?php echo StatsData::PilotCount(); ?>
Total Flights: <?php echo StatsData::TotalFlights(); ?>
Total Hours: <?php echo StatsData::TotalHours(); ?>
Flights Today: <?php VastatsData::totalflightstoday(); ?>
Passengers Flown: <?php VastatsData::totalpaxcarried(); ?>
Total Fuel Burned: <?php VastatsData::totalfuelburned(); ?>
Total Miles Flown: <?php VastatsData::totalmilesflown(); ?>
Aircraft: <?php VastatsData::totalaircraftinfleet(); ?>
Schedules: <?php VastatsData::totalschedules(); ?>

And for the contact form, just add a link to http://www.yoursite.com/index.php/contact.

Thank you so much.  I’ll definitely give that a try.

As for the contact I was missing the index.php part.

Thanks again!

If you’re on he beta, use:

<?php
echo url('/contact');

// like
echo '<a href="'.url('/contact').'">Contact Page</a>';

for any links, it’ll take care of all the peices. Just tell it was to link