-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
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.
-
Looks like you are using some non-supported airfields, when I try to get the map you are calling directly i get
-
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.
-
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.
-
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.
-
You need to contact your host to have it adjusted but with a free host your request will probably fall on deaf ears.
-
Ah, I see said the blind man.
-
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.
-
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); }
-
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...
-
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.
- 1 reply
-
- 1
-
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,...)
-
Sorry, but I don't see it....
-
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.
-
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/
-
- 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); ?>
-
I never even thought about it but found this with a quick google search. Pretty cool option. http://wiki.recaptcha.net/index.php/Theme
-
That config item only affects how long the flight is displayed after it is completed.
-
Nice and clean.
-
Have you contacted your host? Do you mean that other users are using the same sql server without issue?
-
The functions you are looking for are within the schedule_results.tpl file. You can intergrate those into your RealScheduleLite template files.
-
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.
-
This was already addressed here -> http://forum.phpvms.net/topic/3603-installation-error-help-please/page__view__findpost__p__24677 You have some serious issues with your sql server, and your server in general. Have you heard back from your host? Are they able to configure the server correctly. If it were me after all the trouble you have had over the past week I would be looking for a new host.
-
Total pilots from country with flags problem
simpilot replied to david thompson's topic in Support Forum
There are a few things going on there. It looks like you are decaring a table twice at the start, and also the header row has no <tr></tr> tags. I did it a little differently and posted it below. You will have to fit it into a div on your template or determine the width in the table declaration. As far as things not staying on the same row, when you limit the width of a cell, like is done in the code you posted, the browser will break up the data to fit into the cell. It will do the same thing if the table is restricted to a certain width. <?php echo '<table cellspacing="1" cellpadding="1" border="1">'; echo '<tr>'; echo '<th align="left">Country Location</th>'; echo '<th align="center">Pilots</th>'; echo '</tr>'; $country_info = DB::get_results('SELECT COUNT(pilotid) as total, location FROM '.TABLE_PREFIX.'pilots GROUP BY location'); foreach($country_info as $country) { echo '<tr>'; echo '<td align= "left">'; echo '<img src="'.Countries::getCountryImage($country->location).'" /> '; echo Countries::getCountryName($country->location); echo '</td>'; echo '<td align="center">'; echo ' ('.$country->total.')'; echo '</td>'; echo '</tr>'; } echo '</table>'; ?> -
You can create a new background image of your liking, make sure it is saved in png format then load it up to your signatures folder. root/lib/signatures/background/yourbackground.png Then in your pilot center you can chose a new background using the edit profile function.