Imanol
-
Posts
97 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Imanol
-
-
22 minutes ago, HCStrike said:
I have the same issue, if you try bidding charter flights you should have the same issue I do
I don't know exactly because my virtual airlines operates regular flights only.
-
7 hours ago, HCStrike said:
@Imanol, I have the exact same issue. When you create charter flights, do they display in the bids section after you create it?
If not I have an ongoing ticket with TFDi where they are trying to help me fix it. If I find a solution I'll tell you
Hi HCStrike,
We do not have charter flights, we are not having problem with biding flights. The issue occurs when I want to file a pirep. Thank you.
-
20 hours ago, AJCWebServices said:
Have a look in your smartCARS log. You will find it in C/Programs(x86)/smartCARS/logs
Hi AJCWebServices,
I checked the smartCARS Log and I got this
[08:14:51 p.m.] Windows 10, Build 15063, Suite Mask: 0x300, 64bit Architecture [08:14:51 p.m.] Browser emulation mode set to 11001 [08:15:30 p.m.] Logged in to airline 31 as pilot 2 with dbid 2 [08:16:00 p.m.] set_color 4 [08:16:00 p.m.] set_color 7 [08:29:59 p.m.] [ERROR] An exception occured during flight map position reporting. It was : System.Net.WebException: Se ha terminado la conexión: La conexión ha terminado de forma inesperada. en webreq(String uri) en smartCARS.mainform.bkgwkrflightmap_DoWork(Object sender, DoWorkEventArgs e) [08:30:21 p.m.] [ERROR] An exception occured during flight map position reporting. It was : System.Net.WebException: No se puede resolver el nombre remoto: 'tfdidesign.com' en webreq(String uri) en smartCARS.mainform.bkgwkrflightmap_DoWork(Object sender, DoWorkEventArgs e) [10:18:47 p.m.] The sim monitor thread returned [10:18:51 p.m.] [ERROR] An unknown or unsatisfactoy response was received during the PIREP filing. It was : <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/skyjetvirtual/public_html/es/core/common/PIREPData.class.php</b> on line <b>337</b><br /> <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/skyjetvirtual/public_html/es/core/common/PIREPData.class.php</b> on line <b>337</b><br /> SUCCESS [10:19:22 p.m.] [ERROR] An unknown or unsatisfactoy response was received during the PIREP filing. It was : <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/skyjetvirtual/public_html/es/core/common/PIREPData.class.php</b> on line <b>337</b><br /> <br /> <b>Warning</b>: Creating default object from empty value in <b>/home/skyjetvirtual/public_html/es/core/common/PIREPData.class.php</b> on line <b>337</b><br /> SUCCESS
-
Hello,
When I try to file a pirep using smartCARS or the manually form, these are not working. In the case of smartCARS, it works perfectely until I click "File Pirep" and I get an error notice as the site would not be working, but it is. When I want to file a PIREP using the manual form, it redirects to the PIREPS List section but the new one is not sent and I do not get any error notice. The acars map is not working either, it does not show active flights. I have search on this forum but I did not find an answer.
Thanks!
-
11 hours ago, ProSkyDesign said:
add the image in the Pilot module, no in the template. (spanish: añade la imagen en el módulo, no en la plantilla para evitar el ciclo y así no se repetirá)
<?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pilots extends CodonModule { public $title = 'Pilots'; /** * Pilots::index() * * @return */ public function index() { ?> // Image here <img src="" alt="" /> <?php // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); $this->set('allpilots', $pilot_list); # deprecated $this->set('pilot_list', $pilot_list); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); # deprecated $this->set('pilot_list', $nohub); $this->render('pilots_list.tpl'); } /** * Pilots::reports() * * @param string $pilotid * @return */ public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.tpl'); return; } $pirep_list = PIREPData::GetAllReportsForPilot($pilotid); $this->set('pireps', $pirep_list); # deprecated $this->set('pireps_list', $pirep_list); $this->render('pireps_viewall.tpl'); } /* Stats stuff for charts */ /** * Pilots::statsdaysdata() * * @param mixed $pilotid * @return */ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30); $this->create_line_graph('Past 30 days PIREPs', $data); } /** * Pilots::statsmonthsdata() * * @param mixed $pilotid * @return */ public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3); $this->create_line_graph('Monthly Flight Stats', $data); } /** * Pilots::statsaircraftdata() * * @param mixed $pilotid * @return */ public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add_data_set($ac->aircraft, floatval($ac->hours)); } echo OFCharts::create_pie_graph('Aircraft Flown'); } /** * Pilots::create_line_graph() * * @param mixed $title * @param mixed $data * @return */ protected function create_line_graph($title, $data) { if(!$data) { $data = array(); } $bar_values = array(); $bar_titles = array(); foreach($data as $val) { $bar_titles[] = $val->ym; $bar_values[] = floatval($val->total); } OFCharts::add_data_set($bar_titles, $bar_values); echo OFCharts::create_area_graph($title); } /** * Pilots::RecentFrontPage() * * @param integer $count * @return */ public function RecentFrontPage($count = 5) { $pilot_list = PilotData::getLatestPilots($count); $this->set('pilots', $pilot_list); $this->set('pilot_list', $pilot_list); $this->render('frontpage_recentpilots.tpl'); } }
It works perfectly! Thank you!
- 1
-
-
17 hours ago, joooseb said:
Are you from Argentina?, If you speak spanish mail me and I can help you =)
ceo@travelskyalliance.com
Yes I am! I will mail you. Thank you!
-
2 hours ago, flyalaska said:
change the pilots users group in admin.
Hi flyalaska,
Could you explain this, please? I use pilot groups for my admins permissions, I don't know how to do it with normal pilots. Thanks.
-
Hi everyone,
I need to install a funtion which could allow me and my admins to suspend pilots. I have searched in the forum but I could not find any one. I laso tried installing the last update of phpVMS but it did not work. Is there anyway to set this? Thanks!
-
I use these codes for the input field. As I said, the code for IVAO does not work in the registration main form only.
-
Yes, I added them in the admin center.
-
Hello!
I have added two custom field in my registration main form: VATSIM ID and IVAO ID. However, when a new pilot registers in my VA and introduces his IVAO ID, this one is not registered in his profile. There's no problem with VATSIM ID. If the pilot edits his information in the Pilot Area, he can set his IVAO ID and it's shown in his profile.
I am using this code in the registration main form and edit profile form. The IVAO ID code does not work in the registration form only.
VATSIM ID code
<input name="VATSIM ID" class="form-control customfield_textarea" type="text" value="<?php echo PilotData::GetFieldValue($userinfo->pilotid, 'VATSIM ID'); ?>"></span>
IVAO ID code
<input name="IVAO ID" class="form-control customfield_textarea" type="text" value="<?php echo PilotData::GetFieldValue($userinfo->pilotid, 'IVAO ID'); ?>"></span>
Thanks!
-
Just another question. Do you know how I can set it as an input area. I want my pilots to edit their profile field values form the edit profile option. Thanks.
-
Where exactly (what file?) do you want to put this in, and what is the exact name of your customfield?
The wrong variable might be declared.
Try this one
<?php echo PilotData::GetFieldValue($userinfo->pilotid, 'VATSIM ID'); ?>
It works perfectely, thank you!!!
-
Hello,
I want to add custom fields of pilots profile but they are not show. I have tried this code but it does not work:
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
However, I have used this one and it works but showing all the field values:
<?php // Show the public fields if($allfields) { foreach($allfields as $field) { echo "$field->value"; } } ?>
I looked for help at this forum but I did not find a solution for this issue.
Thanks!
-
It works perfectely, thanks!
-
Hi everyone,
I am having issues with the tpl files pages_nopermission and pages_notfound. When pilots go to a wrong links in my website, they're redirected to the nopermission pagen instead of the notfound one. I have checked the Pages.php file and it seems to be correct. Do you know how I can solve it?. Thanks.
<?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pages extends CodonModule { public function NavBar() { $this->set('allpages', SiteData::getAllPages(true, Auth::$loggedin)); $this->render('pages_items.tpl'); } public function __call($name, $args) { // $name here is the filename, but we don't call it in directly // for security reasons $page = DB::escape($name); $pageinfo = SiteData::GetPageDataByName($page); if($pageinfo->public == 0 && Auth::LoggedIn() == false) { $this->render('pages_nopermission.tpl'); return; } $content = SiteData::GetPageContent($page); if(!$content) { $this->render('pages_notfound.tpl'); } else { // Do it this way, so then that this page/template // can be customized on a skin-by-skin basis $this->title = $content->pagename; $this->set('pagename', $content->pagename); # Do entity encoding, compensate for a html_entity_decode() in the templates $this->set('content', htmlentities($content->content)); $this->render('pages_content.tpl'); } } }
-
Hello Fernando.
The download link does not work. Could you reupload it again? I found interesting your module. Thanks!
-
I could fix it add this to the head section of layout.tpl
<meta name="viewport" content="width=device-width, initial-scale=1">
Thank you!
- 1
-
Do you know how it can be fixed?
-
I've check it with other mobile browsers and the same happens, the responsive mode does not work.
-
-
-
Hello!
I am trying to see this template on my mobile phone but it's shown as complete site, it does't use the responsive mode. Do you know how I could fix it? Thanks.
Problems with filing a pirep and acars map
in Support Forum
Posted
I have ask my hosting provider to help me with this issue. They say that it may be a compatibility problem with MariaDB. Last Wednesday that update it to the last version and the report functional of my site stopped working.