-
Posts
224 -
Joined
-
Last visited
-
Days Won
10
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by CarlosEduardo2409
-
It happened only in this new skin, but anyway, it was working on that skin before. PM
-
I know how to solve both. The first one is because I have two jQuery and the second one is the same skin error, it's so u. The file that is missing, the more I needed to take. The error that could probably fix the forum error is the first one, jQuery, but I took one of my jQuery and the error in the console disappeared, but I did not fix the error of the forms.
-
@web541 Yes, the forms are as a post method. And also has error in the console, has two errors (yes, includes one with jquery), they are:
-
So... Hello everyone, again. I have a new problem again. This time the error is in the forms. On all forms of my VA (Airmail, fltbook, all) are not working. When I submit something it does not lead to the correct place and the link gets weird (the information stays in it, as in the image below). (https://prnt.sc/imjq3b) The image above is an example of the fltbook, when I click to search for a flight the form does not work but enters this link. I'm using a custom skin that I'm doing. I'm sure it was some file that I moved and now is giving error, because before was not giving any error, worked perfectly. I'm sorry for not passing more information, because I literally do not know which files to pass. I can only say that I'm using the admin template 'Elmer'. Regards, Carlos.
-
Hi @Omerr01, so I do not know if I understood very well, from what I understood you want to put a map of the route that the pilot flight on the page of the reports, right? I'm not sure if this was it, because in standard phpVMS it already comes with this. You have to add this to wherever the map appears: <?php $this->render('route_map.php'); ?>
-
I also discovered that I was giving pirep_list error, but the error was not appearing. @web541
-
You are welcome
-
Try this: <li class="list-group-item"> <b>Rank Progress</b> <?php $percentage = ($pilot_hours/$nextrank->minhours) * 100; ?> <?php $round = round($percentage); ?> <div style="width: 80%;display: inline;" class="progress-group"> <span class="progress-number"><?php echo $round ?>% Completed</span> <div class="progress sm"> <?php echo "<div class='progress-bar progress-bar-blue-light' role='progressbar' aria-valuenow='60' aria-valuemin='0' aria-valuemax='100' style='width: ", $round, "%'></div>"; // Progress bar inner ?> </div> </div> </li>
-
Please, refresh the page, and get the code again.
-
@Relja12 Try this <li class="list-group-item"> <b>Rank Progress</b> <?php $percentage = ($pilot_hours/$nextrank->minhours) * 100; ?> <?php $round = round($percentage); ?> <div style="width: 80%;display: inline;" class="progress-group"> <span class="progress-number"><?php echo $round ?>% Completed</span> <div class="progress sm"> <div class="progress-bar progress-bar-blue-light" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style='width: ", <?php echo $round ?>, "%'></div> </div> </div> </li> Code by: Alp Yeni
-
Nothing
-
Are you sure, my jquery is 3.0 This is the code of foother.php </div> </div> <footer class="footer"> <div class="container-fluid"> <nav class="pull-left"> <ul> <li> <a href="#"> Home </a> </li> <li> <a href="#"> Company </a> </li> <li> <a href="#"> Portfolio </a> </li> <li> <a href="#"> Blog </a> </li> </ul> </nav> <p class="copyright pull-right"> © <script> document.write(new Date().getFullYear()) </script> <a href="http://www.creative-tim.com">Creative Tim</a>, made with love for a better web </p> </div> </footer> </div> </div> </body> <?php Template::Show('core_footer.php'); ?> <!-- Core JS Files --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/jquery-3.2.1.min.js" type="text/javascript"></script> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/bootstrap.min.js" type="text/javascript"></script> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/material.min.js" type="text/javascript"></script> <!-- Charts Plugin --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/chartist.min.js"></script> <!-- Dynamic Elements plugin --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/arrive.min.js"></script> <!-- PerfectScrollbar Library --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/perfect-scrollbar.jquery.min.js"></script> <!-- Notifications Plugin --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/bootstrap-notify.js"></script> <!-- Material Dashboard javascript methods --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/material-dashboard.js?v=1.2.0"></script> <!-- Material Dashboard DEMO methods, don't include it in your project! --> <script src="<?php echo SITE_URL;?>/admin/lib/layout/js/demo.js"></script> <script type="text/javascript"> $(document).ready(function() { // Javascript method's body can be found in assets/js/demos.js demo.initDashboardPageCharts(); }); </script> </html> But the only problem is that if I remove it from the site to do most of the functions, then I'll have to leave the skin default, unless I have a solution. But thank you @web541, I thank you every time you helped me, there were several.
-
I have now discovered that we are not even able to accept pilots.
-
No, I've customized it, now I'm using one of Creative Tim's Redirect to Creative-Tim
-
Greetings everyone, From a time to here, I start to change the layout of my admin panel, everything is working perfectly, actually almost perfection, I have a problem in the pending pirep, when I click to accept the pirep it does not accept, does not happen anything. My code of the pirep button: <?php if($error == false) { ?> <button class="pirepaction btn btn-success {button:{icons:{primary:'ui-icon-trash'}}}" href="<?php echo adminaction('/pirepadmin/'.$load.'?pilotid='.$pirep->pilotid.'');?>" action="approvepirep" id="<?php echo $pirep->pirepid;?>"> Accept </button> <?php } ?> My whole code: Regards, Carlos.
-
Map is not showing on the bids page
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
But the error is in the bid -
Map is not showing on the bids page
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
Someone? -
[SOLVED] Latitude and longitude on bids ($bids)
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
It worked! Thank you very much, thank you very much! Do you know if route_details appears? Because when I do a $ bids print_r the route details looks like this: [route_details] => a:0:{} -
[SOLVED] Latitude and longitude on bids ($bids)
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
For schedule_bids.php -
Hello everyone, I wanted to know if there is a code to know the airport latitude of arrival and destination of a reservation ($bid), because I am trying to put a map in the page of bids and it goes blank, I believe it is because he does not can find the latitude and longitude, because for an pyrep would be that '$pirep-> arrlat' right? So if I put '$bid' in place of '$pirep' it does not work. Thanks.
-
[Free] CrewCenter - Modern and responsive pilot center
CarlosEduardo2409 replied to swan58's topic in Releases
Ok, it's very simple, 1. reCAPTCHA - Go to core/app.config.php or tpl, and approximately on lines 242 to 245 you will find this: /* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */ Config::Set('RECAPTCHA_PUBLIC_KEY', 'YOUR_RECAPTCHA_PUBLIC_KEY'); Config::Set('RECAPTCHA_PRIVATE_KEY', 'YOUR_RECAPTCHA_PRIVATE_KEY'); Just change to your reCAPTCHA public key and private key 2. Google Map - Go to /lib/skins/crewcenter/core_htmlhead.php or tpl, and the line you are looking for is, <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script> Replace to <script async defer src="https://maps.googleapis.com/maps/api/js?key=PLACE YOURKEY IN HERE&callback=initMap"></script> Replace PLACE YOURKEY IN HERE with your generated key -
Hi everyone, everything fine? So I've been updating my VA in the settings profile part, but I get an error when I'm going to change the avatar. So, I'm leaving the profile settings on several tabs (https://prnt.sc/ho331l), all the tabs are ready, the profile tab containing the name, email and location changes and are working correctly, the password change tab is also working, but avatar change tab is not working properly. The problem is this, when I click to select the avatar and then I click to save the profile I get this message 'The email address can not be blank.', But the avatar change tab only has the function to change the avatar and I believe you do not need to put a space for the email. But I know that my problem is not in my code because when I was with the standard phpVMS code I already received this message. NOTE: The email address was not blank, and even then I got this error and keep getting it. That's the problem, does anyone know how to fix it? My profile_edit.php: <form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data"> <div class="control-group"> <div class="controls"> <div class="fileinput fileinput-new" data-provides="fileinput"> <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"> <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo ''; } else { ?> <img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /></dd> <?php } ?> </div> <div> <span class="btn red btn-outline btn-file"> <span class="fileinput-new"> Select image </span> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::Get('AVATAR_FILE_SIZE');?>" /> <input type="file" name="avatar" size="40" class="form-control"> </span> </div> </div> </div> </div> <br> <input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" class="btn btn-primary red btn-block" value="Upload Avatar"> </form> My save_profile_post from core/module/Profile.php /** * Profile::save_profile_post() * * @return */ protected function save_profile_post() { if(!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.php'); return; } $pilot = Auth::$pilot; //TODO: check email validity if($this->post->email == '') { $this->set('message', 'The email address cannot be blank.'); $this->render('core_error.php'); return; } $fields = RegistrationData::getCustomFields(); if(count($fields) > 0) { foreach ($fields as $field) { $value = Vars::POST($field->fieldname); $value1 = DB::escape($value); if ($field->required == 1 && $value1 == '') { $this->set('message', ''.$field->title.' cannot be blank!'); $this->render('core_error.php'); return; } } } $params = array( 'firstname' => $this->post->firstname, 'lastname' => $this->post->lastname, 'code' => $pilot->code, 'email' => $this->post->email, 'location' => $this->post->location, 'hub' => $pilot->hub, 'bgimage' => $this->post->bgimage, 'avatar' => $this->post->avatar, 'retired' => false ); PilotData::updateProfile($pilot->pilotid, $params); PilotData::SaveFields($pilot->pilotid, $_POST); # Generate a fresh signature PilotData::GenerateSignature($pilot->pilotid); PilotData::SaveAvatar($pilot->code, $pilot->pilotid, $_FILES); $this->set('message', '<strong>Your profile changes have been saved!</strong> Please, refresh the page to receive the profile changes.'); $this->render('core_success.php'); } Sorry for all the embarrassment I said, it was very confusing and sorry if I said something wrong because I'm using google translator. I already want to thank you all in advance, Regards, Carlos
-
Hello everyone, for a while, I made some changes in my business center, now I'm modifying the layout of my bid, but when I go modify my map, I have an error, not a mistake, but let's call it an error. You can see in my topic what I wanted to do with my map HERE. You can see that in this topic I was able to do what I wanted, but I'm not able to put it in the layout of my bid page. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ What is the error: Click here to see an error image. Click here to see the map code. You notice that in this image in the place where the flight map was supposed to be, it does not appear, but it occupies the size of the map. But the code is not a mistake, because I tested it on the reports page (pirep_viewreport.php) and it worked perfectly, but on the bids page it did not. (schedule_bids.php). Code that I'm using to appear in the layout: <?php $this->show('routemap_report.php'); ?> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Summing up: My mistake is that my custom map is not appearing on the bids page, remembering that the code works because in the layout of the reports it works. So my question is, does anyone know how I can fix this? Remembering, this error is on the bids page (schedule_bids.php). Observations: Using Simpilot phpVMS 5.5. Using crewcenter of web541 and Mark Swan I have my google maps key at core_htmlhead.php. Error in bids page Thanks, Carlos.
-
[SOLVED] Route Map on BID layout
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
Thanks web541, the API problem has already been solved, now the same problem is the map that does not work in schedule_bids.php But in the console of the site it speaks of an error like this: Error parsing header X-XSS-Protection: 1, 1; mode=block: expected semicolon at character position 2. The default protections will be applied. -
[SOLVED] Route Map on BID layout
CarlosEduardo2409 replied to CarlosEduardo2409's topic in Support Forum
@RuiMiguel Actually, this is working in pirep_viewreport, but I'm trying to put it in schedule_bids, but all the map codes I try to put do not appear on the page, it simply appears blank with the map space, just like in this image (http://prntscr.com/h7vtvw)