TennShadow Posted November 28, 2009 Report Posted November 28, 2009 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. :-) Quote
Tom Posted November 28, 2009 Report Posted November 28, 2009 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. Quote
TennShadow Posted November 28, 2009 Author Report Posted November 28, 2009 Thank you so much. I'll definitely give that a try. As for the contact I was missing the index.php part. Thanks again! Quote
Administrators Nabeel Posted November 28, 2009 Administrators Report Posted November 28, 2009 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.