edmundk Posted January 24, 2012 Report Share Posted January 24, 2012 Hello guys, I am trying to get the system to display the pilot join day. How would i do it? Or what would the Php be for it? Thanks, Edmund Quote Link to comment Share on other sites More sharing options...
Jeff Posted January 24, 2012 Report Share Posted January 24, 2012 <strong>Date Hired: </strong><?php echo date(DATE_FORMAT, strtotime($userinfo->joindate)); ?> 1 Quote Link to comment Share on other sites More sharing options...
edmundk Posted January 25, 2012 Author Report Share Posted January 25, 2012 Thanks so much jeff, +1 any way... Do you know how I would put that under the recent pilots? So it would show the name then the join date? I am really not a php type of person Quote Link to comment Share on other sites More sharing options...
Jeff Posted January 25, 2012 Report Share Posted January 25, 2012 Although, not tested. You should be able to place it in the core/templates/frontpage_recentpilots.tpl like this: <?php foreach($pilots as $pilot) { ?> <p><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?> <?php echo date(DATE_FORMAT, strtotime($userinfo->joindate)); ?></p> <?php } ?> It should work though Edmund. **Remember, any time you edit a core/templates/.tpl file, you should place the edited one in your lib/skins/your skin folder, so it wont be overwritten during a phpVMS update. Quote Link to comment Share on other sites More sharing options...
edmundk Posted January 25, 2012 Author Report Share Posted January 25, 2012 Thanks so much!!! 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.