Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About CarlosEduardo2409

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location
    São Paulo, BR

Recent Profile Visitors

348 profile views
  1. Crewcenter modifications

    Sorry, but this code is for my (Not mine, but I'm on it) VA, sorry again.
  2. [SOLVED] Latitude and longitude on bids ($bids)

    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:{}
  3. [SOLVED] Latitude and longitude on bids ($bids)

    For schedule_bids.php
  4. 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.
  5. Crewcenter modifications

    Oh ok, thanks
  6. Crewcenter modifications

    Hi, From time to time I've made several changes to the crewcenter of mark swan, in fact I modified more the visualization of the pirep, pilot settings, bids, in the dashboard part I did not change much, I'm not very good in php but I tried to do with that's good. Flight report - Pirep One cool thing about the pirep was that I added on the map an image that goes from the place of departure until the arrival, to better understand view this gif: https://gyazo.com/87b24dd1832c644c7d428a892f98f730 Reservations - Bids One cool thing about the bid was that I added the 'Stream on Twitch' button, it works like this: When a pilot presses it appears a form (http://prntscr.com/hwlu0q) telling him to put his twitch user, when he saves it appears in the VA news saying that this pilot is doing live in twitch, I had the idea of this system because of vAMSYS, because they have it, then I decided to do it too. It was to have the same map system in the bids but it is not working on this page, I do not know why, it just goes blank. I also changed airmail, airmail was one of the most difficult. Airmail - Inbox Airmail - Message Thread Airmail - Compose Airmail - Folder Menu I created a page just for the things of folders, so it has how to create a folder, delete and edit. Airmail - Reply Message Airmail - Settings Airmail - Message Success I want to thank you again for @LeonardIGO4036, @web541, @RuiMiguel, who helped me make the custom map. There are many more people who helped me to do other things, but I can not name everyone but thank you.
  7. [Free] CrewCenter - Modern and responsive pilot center

    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
  8. Avatar Change message / error

    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
  9. Map is not showing on the bids page

    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. 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_bid.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.
  10. [SOLVED] Route Map on BID layout

    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.
  11. [SOLVED] Route Map on BID layout

    @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)
  12. [SOLVED] Route Map on BID layout

    Worked in bid page?
  13. Aviation Weather V1.0

    This module is for phpVMS 5.5 of Simpilot, you have another version of phpVMS. I recommend that you use phpVMS 5.5. Click Here
  14. [SOLVED] Route Map on BID layout

    I do not think there's anything in my core_htmlhead.php But it is also giving an error in the console that is missing the APIKey, but I do not know where to put. Errors on the chrome console: Uncaught Error: Graph container element not found at d [as constructor] (morris.min.js:6) at d.c [as constructor] (morris.min.js:6) at new d (morris.min.js:6) at HTMLDocument.<anonymous> (dashboard.js:127) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.I (jquery.min.js:2) Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys ZB.j @ util.js:229 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
  15. FltbookSystem issue

    Have you changed anything in the confirmbid.php file?