Jump to content

Customizing the front page


Nabeel

Recommended Posts

  • Administrators

If you want to change up how the front page looks, or add intro text, etc, it's easy to do.Goto core/templates, and there are three files beginning with frontpage_: frontpage_main.tpl frontpage_recentpilots.tpl frontpage_reports.tplYou can copy each one of these to your skin folder, and modify them as you'd like. frontpage_main.tpl:This file contains code which looks like this:

<?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>

It's calling a function in the PIREPs module, to show the recent front page PIREPS, and to show 5 of them. This in turn calls the frontpage_reports templateThere is also:

News::ShowNewsFront(5);

Which in turn calls news_newsitem.tpl, which you can also modify. The 5 means it'll show the last 5 news items.

  • Like 1
Link to comment
Share on other sites

  • 3 years later...
  • Administrators

You can include the codon.config.php file in your script and have access to all the functions within phpvms. Here are a couple of threads on this;

http://forum.phpvms.net/topic/3394-external-pilot-centre

http://forum.phpvms.net/topic/3686-implenting-codonconfigphp-in-a-standalone-php-page

Link to comment
Share on other sites

×
×
  • Create New...