-
Posts
1954 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by TAV1702
-
And where did you put this little sql query at? In the stats data class? And if so where did you insert it at? Here is what I am looking at as we speak. public static function TotalPaxCarried($airline_code = '') { $key = 'total_pax_carried'; if ($airline_code != '') { $key .= '_' . $airline_code; } $total = CodonCache::read($key); if ($total === false) { $params = array('table' => TABLE_PREFIX . 'pireps', 'fields' => 'SUM(`load`) as `total`', 'where' => array('accepted' => PIREP_ACCEPTED, 'flighttype' => 'P'), ); if (!empty($airline_code)) { $params['where']['code'] = $airline_code; $params['group'] = 'code'; } $sql = DB::build_select($params); $results = DB::get_results($sql); if (!$results) { $total = 0; } else { $total = $results[0]->total; } CodonCache::write($key, $total, '15minute'); } return $total; }
-
I have the exact same problem as the original author. I just two day ago set up a few cargo flights and my passenger count went through the roof with only 2 flights done. I am pulling the stats exactly how he did originally. And I thought it was odd so I went and looked at the schedules just to verify that they ARE infact selected as cargo flights and not charter or passenger. All the cargo flights are all selected as cargo. I do have two separate airlines set up. Neither of which does cargo specific schedules. Cargo flights just end up where they end up at in either airline.
-
Well after many failed attempts, I am not sure what I was doing wrong. I could get the button to work when I clicked check all, but when I clicked the delete all button, it would never work. If any of you php/sql wizards would like to have a try at it, that would be the cats ass!
-
Yeah it is not bad, but when you go adding features, the side area gets in the way REAL fast. I hid mine on all pages but the front page. Was a PITA to do, but it works. Maybe sooner or later I will get it off of my dev server and make it live so people can see it.
-
Personally, I am thinking of ditching support on my site for both of those and only allowing KACARS, FSFK and FSPAX. Now that I know how to use KACARS, it is pretty dam sweet..... Ok sorry for the thread hijacking. I will shut up now. Sorry guys.
-
Have you guys also noticed that when using XACARS or even FSACARS that the guest count on website goes up and up into the 40's when doing a flight? I just caught on to this a couple of days ago.
-
I got this to work. Thanks for the fix. Now it shows me only logged in one time as it should. But in the pilot's online/Guests online it shows 2 pilots online and I am the only one logged in at this time. Issue on my end maybe?
-
Ahhh ty very much. Not sure how I missed that. And you are welcome for the kudos. And thanks again. I will get that fix in asap. Ray
-
Mark, have you updated this any?
-
Hi guys. I have a situation that is said to have been fixed, but I must beg to differ. When using KACARS, I am logged on to my website two times. ACARS map and everything else works great! I must say, now that I have been using KACARS, I really like it. Kudos!
-
I like your fleet list. That is pretty sweet. I am sure that will be a real nice site when all is said and done. Great start so far!
-
I think it is there just to be there. Is kind of a cool little thing.
-
Ahh it's no biggie. I forgot that the template I am using was made prior to FSACARS support being dropped. And I don't think the websites are converting the fuel coming in from XACARS either. I just did a flight using XACARS and used like 1100 some odd gallons of fuel and got charged for 20061.7 it says gallons but that can not be right. The flight lost over 111k When I went in and changed the figure from what XACARS reported to what know I burnt according to flight sim, the flight made good money. I am sure this is for another thread though.
-
Imagine that. I never thought of looking there. I looked everywhere but. Thanks for pointing that out.
-
Does anyone know if there is a useable public function to get the rate of pay for a flight and show it on the Briefing page? I have searched and came up blank. I am pretty sure that if there is, I can get it to show on the page. Thanks in advance either way. Ray
-
Ahh see Tom, lol I would have never guessed I could add a style to them arrays. Boy do I have some learning to do. Glad I am in php class this term in school. On a side not, I integrated photobucket in to the forum and it works great! However there was one error. It used capitol IMG tag and the forum did not like that at all. I went in and added the arrays for capitol IMG tag and guess what? It worked! If interested in the photobucket thing let me know.
-
Still no such luck on getting the image code to show once the pic is uploaded. I am guessing photobucket stores the photo info in a database and then calls the info back up from the database and echos the code on site. That part looses me.
-
Already got rid of them. I added them exactly how I showed the stream bbCOde. I am pretty sure I know why that one did not work. I never coded the embed for the media player. Now as for aligning images with the code and that type of such, I am not sure how to build those arrays to be honest.
-
Now that would work if the money trickled back down to the VA. I can see your point there. Good one for sure. That was kind of my whole point in the beginning. The more money can trickle back down to the VA, the more it would allow a VA to grow if they were running it as a real airline basically. And, it would give the pilot something to spend pilot cash on right?
-
Nope. No dice Tom. All I am attempting to do is to be able to align an image to the left and text will line up beside it instead of below it. There are several others that would be nice too like to be able to change font colors and such. Maybe a youtube bbCode. Bumping in to many restrictions as I go. I may convert to another forum and use this one on my test site to keep tweaking it. It is real close to where it needs to be. The only nag I have about using another forum is having to skin it and hook the registration. YUCK! This forum here is clean and easy to skin to match the site it is put in to.
-
Hmm That's exactly how I did it too and they did not work out. I will go and try to add a couple again and see what happens. I guess the one I was really after was to be able to align images to the left of a forum post, and there was one or two more that I wanted. I will report back if I get it working or not. Thanks Tom!
-
I removed them because I could not get them to work, but I will gladly paste a couple here how I tried to do it before. "<stream>" => "[stream]" "</stream>" => "[/stream]", "[stream]" => "<stream>" "[/stream]" => "</stream>", I do not recall what all ones I tried now. That is just one example there of how I tried to do it. I also took note in Forum.php of these couple lines $message = DB::escape(nl2br(ForumData::bb(strip_tags($this->post->message, '<p><a><b><i><em><strong><br><ul><ol><li>')))); I even added the html equiv to a couple of them in here too and I could not get them to work. I wish I could remember what the others were that I tried. If I recall for sure, I will gladly come back and post. Thanks for having a look Tom. I appreciate it. Ray
-
Yeah I forgot about that Nabeel. I am going to phase it out. Any way to get the website to stop generating a config file for it? I can easy remove the download link from the pilot center.
-
I have created a module to upload images for staff to use in forum posts and other areas of the site. What I want the script to do is echo out a html link for the file that was uploaded without actually parsing the code. I can get it to echo code and NOT parse it, but for the life of me I can not get it to echo the file name back to me. Can one of you experts take a peak at this for me? And please don't laugh. It was my first real true honest shot at a cool module. <?php $target = "files/upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; //This is our size condition if ($uploaded_size > 350000) { echo "Your file is too large.<br>"; $ok=0; } //This is our limit file type condition if ($uploaded_type =="text/php") { echo "No PHP files<br>"; $ok=0; } //Here we check that $ok was not set to 0 by an error if ($ok==0) { echo "Sorry. Your file was not uploaded."; } //If everything is ok we try to upload it else { if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "<center>"; echo "Your file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded."; echo "<br />"; echo "Click <a href='profile'>here</a> to return to the Pilot Center."; echo "<br />"; $str = "<html><body>Junk</body></html>"; echo htmlspecialchars($str); echo "</center>"; echo "<br />"; } else { echo "Sorry, there was a problem uploading your file."; } } ?> I thought this bit . basename( $_FILES['uploadedfile']['name']). would echo the file name when it was uploaded but it does not. When it runs, all it says is Your file has been uploaded. what I actually want it to say is something like "Your file nascar.jpg has been uploaded." and then it would give them the html code to use in a forum post or news post. <a href="http://www.mysite/files/upload/nascar.jpg"> Much like photobucket does. Any chance I can get one of you expert coders to help me out on this one? It would be really great. Thanks in advance either way. Ray **EDIT** Let the record show that the original source code for the upload script is NOT mine. I got it from http://php.about.com/od/advancedphp/ss/php_file_upload.htm I just wanted to clear that up and give Kudos where Kudos are due.