Jump to content

Kyle

Moderators
  • Posts

    2282
  • Joined

  • Last visited

Everything posted by Kyle

  1. Wait for mine! I'm reworking one at Patriot.
  2. Same here as-well. Every option is worth the price!
  3. I'm not sure why your host would disabled that... or your host is a dedicated? Contact your host to enable set_time_limit() and the schedules importer will work. Because, if you were to import a large schedules, you don't want to get timed out.
  4. Yep, Jeffery will always post if there is anything new with his custom kACARS.
  5. Sava, That is an awesome tutorial, if you want, I can pin the topic for you. I don't also very see people use the docs mostly. Well Done!
  6. http://forum.phpvms.net/topic/4437-hubstats-class/ Cheers
  7. I'm not sure why you would want to do that. You would have to change a few things to make it work. I wouldn't really do that. If you wanted to change your skin, you can add new skin in the skin folder and go to the admin panel, site settings and change the skin and save the settings. Cheers!
  8. Yep, that's the stable version.
  9. The rank image in signature, I think that part of the the phpVMS Beta. I wouldn't bother using Beta right now since it's not stable yet for VA operations yet.
  10. cgentil, Can you paste from the start of Schedules.php up to line 100? You may be missing a { or } to close out the function or something. Cheers
  11. Sorry, I made a mistake here. Change this $landingrate = getGreasedLanding(Auth::$userinfo->pilotid, 15); To this.. $landingrate = getGreasedLanding(15); And that will fix the problem, will update the file right away. There should be no errors in my original file. If you want, you can send me your file via PM and I'll have a look at it for you. Cheers!
  12. You can do this way... <?php foreach($allroutes as $route) { if (Auth::LoggedIn()) { $last = PIREPData::GetLastReports(Auth::$userinfo->pilotid); if(!$last) $last->arricao = Auth::$userinfo->hub; if($last->arricao != $route->depicao) { {continue;} } }
  13. Manuel, In the file I gave, are you sure that you have this code in there with the table as an example I made? $landingrate = getGreasedLanding(Auth::$userinfo->pilotid, 15);
  14. Roger, if I'm not correct, I know you said you were creating custom pages for your site. Did you put the file in the custom .php files? It should coded in any tpl files in the skins folder.
  15. Okay, here's what's in the attached file... (All stats are per pilot!) Average Landing Rate Average Hours Average Miles Total Hours Total Flights Total Miles Total Passengers Table with Greased Landings Table with Top Flight Hours Table with Top Flight Time with Year I'll add more in the file later, maybe release a new module. Enjoy the good stuff! custom_stats.zip
  16. I'm going to put the codes in the tpl file. It'll be too big to paste the code. There's some good stuff...Oh Good Stats Stuff!
  17. Clear out the pilot_list.tpl file, and put this code in the pilot_list.tpl <div id="content"> <?php $roster = PilotData::getAllPilots(); ?> <?php if(!$roster) { echo 'There are no pilots!'; return; } ?> <table> <table id="tabledlist" class="other"> <thead> <tr> <th width="160px">Pilot ID</th> <th width="220px">Name</th> <th width="120px">Rank</th> <th width="50px">Flights</th> <th width="100px">Hours</th> <th width="100px">HUB</th> <th width="128px">Vatsim ID</th> <th width="50px">Status</th> </tr> </thead> <tbody> <?php foreach($roster as $pilot) { if($pilot->retired == 1) { continue; } ?> <tr> <TD ALIGN="center"> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" align="absmiddle" /> <a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <TD ALIGN="left"> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <TD ALIGN="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <TD ALIGN="center"><?php echo $pilot->totalflights?></td> <TD ALIGN="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <TD ALIGN="center"><?php echo $pilot->hub?></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="http://stats.vatsim.net/search_id.php?id=' . $fieldvalue . '" target="_blank">' . $fieldvalue . '</a></a>' ; } else { echo '<img src="http://yourwebsite.com/images/inactiveicon.png" width="20" height="18" border="0" alt="" /></a>' ; } ?> </div></td> <TD ALIGN="center"><?php if($pilot->retired == 0) { ?> <img src="http://yourwebsite.com/images/activeicon.png" alt="Active" /> <?php } else { ?> <img src="http://yourwebsite.com/images/inactiveicon.png" alt="Inactive" /> <?php } ?></td> </td> </tr> <?php } ?> </tbody> </table> </div> Then with the schedule part... <?php if(!Auth::LoggedIn()) { ?> <div id="error">Log in first before booking!</div> <?php } else { ?> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <?php } ?> Cheers!
  18. Somehow, you must have two foreach in the code. Remove one of them and it should only show one. You can do this... <?php if(!Auth::LoggedIn()) { ?> <strong>Log in first before booking!</strong> <?php } else { ?> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <?php } ?> Cheers!
  19. What do you mean only 1 pilot in company? If you have a link, please post in here so we can get an idea on what your issue is really. Cheers!
  20. You can change the content of the emails in core/templates/ Be sure to copy.. email_registered.tpl email_registrationaccepted.tpl email_registrationdenied.tpl Copy those files to your skin folder so they won't get overwritten in the updates. Those are the emails you might want to change if you want. Cheers!
  21. (smacks head self) - I'll get onto it tonight. I'm working on the same one for Patriot Virtual, I might add new stuff in there and share here.
  22. Kyle

    KaCARS

    The right business by the right guy! Jeff treats his own customers fair and always never says no to the support requests. I requested help from him few months ago, and he got back to me in timely fashion. Keep up the good work Jeff.
  23. Wow! I love the both images there joeri! The blur effect is a sweet thing, makes it look like the engines are powerful and bursting! Gotta love the B777!
  24. you should be including that, that's the reason why it could be giving you that error
  25. Is the the first time you seen it, you had no problems before registering? It's not the skinning issue, unless you removed something from the form.
×
×
  • Create New...