Jump to content

gio1961

Members
  • Posts

    252
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gio1961

  1. Hi everyone. I have a problem with the module. I installed it, unfortunately when I try to add a staff member it doesn't work. Only the reload of the page. I use the php version Thanks for a possible reply Screen after clicking on Add staff
  2. On recent flights on the first page, it should show the name of the plane in which the Pirep was archived, instead it shows the number 1 Here is the code I'm using: <?php $pilotid = Auth::$userinfo->pilotid; $reports = PIREPData::getLastReports($pilotid, 5,''); ?> <table class="table table-striped mt30" cellspacing="0" width="100%" height="30" border="1" bordercolor="#FFFFFF"> <tr> <th bgcolor="#dd4b39"><font color="#ffffff">Flight Number</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Aircraft</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Departure</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Arrival</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Flight Time</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Landing rate</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Date</font></th> <th bgcolor="#dd4b39"><font color="#ffffff">Status</font></th> </tr> <?php if($reports) foreach($reports as $report) { ?> <tr> <td><a href="<?php echo url('/pireps/view/'.$report->pirepid);?>"><?php echo $report->code . $report->flightnum; ?></a></td> <td><?php echo $report->aircraft;?></td> <td><?php echo $report->depicao; ?></td> <td><?php echo $report->arricao; ?></td> <td><?php echo $report->flighttime; ?></td> <td><?php echo $report->landingrate; ?>&nbsp;ft/min</td> <td><?php echo date(DATE_FORMAT, strtotime($report->submitdate)); ?></td> <td><?php if($report->accepted == PIREP_ACCEPTED) echo '<div id="success">Accepted</div>'; elseif($report->accepted == PIREP_REJECTED) echo '<div id="error">Rejected</div>'; elseif($report->accepted == PIREP_PENDING) echo '<div id="error">Approval Pending</div>'; elseif($report->accepted == PIREP_INPROGRESS) echo '<div id="error">Flight in Progress</div>'; } ?> </td> </tr> </table> Other problem. if a pilot did not fly, how to insert "no report"? Thanks for a possible reply
  3. Hi, try it file: app_top.php <div class = "pull-left image"> <? php $ pilotcode = PilotData :: getPilotCode (Auth :: $ userinfo-> code, Auth :: $ userinfo-> pilotid); ?> <img src = "<? php echo PilotData :: getPilotAvatar ($ pilotcode);?>" class = "img-circle" alt = "User Image"> </ Div> file: pilot_public_profile.php <? Php if (! file_exists (SITE_ROOT.AVATAR_PATH. '/'. $ pilotcode. '. png')) { echo '<img src = "****** / en / lib / skins / crewcenter / images / pilot_profile_pic.jpg" alt = "avatar" class = "img-circle">'; } else { echo '<img src = "'. SITE_URL.AVATAR_PATH. '/'. $ pilotcode. '. png'. '" alt = "No Avatar" class = "img-circle" height = "150" />'; } ?> this is an example and as you can see it works. The image must have the extension * .png max 150X150 PX http://italianichevolano.altervista.org/avatar.jpg Filezilla FTP http://italianichevolano.altervista.org/01.jpg
  4. Open the lib/skins/CrewCenter/profile_edit.tpl or .php file and replace line from: <input type="text" class="form-control" value="<?php echo $userinfo->email;?>"> to: <input type="text" class="form-control" name="email" value="<?php echo $userinfo->email;?>">
  5. Unfortunately, the site has closed http://www.simpilotgroup.com otherwise I would have already done. However I solved. Sincerely
  6. Like mentioned it is in core/common/Auth.class.php In the default file on line 293
  7. The text is located in the core folder. Open the app.config.php file Sincerely
  8. Hi, try to see if it works. Greetings foreach($stats as $stat) to if($stats) foreach($stats as $stat)
  9. Hi, see here if it can be useful https://www.crazycreatives.com/downloads/flight-position-tracker/
  10. Hello, try changing this line and see if it works. <script a sync defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo"></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo&callback=initMap" type="text/javascript"></script>
  11. Hi, open the core / templates / screenshots_random.tpl file and edit the height and width values and see if it works (<img src = "'. SITE_URL.' / Pics /'.$ screenshot-> file_name. '" Height = "350px" width = "672px" alt = "Random Screenshot" />) frontpage_main.tpl file <center> <? php Screenshots :: show_random_screenshot (); ?> </ Center>
  12. Hi, see if it works. if(Auth::$userinfo->totalhours < 30){ echo 'You do not have permission to access this page. You must have at least 30 hours of flight'; return; }
  13. The loa.sql file is missing, which you can download from here: https://github.com/carriercomm/phpvms_loa Use the loa.sql file to create the table necessary for the module to work. You can do this by using phpmyadmin.
  14. Hi everyone, someone has a pop-up form or modal window to share to view incoming emails. I found this on the net but I could not change it <div class="container"> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title">EMAIL</h4> </div> <div class="modal-body"> <p><?php MainController::Run('Mail', 'checkmail'); ?></p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> <?php $show_modal=false; $id = $_SESSION["id"]; $sql = "select count(*) as ct from messages where `readdate`='0000-00-00 00:00:00' and user_to=$id and status!=3"; if (!$result = $db->query($sql)) { die('There was an error running the query [' . $db->error . ']'); } while ($row = $result->fetch_assoc()) { if ($row['ct']>0) $show_modal=true; } if($show_modal):?> <script> $('#myModal').modal('show');</script> <?php endif;?>
  15. Hi, see here if it can help you..
  16. Hi guys, who uses the Simpilots Pilot Rewards module? do you have the operating manual by chance? (mine can not find it anymore) Thanks for a possible answer.
  17. Hi guys, is there a way to align the writing, maybe make it more readable or in the middle? thanks for a possible answer.
  18. Good morning guys. When you receive an email (contact form) this is not "formatted" correctly, but all fields are displayed confusingly. Is there a way to solve this problem? thank you in advance
  19. Resolved, thanks. Best regards
  20. Thank you for your interest. Best regards
  21. Thank you for answering. I refer to the registration page, contacts. I use the 2.1.936 phpvms version. I'm not a professional webmaster but a simple amateur. Best regards
×
×
  • Create New...