Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. The app.config.php file in in root/core/ folder
  2. You can create a loop using only two airfields - kjfk - klax - kjfk
  3. You are looking for the local.config.php file which should be in - root/core/
  4. If you mean new pilots to the VA, there is a default function already built in, the usage for it is on the frontpage of the default skin.
  5. Looks like you are using some non-supported airfields, when I try to get the map you are calling directly i get
  6. The acarsdata table holds the pilot id. You can write a sql function to delete the row and call it when you want to. Something like -> function delete_pilotdata($pilotid) { $query = "DELETE FROM phpvms_acarsdata WHERE pilotid='$pilotid'"; DB::query($query); } inside of a data class would do it for you. Call that function from your acars module you are building and include the pilot id in the call.
  7. Just give them access to the admin panel but none of the functions, the event addon should show up in the menu but nothing else.
  8. I can't see it as I do not have a login but it sounds like a skinning issue. The templates need to be intergrated into your skin.
  9. You need to contact your host to have it adjusted but with a free host your request will probably fall on deaf ears.
  10. Ah, I see said the blind man.
  11. You can take the past event section out of the index template, actually you can edit that template to whatever you would like it to be. As far as limiting the number of event call backs you could change the database requests and add some parameters to you function within the module Module index function could be changed to public function index($howmany) { $this->set('events', EventsData::get_upcoming_events($howmany)); $this->show('events/events_index.tpl'); } and in the data class you could change the get_upcoming events function to public function get_upcoming_events($howmany) { $query = "SELECT * FROM events WHERE date >= NOW() ORDER BY date ASC LIMIT $howmany"; return DB::get_results($query); } Then you should be able to call MainController::Run('events', 'index(how many you want)') and get the numkber of returns you want. I removed the past events past out of the datacall for the index so if you do not remove it from the template you will get an undefined variable error. You canmak the same type of modifications to the past events portion as well. Untested so you may have to adjust the code some.
  12. You could add a couple new functions to the module and data class Maybe something like this in your module file public function worst_landings($howmany) { $this->set('stats', TouchdownStatsData::get_worst_stats($howmany)); $this->show('touchdownstats/touchdownstats_index.tpl'); } And something like this in your data class public function get_worst_stats($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' ORDER BY landingrate ASC LIMIT $howmany"; return DB::get_results($query); }
  13. Did you put it in your registration form template right before the call for the reCaptcha? I could not get it to work form the module...
  14. You can include an instance of phpvms within the page by using <?php include_once'path to /codon.config.php'; ?> then the native functions of phpvms will be available to you in that page. i have not tried to intergrate it with joomla so I do not know if there are any overlapping commands. If there are like commands in joomla and phpvms you will get some errors and will have to do some renaming.
  15. It is probably your server - I would check and see what the ini setting for fsockopen is. What type of hosting do you have. (ie dedicated, vps, shared, free,...)
  16. Sorry, but I don't see it....
  17. The situation with westjetvirtual.net was caused by only one thing(person) - The owner of the nearly dead virtualwestjet - I had been moving forward with WestJet until he got invloved. - You can follow the journey on my blog at www.westjetvirtual.net - There are more updates coming this week. westjetvirtual.org has also been removed from the simmiles network I noticed this week. I believe the same individual was behind that action. Upside of the whole thing - All the pilots wanted to continue as a group so I quickly created a new site and we are now well over 100 active members.
  18. You are going to have to intergrate a new search function into the js for that panel. You may be able to use parts of the module I wrote for schedule searches for airline sand airframes here -> http://forum.phpvms.net/topic/2197-schedule-search-airline-aircraft-arrival-departure/
  19. - It took me a bit too, never did find it. I read through the how to at reCaptcha and followed their guidelines and got it to work. I put it right before the reCaptcha section of my registration form. <script type="text/javascript"> var RecaptchaOptions = { theme : 'white' }; </script> <label>reCaptcha</label> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?>
  20. I never even thought about it but found this with a quick google search. Pretty cool option. http://wiki.recaptcha.net/index.php/Theme
  21. That config item only affects how long the flight is displayed after it is completed.
  22. Have you contacted your host? Do you mean that other users are using the same sql server without issue?
  23. The functions you are looking for are within the schedule_results.tpl file. You can intergrate those into your RealScheduleLite template files.
  24. If you look in Schedules.php and follow the function that gives you the results for the schedules index you will find that it ends up using the showSchedules() function. There is no data call for getting the information for your airlines within that function. You will have to add the data call and assign it to a variable in your template. ie - $allairlines Something like this should work. $this->set('allairlines', OperationsData::GetAllAirlines()); Then in your template the $allairlines will be populated with the airlines from your database.
×
×
  • Create New...