TennShadow Posted November 28, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
Tom Posted November 28, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
TennShadow Posted November 28, 2009 Author Report Share 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 Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 28, 2009 Administrators Report Share 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 Link to comment Share on other sites More sharing options...
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.