Jump to content

TAV1702

Members
  • Posts

    1954
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by TAV1702

  1. It seems to me this would go hand in hand with limiting aircraft by rank. One issue we have currently with the aircraft deal is, the system will still allow a person to bid on a flight that he or she is not qualified to fly due to aircraft restrictions. I ran in to this issue once on my site before. SO yeah, I think you all are on to something here.
  2. Give it time man. If someone has an answer they will let you know. A lot of times, guys will have to get it working on their site first to be able to tell you how to do it.
  3. I have put the Delete All option on hold momentarily. The date the mail is sent is showing as yyyy/mm/dd in the Inbox. I found this in the inbox.tpl file <?php echo $data->date; ?> Is that server date? And if so how can I make the airmail show as mm/dd/yyyy instead? I tried to grab some code from the forum addon and make it work but it was a slight disaster.
  4. +1 Turtle. Thanks man. I had a go at it and with some minor tinkering, she looks real good on my site.
  5. GOT IT! Thanks Nabeel! To show the pilot pay the code is: <strong>Flight Value: </strong>$<?php echo $route->payforflight;?> I have to remember to use that print r thing. It has saved my bacon more than once now.
  6. Nope I don't think I traveled down that road Nabeel. I'll give that a go here in a few minutes. I think I tried every thing but that one.
  7. I un-marked this one as solved. It is kind of solved. I have played with code until I was blue in the face and I can not get this to pull the pilot pay for a flight one. Using the code suggested above, it does pull either the ticket price or cargo per unit charge and echos it, but it will not show the actual pilot pay.
  8. Ok thanks. Getting ready for class now for an hour. After that, I will give it a shot.
  9. Hey thanks! I'll take a look at it. Sorry for the slow reply. Was away this weekend getting engaged and all that good stuff.
  10. The airmail takes a little work, but can be adjusted. I worked on mine for quite some time to get it right. Don't give up on it. The best thing to do when trying to adjust the airmail is to NOT do what you did before and expect different results. One thing I did was made a new menu for AIRMail, ditched the inline style on each airmail tpl file and made it use my own style, and edited the hell out of the sent mail items tpl file. Oh I also edited the files to use sound notification on new mail. You have to understand that when Dave creates modules, he creates them with a generic style so they can be adjusted to a persons VA. Sometimes it takes a little work, but in the end, it will work out nice. I have been tweaking my AIRMail for about a year now and I still find myself adjusting it. The biggest thing I have tried to do to it yet is create a delete all button and it won't work. And +1. Good job. Looks real nice!
  11. It let me on this time. Filed as requested.
  12. Ok I'll go file one if I can login on that site. I tried to once before and for some reason I could not. Thanks for taking a peek at it for me. It was starting to get old checking my database once a day and adjusting flight types.
  13. No one else is having the issue that is talked about in the post that I gave the link to? I had it happen 3 more times this weekend while I was away.
  14. Hmmm that's odd. I am using the newest beta before this release a couple days ago and it is there. If it is not, then phpMyadmin is the best bet.
  15. Hey Nabeel, can you take a look at this for me and tell me if it is a bug or not? If it is, I will add it for you. If it is not, man do I got major issues. http://forum.phpvms.net/topic/4843-statistics-help-solved/page__st__20
  16. Try this. Copy your current sidearea and save it to a notepad or dreamweaver, what ever you use and then paste this right over your side area. Now Replace everything in your sidearea with what I have put here. I know it works. I just tried it on a test install. <!-- Sidearea Starts --> <div id="sidearea"> <h2>Latest News!</h2> <?php MainController::Run('News', 'ShowNewsFront', 1); ?> <br /> <h2>Newest Pilots></h2> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <br /> <h2>Pilots Online</h2> <?php $shown = array(); foreach($usersonline as $pilot) { if(in_array($pilot->pilotid, $shown)) continue; else $shown[] = $pilot->pilotid; echo "<p>"; echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; echo " {$pilot->firstname} {$pilot->lastname}<br />"; echo "</p>"; } ?> <h4>Guests Online</h4> <p class="txt-red10">Currently <?php echo count($guestsonline);?> guest(s) visiting. </ul> </div> <!-- Sidearea Ends --> </div>
  17. It should have worked. I could copy and paste my code for you but it won't work since I renamed all of my divs. That is the only place that can go. Yeah please do show us a screenshot. It will be handy. Might have a bum div tag.
  18. You know what...... I just noticed, it is showing ticket price for passengers or cargo charge. Ijust saw one flight valued at $2.95 lol I wonder how many pilots would turn down that job. And at $2.95 that same flight actually pays the pilot like $1100 I believe it was. That works if we wish to show how much we are charging the passenger or cargo for the flight. I need to figure out how to make it show me how much cash the pilot will be paid for said flight. Not sure if we can do that or not with the pilot pay by the hour or per flight. I am sure there is a way though. The trick is to figure it out.
  19. Nice Jeff! Thanks man. That worked out great.
  20. or you can export a csv file right from the admin panel of phpVMS for the aircraft by going to Admin/Airline Operations/Add & Edit Fleet look up in the top left corner it says export Aircraft and when you are done editing, you can import there as well. No need to go in to phpmyadmin really.
  21. Got it! I had a typo. I debugged it and now she works. <?php echo '<strong>Flight Type: </strong>'; if($route->flighttype=="P"){ echo "Passenger<br />"; } elseif($route->flighttype=="C"){ echo "Cargo<br />"; } else { echo "Charter<br />"; } ?> Now if Nabeel or some kind soul would chime in and tell us how to pull up the Flight Value part, I would be happier then could possibly be. Thanks for pointing me down the right path Nuclear.
  22. Ok so I tweaked it a tad and now I got it to echo charter as well, issue is, I did away with the elseif and went with another else echo and now all non passenger flights show up as Charter. I had figured that was going to be the result but tried it anyhow. <?php echo '<strong>Flight Type: </strong>'; if($route->flighttype=='P') echo 'Passenger<br />'; elseif($route-flighttype=='C') echo 'Cargo<br />'; else echo 'Charter<br />'; ?>
  23. The top one actually works out pretty good as far as the passengers part goes. It seems to ignore the Cargo and charter flights. If you have any ideas, I am game to try. I am also working on this as we speak. If I get it to work, I will let you know. Thanks for helping out on this one. Ray
  24. Hi everyone. I am working on yet another little project that I could use a hand with. In the schedule results.tpl file, I have added the following to show what type of flight it is, Cargo, Passenger, or charter. <?php echo ($route->flighttype=='') ? '' : '<strong>Flight Type: </strong>'.$route->flighttype.'<br />' ?> Now I am curious. Can an if statement be included so say if flghttype = C echo Cargo? Right now the way I have it, it simply shows the results as C, P, or H. I would like to add another code like the one above to show how much it pays for that flight but have yet to get that one to work. Maybe I can ix the code from the schedules are in the admin panel? So in all, the schedule results page would show on the left like SYX1067 (KMKE - KSDF) Departure: 8:05 AM CDT Arrival: 10:45 AM EDT Equipment: B1900D (N801SK) Distance: 303.318nm Days Flown: T W Th F Flight Type: Charter Pay for Flight: $765
  25. Yep. That worked. Like I said, I edited the wrong files. I had so many different things going on in here I confused my self somehow. Got it all squared away and was getting ready to post I got it fixed. You beat me to it. Thanks for the help today Tom. I appreciate it. Works a treat now.
×
×
  • Create New...