Jump to content

shakamonkey88

Moderators
  • Posts

    306
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by shakamonkey88

  1. Good start but the website needs work dude. Why is the top banner taking up the entire screen?? Regardless of what webpage you're on, you're greeted with the following which gets annopying really quick having to scroll past it every dang time: I also think you need to decide on one, clear, well laid out navigation bar/menu. Is there any need to have two? You have a full screen one on the top right, and then a drop-down menu on the left. This creates a lot of uneccessary duplication of links. For example, you have the login and sign-up buttons on the top left, on every top banner slide, AND on the other nav menu (located top-right). Additionally, each webpage loads up SO much information on every single page that it becomes quite exhausting really. Each page has you scrolling for miles and miles. I like the ideas you have but there's just too much stuff here. Too much variation, with no clear "one theme" going on. It's like you've been let loose, gone crazy and just chucked everything at it. Don't take this post as negatively - just some thoughts from an outsider looking in. Good effort so far though and I wish you and your VA the best!
  2. Probably not using the corrrect version of phpVMS for that particular skin.
  3. Does anyone have both CC Flight Tracker and CC Route Map? I have a question regarding showing actual flight path being flown - I can't get it to show even after following the step in the installation instructions. Yes, I have posted in the CC forums but that place is pretty much dead so asking here first.
  4. It will be returning. It's just on the backburner until v7 releases from beta.
  5. @Ither - Yup, and this is why people mention CC Flight Position Tracker. It will populate that rawdata field in the table - this is what I use coupled with SmartCARS.
  6. Are you seriously bumping this after only 20 hours? Wow...
  7. This topic has been locked and links removed. Just like last time, you're breaking the license of the skin's author, you're re-selling modules from Crazy Creatives that you've tried to hide by renaming the header links, and you STILL have stolen my highcharts Pirep Alt/Speed graph chart (even after I called you out last time about it). If permission to use someone elses work has been approved, include that approval in your work or check with show proof of this to admins before posting. You cannot include paid modules into something you're selling. Like these examples: This is the last warning before I ban your account.
  8. Just get a VPS and then you can control the lot.
  9. This is mine (core/modules/registration/registration.php) - feel free to have it. It's cut out all the spam for us. <?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 Registration extends CodonModule { public function HTMLHead() { /*Show our password strength checker */ if($this->get->page == 'register') { $this->renderTemplate('registration_javascript.tpl'); } } public function index() { //updated to Google noCaptcha 1/15 require_once CORE_LIB_PATH.'/recaptcha/recaptchalib.php'; if(Auth::LoggedIn()) { // Make sure they don't over-ride it $this->render('login_already.tpl'); return; } if(isset($_POST['submit'])) { $this->ProcessRegistration(); } else { $this->ShowForm(); } } protected function ShowForm() { //Google reCaptcha //updated to Google noCaptcha 1/15 $this->set('sitekey', RECAPTCHA_PUBLIC_KEY); $this->set('lang', 'en'); $field_list = RegistrationData::GetCustomFields(); $this->set('extrafields', $field_list); $this->set('field_list', $field_list); $airline_list = OperationsData::getAllAirlines(true); $this->set('allairlines', $airline_list); $this->set('airline_list', $airline_list); $hub_list = OperationsData::getAllHubs(); $this->set('allhubs', $hub_list); $this->set('hub_list', $hub_list); $country_list = Countries::getAllCountries(); $this->set('countries', $country_list); $this->set('country_list', $country_list); $this->render('registration_mainform.tpl'); } /** * Registration::ProcessRegistration() * * @return */ protected function ProcessRegistration() { // Yes, there was an error if(!$this->VerifyData()) { $this->ShowForm(); return; } $data = array( 'firstname' => $this->post->firstname, 'lastname' => $this->post->lastname, 'email' => $this->post->email, 'password' => $this->post->password1, 'code' => $this->post->code, 'location' => $this->post->location, 'hub' => $this->post->hub, 'confirm' => false ); // Check email for known spammer $url = 'http://www.stopforumspam.com/api?email='.$data['email'].'&ip='.$_SERVER['REMOTE_ADDR']; $file = new CodonWebService(); $contents = $file->get($url); $response = simplexml_load_string($contents); $reject = FALSE; foreach($response->appears as $row) { if($row == 'yes'){$reject = TRUE;} } if($reject == TRUE){ $this->set('message', 'Your email or IP address appears on our spam database, we therefore assume you are a spammer and are rejecting your registration request. If you feel this is incorrect please contact us.'); $this->render('core_error.tpl'); //send email that spam registration rejected $email = 'YOUR@EMAILHERE.COM'; $sub = 'Spam Registration Rejected';; $message = 'Spam pilot registration rejected using email '.$data['email'].' and IP address '.$_SERVER['REMOTE_ADDR'].' on '.date('m/d/Y', time()).' at '.date('g:ia', time()); Util::SendEmail($email, $sub, $message); return false; } //end spam check if(CodonEvent::Dispatch('registration_precomplete', 'Registration', $_POST) == false) { return false; } $ret = RegistrationData::CheckUserEmail($data['email']); if($ret) { $this->set('error', Lang::gs('email.inuse')); $this->render('registration_error.tpl'); return false; } $val = RegistrationData::AddUser($data); if($val == false) { $this->set('error', RegistrationData::$error); $this->render('registration_error.tpl'); return; } else { $pilotid = RegistrationData::$pilotid; /* Automatically confirm them if that option is set */ if(Config::Get('PILOT_AUTO_CONFIRM') == true) { PilotData::AcceptPilot($pilotid); RanksData::CalculatePilotRanks(); $pilot = PilotData::getPilotData($pilotid); $this->set('pilot', $pilot); $this->render('registration_autoconfirm.tpl'); } else { /* Otherwise, wait until an admin confirms the registration */ RegistrationData::SendEmailConfirm($email, $firstname, $lastname); $this->render('registration_sentconfirmation.tpl'); } } CodonEvent::Dispatch('registration_complete', 'Registration', $_POST); // Registration email/show user is waiting for confirmation $sub = 'A user has registered'; $message = "The user {$data['firstname']} {$data['lastname']} ({$data['email']}) has registered, and is awaiting confirmation."; $email = Config::Get('EMAIL_NEW_REGISTRATION'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); // Send email to user $this->set('firstname', $data['firstname']); $this->set('lastname', $data['lastname']); $this->set('userinfo', $data); $message = Template::Get('email_registered.tpl', true); Util::SendEmail($data['email'], 'Registration at '.SITE_NAME, $message); $rss = new RSSFeed('Latest Pilot Registrations', SITE_URL, 'The latest pilot registrations'); $pilot_list = PilotData::GetLatestPilots(); foreach($pilot_list as $pilot) { $rss->AddItem('Pilot '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid) . ' ('.$pilot->firstname .' ' . $pilot->lastname.')', SITE_URL.'/admin/index.php?admin=pendingpilots','',''); } $rss->BuildFeed(LIB_PATH.'/rss/latestpilots.rss'); } /* * Process all the registration data */ protected function VerifyData() { $error = false; //Google reCaptcha //updated to Google noCaptcha 1/15 $resp = null; $reCaptcha = new ReCaptcha(RECAPTCHA_PRIVATE_KEY); // Was there a reCAPTCHA response? if ($_POST["g-recaptcha-response"]) { $resp = $reCaptcha->verifyResponse( $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); } //check if reCaptcha response was valid if ($resp == null) { $error = true; $this->set('captcha_error', 'reCaptcha Validation Error'); } //end Google reCaptcha /* Check the firstname and last name */ if($this->post->firstname == '') { $error = true; $this->set('firstname_error', true); } else { $this->set('firstname_error', ''); } /* Check the last name */ if($this->post->lastname == '') { $error = true; $this->set('lastname_error', true); } else { $this->set('lastname_error', ''); } /* Check the email address */ if(filter_var($this->post->email, FILTER_VALIDATE_EMAIL) == false) { $error = true; $this->set('email_error', true); } else { $this->set('email_error', ''); } /* Check the location */ if($this->post->location == '') { $error = true; $this->set('location_error', true); } else { $this->set('location_error', ''); } // Check password length if(strlen($this->post->password1) <= 5) { $error = true; $this->set('password_error', 'The password is too short!'); } else { $this->set('password_error', ''); } // Check is passwords are the same if($this->post->password1 != $this->post->password2) { $error = true; $this->set('password_error', 'The passwords do not match!'); } else { $this->set('password_error', ''); } //Get customs fields $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 == '') { $error = true; $this->set('custom_'.$field->fieldname.'_error', true); } else { $this->set('custom_'.$field->fieldname.'_error', ''); } } } if($error == true) { return false; } return true; } } Just change the email in the spam part - in the above code, it shows as YOUR@EMAILHERE.COM
  10. Yes, I'm using it and it's working well. I'm using simpilots code in his last reply in this thread. It's inserted just after line 99, but this might be a little different to your registration.php
  11. I swear people just don't bother reading the thread half the time...
  12. You should look into using checkWX - https://apidocs.checkwx.com/ I added a right-hand sidebar that slides out when you click on it to this theme to quickly show METAR at all hubs using checkWX and their API: I'm working on a METAR search page in my spare time: It's pretty easy to implement. Just read the API instructions as linked in my post.
  13. No, it's a bootstrap template called AdminLTE that he converted for phpvms use: https://adminlte.io/
  14. Have you tried running install/checkinstall.php ? It might throw up some possibilities why. Also might be worth enabling the error log, trying to enter a schedule (manually) and see what gets written to the error log. It might be worth doing that before attempting all the suggestions here. The fact that you say you can't even add them manully makes me think it goes further than just an issue with a CSV file. If you want, PM some details and I'll have a closer look into it for you?
  15. You'll need to clarify which version you mean specifically when you say "phpvms 3" phpVMS versions 2.1.x - original version - worked with php 4 - no longer in development 2 - legacy support for php 7 - no longer in development 5.5.2 - Simpilot version - works with php 5 5.5.2.72 - Simpilot version updated to work with php 7.2 (possibly 7.0 & 7.1 also) 7.0 - newest version - still in development - probably not good for a production environment for now
  16. Does this post help at all? https://forum.crazycreatives.com/topic/384-openstreetmap-version-for-flight-position-tracker-tour-center-and-airport-info-extended-released I don't know what's going on over there to be honest. He hasn't logged in for 3 months and no word from him anywhere else. Some other guy has taken over but doesn't really know how to answer half the questions nor know what he's actually doing. The place is getting overrun with spam. I pinged the other guy through the stickied post about spam (and how he is going to be around a lot more often to deal with it - ha!) and he ended up giving me a forum warning along with some half gibberish answer. Sad to see that place in that state. It would be nice to open up a support area for their customers here. At least this place is more active and maintained. Hope you get your issue sorted. I'm on holiday for the next two weeks but if you're no further forward, I can help when I'm back home. I helped Nabeel with the changeover to OSM.
  17. Probably need to clear your cache in your browser. You can always just press "CTRL + F5" and that will clear cache for that page on refresh.
  18. It is a shame to find such negative thoughts here and it has taken me a couple of days to try and process my thoughts as to what to say. What saddens me more is the fact that people are wanting to quit these forums entirely - that's certainly something I don't want to happen. I'm not replying to argue, but merely respond to a couple of things from my side of the fence. I've only ever wanted to do what is best for the forums and the users here. Period. Maybe sometimes that has come across incorrectly or perceived in a way that I didn't intend, but please be rest assured that no malign intentions were meant. You are correct that I have also replied in the same theads as you Jim and have corrected a few things but that is all I mean by it. I have looked back through my interactions and cannot see why you'd think that ALL of my repsonses have been "100% negative" - I think that is a little unfair to say. I have only meant to correct you when I have seen things that aren't right. One lately was this thread, for example, (you can see that Nabeel also stated that things were different in v7 https://forum.phpvms.net/topic/26691-manual-pirep-screen/) - I also can't see that being 100% negative, merely just adding to the discussion. Additionally, you even thanked me for the heads up! I respond to LOTS of things here so I don't know why you're trying to make it look like I chase you around the forums just to post something negative - "the last 4 times" I've posted something in response to you spans alsmost 2 years. Here's one of them where I gave you more information (ie. not just being negative) - https://forum.phpvms.net/topic/25573-google-maps-conversion/page/2/?tab=comments#comment-133936 - another occasion where you, again, thanked me for the info I linked you! To give a few answers to your questions. Yes, I also moderate the discord server, I am also the moderator for r/flightsim on reddit, and I often volunteer my free time to help out with organising the free flightsim expo here in the UK, as well as running a bush virtual airline based in Alaska. I am in my mid 30s and have recently moved back into the I.T industry after being a Customer Service Manager for a large UK based airline. To say that you are "only a member" and that I am moderator does not give me any "upper hand" - I have never used or abused my moderator status. In fact, the only thing I have used is the removal of hundreds of spam posts we had when we had an influx of them around 12 months ago (sometimes up until the early hours sorting it for everyone). I also occasionally move a post from v7 support into phpVMS classic support when users have accidently posted in the wrong section of the forums. To be fair, it is the users that have the most power as all you guys ARE what makes this community here - without you, there wouldn't be anything at all. In fact, I have ALWAYS been an advocate for allowing a community to not have overzealous controlling by moderators of forums. The biggest case was sticking up for the users and community during the FS Labs fiasco when I wrote our open letter as seen here: https://www.reddit.com/r/flightsim/comments/8nxcl5/an_open_letter_to_flight_sim_labs/ I'm not sre what you mean about my "copy paste" posts - I have never copied and pasted a post that I have already made. It is a shame that you've aired this out like this Jim and I feel you have gone a little overboard. I would've hoped that you could have approached me directly and we could have easily talked it through rather than having to throw mud at each other like "read it sometime shaka, you may learn something". I feel it is more a misunderstaning of each other more than anything and I don't want to leave it on bad terms. Cor - I'm not sure what you're trying to get at or if you're trying to jump on the bandwagon. Again, I am only here to help each other. You have to appreciate though that we often have waves of new people asking the same old questions time again without searching the forums. I try to push people in the right direction rather than spoon-feeding them or doing the work for them. The best way to learn is trying and failing, trying and failing, until you succeed. I know that there are other prolific members here that have messaged me about the same thing - that we have had quite a few users join here and just demand answers without willing to put any effort in themselves. We have had a lot of (to quote another member) "demanding kids" join these forums who ultimately never go on to share what they have learned or help others. To answer your questions, Nabeel gave me the moderatorship, and quite hapily so. I struggled to get to sleep properly on Sunday as I kept thinking about this and decided to contact Nabeel. He has reassured me that there is nothing to worry about and that he does appreciate everything I do for helping out. Nevertheless, you're free to email him, but I'm not sure what you're trying to do - if it's anything I can answer, feel free to message me. I think it is best to keep this thread on track. If anyone wants to message me their responses, questions, concerns or want clarification on anything, please feel free to do so. You can message on here, on discord, hell if you want to phone me up and chat properly just PM me for my phone details - I have nothing to hide. "How lucky I am to have something that makes saying goodbye so hard" - Winnie The Pooh
  19. I'd recommend using highcharts. It works very well with phpvms installs and is easy to implement in place of the flash charts. See here as an example on a PIREP page:
  20. Not exactly the same with this Jim. Works slightly differently in phpvms v7 so be careful with how you're editing files. To OP: Be careful if you're already running a public VA on phpvms v7. It's still in beta and things can still easily break/change. You have been warned!
  21. People should just not use flash on their site at all. Period. And it isn't just Google Chrome Jim, it is also Mozilla too. Hell, even Adobe themselves are killing off flash next year. C'mon guys, move on from flash already!
×
×
  • Create New...