Jump to content

Felipe

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by Felipe

  1. Hello, guys! The code works only for the logged pilots. But I would like to set it on the pilot_public_profile.tpl. So, basically, I need the "$pilot->pilotid" to pull the data from the DB. I've changed all the queries, but it is not working out. Would you please give me some tips? As an example, I did this in all queries of all the functions... $sql = '... p.accepted = 1 AND p.pilotid = '.$pilot->pilotid.' ORDER...''; return DB::get_results($sql); } ... instead of... $sql = '... p.accepted = 1 AND p.pilotid = '.Auth::$userinfo->pilotid.' ORDER B......''; return DB::get_results($sql); }
  2. Try to check your foreach() on the frontpage_recentbids.tpl. Mine is this way and it works fine: <table class="table table-condensed"> <thead> <tr> <th>Voo</th> <th>Trecho</th> <th>Piloto</th> </tr> </thead> <tbody> <?php foreach($lastbids as $lastbid) { ?> <tr> <td><?php echo $lastbid->code . $lastbid->flightnum; ?></td> <td><?php echo $lastbid->depicao; ?> - <?php echo $lastbid->arricao; ?></td> <?php $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; ?> <td><a href="http://vai.aero/index.php/profile/view/<?php echo $lastbid->pilotid; ?>"><?php echo $pname; ?> <?php echo $psurname; ?></a></td> </tr> <?php } ?> </tbody> </table>
  3. Well... so there might be only one bid at this time...
  4. <?php MainController::Run('FrontBids', 'RecentFrontPage', x); ?> Change the "x" for the number of bids you want to show. Mine, for example, is 10. But I suggest you to fill it with a number that fits better to your layout.
  5. In the line... echo " {$pilot->firstname} {$pilot->lastname}<br />"; ... do like this: echo "<a href=\"http://your-domain.com/index.php/profile/view/". $pilot->pilotid ."\"> {$pilot->firstname} {$pilot->lastname}</a><br />";
  6. I think your interception was pointless and somewhat aggressive. But, anyway... That's exactly what I said before: if you land on airport A with the aircraft X, the ones who are not in A too should not be able to book flights with an aircraft that actually is standing in A. That seems obvious, doesn't it? And it is exactly what I meant in the previous post. Sorry if I did not make myself understood. Probably because English is not my native language...
  7. Hello, Mr. Khorrami! This new release of yours looks great! I think it matches what would be considered "as real as it gets". In my VA, for example, we still have only 11 aircrafts (our fleet increases based on our pilot's quantity). It is quite strange to look at the ACARS Map and see two pilots flying the same aircraft. So I think your addon has arrived on a good time. I just have something to point out... Let's consider all the 7 steps in order. Ok... I landed in the airport A and the aircraft becomes available again. Let's suppose there is another pilot in airport B. He bids a flight from the aircraft I just flown. Is it possible on your addon? If yes, my suggestion is to code something that could allow bids for the schedules of this aircraft only for those pilots who are also standing in airport A. if you've watched this peculiarity in your code, then for me it's perfect. Congratulations! I'll just wait for your answer to update in my VA since I already use your version 1.0.
  8. Felipe

    VAForum 2

    Hello, everyone! I'm having problem with the charset using this add-on. My language is portuguese. It has accents into some words. This, for example, should be... não tão bom, mas no momento não há diferença ... and it is being shown as... n?o ? t?o bom, mas no momento n?o h? diferen?a It has to be something inside the add-on, because on other parts of my site and add-ons it does not happen. Does anybody know how to solve it? It would be very appreciated.
  9. Thank you so much, David. I'll wait. Tks!
  10. I did it and also added the function getSchedulesBidsExpired() And still my expired bid are being deleted but the schedules are not being updated to zero on bidid column. I've tried yours and Kyle's tips and nothing works for me. Now I'm trying my own way... Let's see what happens...
  11. You mean I should head for the phpvms_bids table on my DB and change the dateadded column type from "date" to "datetime"?
  12. Hello, David! I installed your SMF Modules today. It works fine for the new registered pilots. But is there a way to set the existing pilots in to this integration too without having to make it manually?
  13. I tried this one from Piuozorio... http://forum.phpvms....p-bids-removal/ ... and it did not work for me. Now I'm gonna try Kyle's. I hope I get it to work.
  14. Hello, Piuozorio! The cron is deleting the bid, but it still remains with some bidid set. I'll test your query it with just... $sql = 'UPDATE '.TABLE_PREFIX.'schedules SET `bidid`= 0; ... until I can figure out how to solve my problem definitely.
  15. Hello, Piuozorio! It's great from hear the solution from you. I'll take a time tonight to check it and if it works for me I'll let you know. By the way, I'm watching your badge and it says Eficiência 93%. By chance, has your VA developed a FOQA system based on phpVMS? Thank you very much for your help!
  16. Just a correction on my code above... Where you see... &11a=V&12a= ... change to.. &voice=/V/&12a=
  17. I'm facing the same problem as you, Manuel. I'm still trying to fix it. By this time I am looking for grants to start repairing this issue. For the time being, what I've realized is that bidid field in the schedules table in the database should be updated to zero when bids expires and maintainance.php does its job. And this is not happening... That's is our problem. Whenever I get something, I'll post in here. The problem is I'm just a newbie in php programming...
  18. After a long time reading a lot of topics herein, finally I found something that lead me to the right path and now I share here. If you run a cron, go to admin/maintainance.php and if you keep it as original, jump to line 44 and swap it to "true", as below: if(Config::Get('CLOSE_BIDS_AFTER_EXPIRE') === true) After I did it, I changed my cron to run every minute, just to have some tests, and now expired bids are being deleted automatically.
  19. I'm experiencing the same problem and I'm running a cron.
  20. Hello, Bokjan! You can modify or set the variable by looking for this path: "yoursite/core/modules/module_name_folder/module_name_file.php" Inside the module_file_name.php, look for class module_name extends CodonModule { and insert this right after the "{" public $title = "desidered_name_for_your_page";
  21. Hello, guys! I would like your help to find the file that corresponds to this path <?php echo SITE_URL?>/action.php/acars/fsacars/flightplans so I can make some customization in the "Flight From VA" FSAcars feature.
  22. Here is like I'm using in my VA. But remember this code has some costumization. <a href="http://www.vatsim.net/fp/?1=I&2=<?php echo $schedule->code.$schedule->flightnum; ?>&3=<?php echo $acft_fsinn; ?>&4=0450&5=<?php echo $schedule->depicao;?>&6=<?php echo str_replace(":", "", $schedule->deptime); ?>&7=<?php echo $schedule->flightlevel; ?>&8=<?php echo strtoupper($schedule->route); ?>&9=<?php echo $schedule->arricao;?>&10a=<?php printf('%02d', $hr); ?>&10b=<?php printf('%02d', $min); ?>&11=<?php echo "{$schedule->notes}"; ?>&11a=V&12a=<?php printf('%02d', $fob_hr); ?>&12b=<?php printf('%02d', $fob_min); ?>&13=<?php echo $altn_ap ?>&14=<?php echo $_SESSION['piloto']; ?>+ICAO" target="_blank">Registrar</a>
×
×
  • Create New...