Administrators Nabeel Posted August 8, 2008 Administrators Report Share Posted August 8, 2008 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. 1 Link to comment Share on other sites More sharing options...
bwilber Posted August 29, 2011 Report Share Posted August 29, 2011 Is there a way to call those functions from a page in a directory outside of the directory in which the phpVMS resides? I know a bit of PHP, but only enuff to get me into some serious trouble if I don't ask. Link to comment Share on other sites More sharing options...
Administrators simpilot Posted September 1, 2011 Administrators Report Share Posted September 1, 2011 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 More sharing options...
bwilber Posted September 2, 2011 Report Share Posted September 2, 2011 Excellent, thanks. And btw, I did search first, but I guess I used the wrong search criteria cuz I got nothing. Link to comment Share on other sites More sharing options...
Recommended Posts