-
Posts
26 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by FlightDeckES
-
-
1 hour ago, Yash said:
public function routesmap() { if (!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.tpl'); return; } $this->title = 'My Flight Map'; $pireps = PIREPData::findPIREPS(array( 'p.pilotid' => Auth::$pilot->pilotid ), 10); if (!$pireps) { $this->set('message', 'There are no PIREPs for this pilot!!'); $this->render('core_error.tpl'); return; } $this->set('allschedules', $pireps); #deprecated $this->set('pirep_list', $pireps); $this->render('flown_routes_map.tpl'); }
Try this!
thanks for your help but it still doesn't work
used this code in the pilot_public_profile.php
<?php MainController::Run('Pireps', 'routesmap'); ?>
-
23 minutes ago, ProAvia said:
Si ha editado el módulo Rutas o el archivo flown_routes_map, es posible que deba volver a los originales para tener una línea de base para comenzar.
Hi, it was the first thing I checked here, some screenshots
used this code in the pilot_public_profile.php
<?php MainController::Run('Pireps', 'routesmap'); ?>
-
1 hour ago, ProAvia said:
In local.config.php
# Number of routes to show in the flown routes map
Config::Set('ROUTE_MAP_SHOW_NUMBER', 50); // change number to reflect desired number of routes
hello thanks for the help, I have it inserted local.config.php for some reason is not working
-
2 hours ago, Yash said:
I hope this works for you -
public function routesmap() { if (!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.tpl'); return; } $this->title = 'My Flight Map'; $pireps = PIREPData::findPIREPS(array( 'p.pilotid' => Auth::$pilot->pilotid ), $count = '10'); if (!$pireps) { $this->set('message', 'There are no PIREPs for this pilot!!'); $this->render('core_error.tpl'); return; } $this->set('allschedules', $pireps); #deprecated $this->set('pirep_list', $pireps); $this->render('flown_routes_map.tpl'); }
hello thanks for the help, for some reason is not working
-
Hello thanks for the information, I have edited the flown_routes_map.php
but I don't know how to limit the last 10 flight registration.Modules/pireps
public function routesmap (){
if (!Auth::LoggedIn()) {
$this->set('message', '<div class="alert alert-danger alert-dismissable">You must be logged in to access this feature!</div>');
$this->render('core_error.tpl');
return;
}$this->title = 'My Flight Map';
$pireps = PIREPData::findPIREPS(array('p.pilotid' => Auth::$pilot->pilotid ));
if (!$pireps) {
$this->set('message', '<div class="alert alert-danger alert-dismissable"><center>No hay vuelos archivados todavia</center></div>');$this->render('core_error.tpl');
return;
}$this->set('allschedules', $pireps); #deprecated
$this->set('pirep_pilots', $pireps);
$this->render('flown_routes_map.php');
}
-
-
Hello
I am trying to add that the last 10 routes flown are shown, I have not been lucky thanks for the help this is the Module / Pireps codepublic function routesmap($pilotID,$limit='') {
if (!Auth::LoggedIn()) {
$this->set('message', '<div class="alert alert-danger alert-dismissable">You must be logged in to access this feature!</div>');
$this->render('core_error.tpl');
return;
}$this->title = 'My Flight Map';
$pireps = PIREPData::findPIREPS(array(
'p.pilotid' => Auth::$pilot->pilotid,$limit
));if (!$pireps) {
$this->set('message', '<div class="alert alert-danger alert-dismissable"><center>No hay vuelos archivados todavia</center></div>');$this->render('core_error.tpl');
return;
}$this->set('allschedules', $pireps); #deprecated
$this->set('pirep_pilots', $pireps);
$this->render('flown_routes_map.php');
}
with this code all
<?php MainController::Run('Pireps', 'routesmap'); ?>
thanks.
-
Hello good afternoon I'm trying to put this in the profile_main there would be some way this works with a single click when you delete the reservation.
Thanks for the help.
-
Hi,could you put all the changes needed in one post? thanks
- 1
-
Hi,
thanks for the help with this code I solved the error but now it gives me another.
Here it works right with comments.
http://i68.tinypic.com/6z95wm.png
here it does not work without comments
http://i68.tinypic.com/zl7l0i.png
code:
<!-- Comentarios -->
<div class="card">
<div class="card-title">
<i class="fa fa-commenting-o"></i>
<span class="caption-subject bold uppercase"> Comentarios </span>
</div>
<div class="card-body">
<?php
if(!$comments)
{
echo '<p align="center"><strong>There are no comments for this PIREP</strong></p>';return;
}
?>
<div id="dialogresult"></div>
<?php
foreach($comments as $comment)
{
?>
<p id="row<?php echo $comment->id;?>">
<strong><?php echo $comment->firstname. ' '. $comment->lastname ?>: </strong><?php echo $comment->comment; ?>
<hr />
</p>
<?php
}
?><form action="<?php echo url('/pireps/viewpireps');?>" method="post">
<textarea name="comment" style="width:100%; height: 100px"></textarea>
<input type="hidden" name="action" value="addcomment" />
<input type="hidden" name="pirepid" value="<?php echo $pirep->pirepid?>" />
<input type="submit" name="submit"class="btn btn-primary btn-block" value="Añadir" />
</div>
</div>
<!-- Comentarios --> -
Hello
I need your help please I am trying to make the comments visible in the pirep_viewreport
I am using this code
<?php
foreach($comments as $comment)
{
?><p id="row ">
<strong><?php echo $comment->firstname. ' '. $comment->lastname ?>: </strong><?php echo $comment->comment; ?>
<hr />
</p><?php
}
?>
http://i65.tinypic.com/2zibvut.png
but I have this error thanks for the help thanks -
Hi,
Good afternoon
Would need a graphic designer / repainter to paint our fleet. -
hello please link dead thank you
-
I am also interested on it! thank you
-
Hello, good afternoon
compatible module would be some smart cars on penalty pilots on reporting PIREPs.
thank you
-
thank you sr very much
-
The download link dead thank you
-
hello good afternoon I have this problem does not record anything when sending the message to the drivers thanks for the help
phpVMS Version simpilot 5.5.2
-
hello good afternoon how you could solve mails when I assign a medal pilots receive an email but there is nothing written in the mail
-
thank you very much we use smartcars but it is changing the aircraft for that route
-
-
-
hello
how could that pilots can only catch aircraft where they are at that moment I have the problem that aircraft pilots can take part in any greetings thanks
phpvms 5.5.2
smartcars
-
allow_url_fopen and allow_url_include in php.ini are off contact your hosting company for further information
hello good afternoon some solution to this issue please help thank you very much as could fix
Fly routes maps limit
in Support Forum
Posted · Edited by FlightDeckES
thanks for your help here's something on this topic,but is outdated for a PHP version
https://forum.phpvms.net/topic/22395-pilot-profile-recent-flights-on-google-maps/