Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. How many pilots do you have ? Most probably time out
  2. Can you provide a link of your site ? did you changed anything like template or something else ?
  3. There is no default badge you can add it in any module that you want and then call it
  4. There is no need to edit anything in local.config.php Just make sure that you have followed the information .
  5. What do mean do you want to write an example ?
  6. I cannot understand what you try to achieve with that code <div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="[url="http://stats.vatsim.net/search_id.php?id="]http://stats.vatsim....arch_id.php?id=[/url]' . $fieldvalue . '" target="_blank">' . $fieldvalue . '</a></a>' ; } else { echo '<img src="[url="http://yourwebsite.com/images/inactiveicon.png"]http://yourwebsite.c...activeicon.png"[/url] width="20" height="18" border="0" alt="" /></a>' ; } ?> </div> do you want to show a pic or just the id ?
  7. there is no need to do that you can save the txt file on your server and grab it from there i might be able to give you a script 2morrow as i am still at work
  8. Most likely your server updated their php version
  9. Close the php tag at the end try to add ?>
  10. did you ha to upload your site again ? if yes try to do it again
  11. edit local.config.php and modify the mysql information
  12. For Departure Airport: <?php $metar = $_POST['metar']; $url = 'http://weather.noaa.gov/pub/data/observations/metar/stations/'.$schedule->depicao.'.txt''; $page = file_get_contents($url); echo $page; ?> For Arrival Airport: <?php $metar = $_POST['metar']; $url = 'http://weather.noaa.gov/pub/data/observations/metar/stations'.$schedule->arricao.'.txt''; $page = file_get_contents($url); echo $page; ?>
  13. Ok good luck I wish you
  14. Because you are looking in the wrong table the information of the custom fields is in phpvms_fieldvalues Field id is the id of the field in the phpvms_customfields and they are linked with the Field id and the PilotID
  15. any code any screenshot anything ?
  16. Fresh installation old installation ? Can you turn on the logs and post them here ?
  17. Hi you can check this solution if it works for you Digiover Newbie Members 1 posts Posted 06 June 2014 - 02:16 PM In order to send authenticated SMTP email over TLS, you need the following in your local.config.php (bug fix!): Config::Set('EMAIL_USE_SMTP', true); // Add multiple SMTP servers by separating them with ; Config::Set('EMAIL_SMTP_SERVERS', 'smtp.example.com'); Config::Set('EMAIL_SMTP_PORT', '25'); // or 587 Config::Set('EMAIL_SMTP_USE_AUTH', true); Config::Set('EMAIL_SMTP_USER', 'yourname@example.com'); Config::Set('EMAIL_SMTP_PASS', 'p4ssword'); Config::Set('EMAIL_SMTP_SECURE', 'tls'); Then, open up /core/classes/Util.class.php, scroll to line 257 and add in that code block: if(Config::Get('EMAIL_SMTP_USE_AUTH') == true) { $mail->SMTPAuth = Config::Get('EMAIL_SMTP_USE_AUTH'); // <- this line needs to be added $mail->Username = Config::Get('EMAIL_SMTP_USER'); $mail->Password = Config::Get('EMAIL_SMTP_PASS'); $mail->SMTPSecure = Config::Get('EMAIL_SMTP_SECURE'); } Otherwise PHPMailer won't trya authenticating because $mail->SMTPAuth value isn't set.
  18. the query should be query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft,phpvms_aircraft.registration,Auth::$userinfo->ranklevel //added this FROM phpvms_schedules, phpvms_aircraft,phpvms_pilots /added this WHERE phpvms_schedules.depicao LIKE '$depicao' AND phpvms_schedules.arricao LIKE '$arricao' AND phpvms_schedules.code LIKE '$airline' AND phpvms_schedules.aircraft LIKE '$aircraft' AND phpvms_aircraft.ranklevel<=Auth::$userinfo->ranklevel return DB::get_results($query);
  19. Have you tried anything ?
  20. Thats normal at some point it will come back
  21. If you know how to code yes you could
  22. this error comes from the module Fatal error: Call to undefined method OperationsData::AddAircaft() in /home/xxxxxxx/public_html/admin/modules/Operations/Operations.php on line 720\ i told you to go to folder core then to folder common and the open the OperationsData.class.php and see if there is a function called addaircraft it should be around line 375
  23. Check if the function exists in core / common / OperationsData.class.php
  24. with the way i told you if you check the add schedule function uses str_replace to change the . with : this proves that it is HH.MM $data['flighttime'] = str_replace(':', '.', $data['flighttime']);
  25. what do you want to do ?
×
×
  • Create New...