Kyle
Moderators-
Posts
2282 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Kyle
-
Wait for mine! I'm reworking one at Patriot.
-
Same here as-well. Every option is worth the price!
-
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.
-
Yep, Jeffery will always post if there is anything new with his custom kACARS.
-
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!
-
http://forum.phpvms.net/topic/4437-hubstats-class/ Cheers
-
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!
-
Yep, that's the stable version.
-
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.
-
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
-
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!
-
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;} } }
-
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);
-
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.
-
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
-
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!
-
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!
-
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!
-
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!
-
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!
-
(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.
-
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!
-
you should be including that, that's the reason why it could be giving you that error
-
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.