Jump to content

Time for a stupid question


TennShadow

Recommended Posts

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.  :-)

Link to comment
Share on other sites

For the stats you can download this class: (http://forum.phpvms.net/index.php?topic=1174.0) 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.

Link to comment
Share on other sites

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.

Loading...
×
×
  • Create New...