Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. As stated above, adding it manually is a lot easier.
  2. Can you attach only the file you have edited?
  3. Right after this: foreach($allroutes as $route) { Don't forget to close the bracket after 'continue;'
  4. Okay. For phpMyadmin the command is the same you just need to enter it correctly in "SQL" tab in there. Update:: I just check my DB, if you hit the SQL tab there is button that says "update" click that and the command comes up then modify it to your need and click go.
  5. It's not bug. It happens when you actually try to do some changes and somehow the changes doesn't match the website configuration, so if you have changed or modified your front page then you need to make sure what you have done is correct. What i think is that to log in part at the top is not as default, so you may want to check that area or post what you need to do and we can help you sort it out.
  6. You would write in your Data.class.php like: public function update($id) { $sql = "UPDATE table_name SET table_column = '$id' "; DB::query($sql); } Now to pass the value to the function you would write: YourData::update(value); Hope this will help
  7. Send your TPL to my email and I'll fix it for you. cheers
  8. Here it is: <?php if(Auth::LoggedIn()) { if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { $aircraft = OperationsData::getAircraftByReg($route->registration); $pilotrank = Auth::$userinfo->ranklevel; $aircraftrank = $aircraft->ranklevel; if($aircraftrank > $pilotrank) { echo 'Sorry rank too low!'; } else { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>"><strong>Book Flight</strong></a> <?php } ?>
  9. Yes, But you'll need to apply this inside the <td> tag that contains the "Add Bid" link. If you paste that part I can apply it for you.
  10. Yes it's possible by showing pilots schedules from their last arrival airport. Are you using the default schedule search? If yes add the following right after the "foreach" loop in your schedue_results.tpl: $pilotid = Auth::$userinfo->pilotid; $pirep = PIREPData::getLastReports($pilotid, 1); if($pirep->arricao != $route->depicao) { continue; }
  11. Here is another approach: if(Auth::LoggedIn()) { if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { $aircraft = OperationsData::getAircraftByReg($route->registration); $pilotrank = Auth::$userinfo->ranklevel; $aircraftrank = $aircraft->ranklevel; if($aircraftrank > $pilotrank) { continue; } And make sure you have set the aircraft ranking higher than your pilot ranking to see if it works.
  12. Do you have the following added to your local.config.php? If not you need to add that. Config::Set('RESTRICT_AIRCRAFT_RANKS', true);
  13. Change this: if(Auth::LoggedIn()) { if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { if($route->ranklevel > Auth::$userinfo->rankid) { continue; } To this: if(Auth::LoggedIn()) { if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { if($route->aircraftlevel> Auth::$userinfo->rankid)//$route->ranklevel is changed to $route->aircraftlevel. { continue; } And that should resolve the issue.
  14. I think you have empty pilotid column for those rows in activity table.
  15. The code: <h3>Activities</h3> <hr> <table> <?php $count = 10; $allactivities = ActivityData::getActivity(array(), $count); foreach($allactivities as $activity) { $pilot = PilotData::getPilotData($activity->pilotid); ?> <tr><td><?php echo $pilot->code.$pilot->pilotid ;?> - <?php echo $pilot->firstname.' '.$pilot->lastname ;?> ( <img src="<?php echo Countries::getCountryImage($pilot->location);?>"> ) - <?php echo $activity->message ;?> </td></tr> <?php } ?> </table> Screenshot:
  16. lol! Of course you do. Let me come up with the code and let you know.
  17. Not a good idea. Buying a host would cost you less than fixing your hacked PC.
  18. You're welcome. Do you want to add their country flag right next to their names?
  19. That's correct. Because I intended to show only the message. If you need to specify the pilot name along with the pilot ID then you'll need to get the pilot id and use it in another function to pull information for that pilot id, so: The code: <h3>Activities</h3> <hr> <table> <?php $count = 10; $allactivities = ActivityData::getActivity(array(), $count); foreach($allactivities as $activity) { $pilot = PilotData::getPilotData($activity->pilotid); ?> <tr><td><?php echo $pilot->code.$pilot->pilotid ;?> - <?php echo $pilot->firstname.' '.$pilot->lastname ;?> - <?php echo $activity->message ;?></td></tr> <?php } ?> </table> Screenshot:
  20. Where you using your PID as the username or your email address? Cause I remember I had that issue and I changed my PID to my email address and that fixed it. About the password reset, have you checked your email spam box? cause sometimes the emails from your VA go to spam folder.
  21. It works. Code: <h3>Activities</h3> <hr> <table> <?php $count = 10; $allactivities = ActivityData::getActivity(array(), $count); foreach($allactivities as $activity) { ?> <tr><td><?php echo $activity->message ;?></td></tr> <?php } ?> </table> Screenshot:
  22. Try this: $count = 10; $allactivities = ActivityData::getActivity(array(), $count);
×
×
  • Create New...