Jump to content

Artjom

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by Artjom

  1. Artjom

    Briefing

    Thanks Nabeel for your Replay I've add your code into schedules_briefing.tpl but that isn't work <?php $time = explode(':', $schedule->deptime); $hour = $time[0]; $minute = $time[1]; ?>
  2. Artjom

    Briefing

    I need to at VATSIM plan was already full, here is my link: <a class="post" href="http://www.vatsim.net/fp/?2=<?php echo $schedule->flightnum; ?>&3=<?php echo "{$schedule->aircraft}"; ?>&4=none&5=<?php echo "$schedule->depicao"; ?>&6=<?php echo "{$schedule->deptime}"; ?>&7=<?php echo "{$schedule->flightlevel}"; ?>&8=<?php if($schedule->route == ''){echo '<br />';}else{echo strtoupper($schedule->route);}?>&9=<?php echo "$schedule->arricao"; ?>&10a=HOURTIME&10b=HOURMINUTES&11=HERELINK& target="_blank">VATSIM</a>
  3. Artjom

    Briefing

    I've a questions, how can I do 1. that's in the Briefing shows the firstname and lastname pilot?? 2. tahat's the time-not a single number 1:20 and the conclusions separately at first hours : minutes example: (<?php echo "{$schedule->deptimehours}"; ?>:<?php echo "{$schedule->deptimeseconds}"; ?>)
  4. On Windows 7 64x doesn't work Configuration!
  5. good job!! when is release?
  6. I've a problem with "The module "MASSMAMILER" doesn't exist!" in Admin Center!!!
  7. Before creating the post, use the search function! http://forum.phpvms.net/topic/2678-rotate-image-request/
  8. I've change the code please look into first post!Â
  9. I'll wait for your feedback
  10. Time rotate logo_night.png - Night logo (00:00 - 07:00) logo_morning.png - Morning logo (07:00 - 12:00) logo_day.png - Daily logo (12:00 - 19:00) logo_evening.png - Evening logo (19:00 - 00:00) This is code: <script type="text/javascript"> function shapka(n) {document.write('<img border="0" src="<?php echo SITE_URL?>/lib/skins/YOUR_SKIN_NAME/images/'+n+'.png">');} var h=(new Date()).getHours(); if (h > 23 || h <7) shapka('logo_night'); if (h > 6 && h < 12) shapka('logo_morning'); if (h > 11 && h < 19) shapka('logo_day'); if (h > 18 && h < 24) shapka('logo_evening'); </script>
  11. Sorry for double post!
  12. I have 2 scripts rotation, one works at the time were taken: 1.gif - Night logo (00:00 - 07:00) 2.gif - Morning logo (07:00 - 12:00) 3.gif - daily logo (12:00 - 19:00) 4.gif - Evening logo (19:00 - 00:00) and the other rotates, logo and extradite him gently, and not just appeared ... evening ladies script!
  13. Last Location in Badge Tested on phpvms 2.1 (940) IT DOESN'T WILL WORK IF YOU DIDN'T SEND PIREP! core\common\PilotData.class.php 1. After (LINE 956) $pilot = self::getPilotData($pilotid); add this code $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED); 2. After  (LINE 974) $output[] = 'Total Hours: ' . $totalhours; add this code $output[] = 'Last Location: ' . $last_location->arricao; Download: PilotData.class.php Should look like this: 1.     $pilot = self::getPilotData($pilotid);     $last_location = PIREPData::getLastReports($pilotid, 1, PIREP_ACCEPTED);     $pilotcode = self::getPilotCode($pilot->code, $pilot->pilotid); 2.       $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname;       $output[] = $pilot->rank.', '.$pilot->hub;       $output[] = 'Total Flights: ' . $pilot->totalflights;       $output[] = 'Total Hours: ' . $totalhours;      $output[] = 'Last Location: ' . $last_location->arricao;
  14. I've solved this problem! To change the name Schedules to your language or any other module you need to add this code: core\modules\Schedules\Schedules.php(line: 19-20) class Schedules extends CodonModule { public $title = 'Name of your page'; //It was added public function index()
  15. I want to change the title to the Russian language, in which file can I change this? I was looking but never found! Schedules - KD Avia Profile - KD Avia Thanks!
  16. Nabeel Please try, I think that all Russian and Ukrainian people you will be grateful
  17. Nabeel, you could not solve the problem with Russian language! atoms as I had not suffered all of any problems, ask for help
  18. hi, this code is not working, pilots can't write names in Russian language (gives characters example: Артём Антипов), the download page has the same problem with Russian does not understand and the Sceudules page has the same problem with Russian ...
  19. At a very good idea, let's try to create such a module, I have been to do something on the similarity but I have not come, it rouses very convenient in that there is no need to be created for each separate type of aircraft flight, I visited this code,but it does not work, can some one can modify admin/templates/ops_scheduleform.tpl Repace this code: (Line 125) <select name="aircraft"> <?php foreach($allaircraft as $aircraft) { if($aircraft->registration == $schedule->registration) $sel = 'selected'; else $sel = ''; echo '<option value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' ('.$aircraft->registration.')</option>'; } ?> </select> To this code: <?php foreach($allaircraft as $aircraft) { if($aircraft->registration == $schedule->registration) $sel = 'selected'; else $sel = ''; echo '<input name="aircraft" type="checkbox" value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' ('.$aircraft->registration.')<br>'; } ?> And you get in this form (but how to keep two aircraft about the trip has not been done, can anyone ever be able to help us in this issue?)
  20. Who can I download atached file?
  21. Thanks! Excelent script!
  22. And I realized that the script will not lay out on this resource Thanks Tom!
  23. I also need these files too
×
×
  • Create New...