-
Posts
2284 -
Joined
-
Last visited
-
Days Won
2
Everything posted by mark1million
-
Schedules Puller from Flightaware of Flight radar
mark1million posted a topic in General Discussions
Hey guys, Its been a while Has anyone managed to get a schedules scraper working, there was one a few years ago using flight aware, what are people using now to pull data? Thanks, Mark. -
If i remember right what i did was put the flightboard code on a separate php page so in the root of your install, then all i did was include that page where i wanted the flight board to show up. I put the include in a div and used javascript to auto refresh it. So in my case it was this at the top of the page frontpage_main.php <script type="text/javascript"> setInterval(function() { $("#fboard").load(location.href+" #fboard>*",""); }, 60000); </script> And where i wanted the flight board to show up, <div id="fboard"><?php include 'flightboard.php';?></div> There are probably better ways to get this accomplished but this works in every browser without problems, you can also look at using jquery Hope that helps.
-
Hey Cor are you looking for just the flights in your acars system or something else? If its just on your site i can supply you with some code no problem, I have the two boards on my sites. jetva.co.uk and tuivirtual.com
-
Hi, you need to comment out the event listener <?php class TopPilot extends CodonModule { public static $tour_center = 1; // 0:if no tour system -or- 1:for SimpilotGroup Tour Center -or- 2:for CrazyCreatives Tour Module public $title = 'Top Pilots'; // public function __construct() { // CodonEvent::addListener('TopPilot', array('pirep_filed')); //} public function EventListener($eventinfo) { if($eventinfo[0] == 'pirep_filed') { self::refresh_month_stats(); } } Every time a pirep is filed it recalculates the data which caused a massive delay. You will then need to run a cron every hour or 5 hours to update the stats manually. Give that a try if it works i can tell you how to manually run the update of stats.
-
Ok so that's a no go. One other thing to try is do you have the top pilot module installed. This is known to really slow down things when a pirep is sent. If you do the I can tell you a work round.
-
Install a free monitor first this really gives you an insight in to what queries are slowing your site down, https://www.solarwinds.com/database-performance-analyzer
-
You need to edit your my.cnf configuration file for your mysql server, find the fine tuning section, MAKE A BACKUP FIRST, These are my settings for guidance they may not work for you so change one thing at a time and test out. # # * Fine Tuning # key_buffer = 348M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 key_buffer = 512M table_cache = 1064 sort_buffer_size = 4M read_buffer_size = 1M read_rnd_buffer_size = 8M myisam_sort_buffer_size = 64M thread_cache_size = 8 query_cache_size = 128M query_cache_type=1 query_cache_limit=4194304 long_query_time = 3 innodb_buffer_pool_size = 3G # Try number of CPU's*2 for thread_concurrency thread_concurrency = 16 table_open_cache =200 [isamchk] key_buffer = 128M sort_buffer_size = 128M read_buffer = 2M write_buffer = 2M
-
SMTP should be the following, # Add multiple SMTP servers by separating them with ; Config::Set('EMAIL_SMTP_SERVERS', 'smtp.gmail.com'); Config::Set('EMAIL_SMTP_PORT', '465'); Config::Set('EMAIL_SMTP_USE_AUTH', true); Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps Config::Set('EMAIL_SMTP_USER', youremailaddress'); Config::Set('EMAIL_SMTP_PASS', 'yourpassword'); Google API key for what?
-
If your pirep database is in the 10's of thousands it can take a while to process, increase your database memory and fine tune the other parameters. This what we had to do and after that no problem at all.
-
Xacars does not support https, you can run both protocol 443 and 80 for users of xacars.
-
And we are STILL active 8 years later
-
Anyone else get a email from Google saying they are going to charge for the api access to their maps? I can verify this is true and genuine, they will allow a certain limit of access up to a value of $200, after this they will start to charge you, this new process requires you have a valid credit card or the like linked to your maps api account. Just letting you know what i found out.
-
Ha ha :) If you have the entrance exam you generally find that's all the spam protection you will ever need. I have never had any spam registrations.
-
There was an error adding the airport | Help!!
mark1million replied to ItzKV's topic in Support Forum
Name Perth International Airport Country AU Latt -31.940300 Long 115.967003 -
There was an error adding the airport | Help!!
mark1million replied to ItzKV's topic in Support Forum
What airport are you trying to add? just make sure the coordinates are in the correct format -
There was an error adding the airport | Help!!
mark1million replied to ItzKV's topic in Support Forum
Just add it manually with the coordinates found on Google or something. -
Sorry chaps been crazy busy here. To remove Captcha from the native registration do the following, registrationmaindform.tpl or php Back up your files before editing i take no responsibility if your site breaks! Find the following and delete it or just comment it out. <dt>ReCaptcha</dt> <dd> <script type="text/javascript"> var RecaptchaOptions = { theme : 'white' }; </script> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </dd> <dt></dt> Go to the Core>Modules>Registration>registration.php and remove of comment out this as i have, /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ If you have Davids Entrance Exam you need to edit some more files but because it used the native phpVms registration process then you will need to edit that also in the core modules registration registration.php as well. To remove from the entrance exam you need to edit the following in the entrance folder of your skin or template where ever you installed it. registration_form.php and entrance_form.php, remove this from both. <dt>reCaptcha</dt> <dd> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> <p class="error">* Please note these are required fields and must be completed to register.</p> </dd> <dt></dt> remove this same thing from both those files Finally in teh Core>modules>Entrance> Entrance.php remove the following or comment it out as i have. /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ This will remove Captcha from your registration process. Back up your files before editing i take no responsibility if your site breaks!
-
Quick update, I have the entrance exam by David, I have managed to fully remove ReCaptcha from the normal registration process and the entrance exam process. If your stuck and want to know how just post here, its easy enough with only a few edits.
-
Google are removing the V1 recaptcha from use on the 31st of this month. Two questions, how do i recode for V2 or disable in the registrations. Has this been answered before?
-
I got version 1, anyone know of a hook to use as it used to work, I don't know how it worked but it did as nothing is there for the check.
-
George can you help he please with this solution?
-
I dont seem to have the event listener in the toup.php module, i must have changes something ages ago. Do you have the event listener piece of code?
-
Since Daves is no longer available does anyone have the code i can look at for the auto credit of a flight for the tour system?
-
That setting will clear your recent filed pireps not clear the acars table, if you want to clear that table then go to the admin and settings there is a link there to manually clear it or run it as a cron job.
-
update the modules with extension php not tpl