-
Posts
1726 -
Joined
-
Last visited
-
Days Won
4
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by servetas
-
I do not know if something like this can be done (directly getting a variable from a function without running it). What you can do is creating a new function in your module and call it in your frontpage using the following part of code: <?php MainController::Run('YOUR_MODULE_NAME', 'YOUR_FUNCTION_NAME', 'SET HERE ANY FUNCTION PARAMETERS IF ANY); ?> And anything you echo inside the function will be shown where you placed the above part of code.
-
Unfortunately now, the module allows your pilot's to purchase simple products (which can't be used in reality except the fact that they can be shown in their profile) and downloadable items.
-
What is your website url?
-
I cannot say that I have understood what do you mean exactly.. Could you please explain it a little bit better?
-
I would suggest changing the code as the above to make it more portable: <?php $last_location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED); $icao = $last_location->arricao; if(!$last_location) { echo ''; } else { ?> <br><br>Your current airport METAR: <i><?php echo file_get_contents("http://wx.ivao.aero/metar.php?id=$icao"); ?></i> <?php } ?> This allows you to change ICAO variable to anything you want such as $schedule->depicao or $schedule->arricao or anything else so you can have data from other locations too.
- 1 reply
-
- 1
-
I would suggest uploading your module on github to ensure that it won't be lost from the forum. What is the weather source? It would be great if you could decode clouds too.
-
That's correct. phpVMS-3 has not been released yet although there are some commits in David's github. I believe that we should wait until David announces anything.
-
The issue with recaptcha is happening in free web hosting providers due to their limits. Of course, there are paid hosting providers who may have set the same limits. In reality it does not have to do with the type of the server you are hosted on but it has to do with your server's settings. If you share with us your website url, we might be able to assist you..
-
Taking into consideration what t_bergman suggested and trying to make it more simple, can you give that a try? Open your pirep_viewreport.tpl and find this: echo $line .'<br />'; and replace it with: echo preg_replace('/\[[0-9]{2}:[0-9]{2}:[0-9]{2}\]/', '', $line) .'<br />';
-
Hello jooosed, I have sent you an email.
-
Hello jooosed, I have sent you an email.
-
This is what is reported by the acars software and storred into your pireps table. The only way to remove times is updating your phpvms pireps database table which has to be done for each pirep. Otherwise, I would suggest getting in touch with smartCars support team.
-
Where did you download your phpVMS from? The most stable version for PHP 5.6 is this: https://github.com/DavidJClark/phpvms_5.5.x As for the airport issue, do you have any Config::Set('PHPVMS_API_SERVER' set in your local.config.php file? If yes, what is its value? If not, add this: Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net');
-
Can you check if you have added the same lines more than once in your local.config.php file? Did you regenerated the signatures from the maintenance panel?
-
Could you please post a badge here in order to understand what do you mean exactly?
-
Which browser are you using? If you are using google Chrome, check this: https://productforums.google.com/forum/#!topic/chrome/7XBU6g6_Ktc The issue is more related with your computer itself.
-
Do you have antivirus installed? It is more like a computer issue and not a phpVMS one. Try disabling your antivirus.
-
What is your website url? Can you upload a random zip file and check if you can download it? It seems to me more like a server issue. Which browser do you use?
-
http://forum.phpvms.net/topic/23542-recaptcha-error/
-
Ok, try installing this version: https://github.com/DavidJClark/phpvms_5.5.x
-
Which version are you trying to install?
-
is possible have a global radar at our website
servetas replied to luisnog's topic in Virtual Airlines News
A query can created to check the ivao and vatsim wazzup. Could you please give an example of what do you wish to do?- 1 reply
-
- 1
-
Dear Marbach, Your support ticket has been already replied. You will have to place this: define ('REALBOOKING', X); in your local.config.php file and replace X with a number. For any further issue, please get back to the support ticket because support is not offered publicly.
-
Unfortunately, there is not any freeware module which allows you to do it. I assume that the bidding process should be updated and as a result, I would suggest you posting your question in the Paid Services Forum.
-
I decided to release a new freeware module which allows you to set a custom pilot id for your phpVMS pilots. Since 2010, I have seen a lot of members requesting to be able to set custom IDs to their pilots. This module allows you to do that but it is not that easy. Before being able to change a pilot's ID and in order to ensure that your pilots will not loose any of their data, you will have to set up the module correctly. The module has a settings page from which you will have to set your database tables which store a pilot's id. The module already includes the default phpVMS database tables which cannot be edited or delete from the settings page. What you have to do is include any more templates as soon as you have installed any modules into your system. Screenshot 1 (Admin Center Main) Screenshot 2 (Admin Center Settings Page) Screenshot 3 (Admin Center Update Pilot Id 1) Screenshot 4 (Admin Center Update Pilot Id 2) You can view and download the module via here. How to Set Up the Database Tables (Example of Screenshot Center Module) I am going to introduce an example based on the phpVMS Screenshots Center module developed by simpilot. If you get into your phpVMS database, you will see that the screenshot center module uses 3 database tables. These are screenshots, screenshots_comments and screenshots_rating. Of course, each table has a database prefix. In the screenshot below, you will see that the database prefix is phpvms_. As you can understand, screenshots table includes the screenshots which have been added by your pilots, screenshots_comment includes the comments which have been added under the screenshots and screenshots_ratings includes the ratings which have been set by your pilots for each screenshot. In our system, there are two pilots. The first one is DEV0002 Captain Jim and the second one is DEV0015 Captain John. As you can see in the example, there is a screenshot which has been added by DEV0015 Captain John and there is also a comment under the screenshot which has been added by DEV0002 Captain Jim. This means that the screenshots database table has an entry with pilot ID = 15 and the screenshots_comments database table has an entry with pilot ID = 2. Let's say that you have not included the screenshots module database tables in the module settings and you decide to change the DEV0015 Captain John pilot ID from DEV0015 to DEV0016. This in reality means that you change the pilot's ID from 15 to 16. If the screenshots module's database tables does not get updated accordingly, the module will keep that this screenshot has been added by the pilot with ID 15 which is something false because his/her ID has been changed to 16. In that case, the "Screenshot by:" will be empty because it will not be able to find the pilot with ID 15. Let's say that after that, you decide to change the DEV0002 Captain Jim ID from 2 to 15. As you can understand that screenshot will be shown that was posted by Captain Jim (because his ID will be 15) and the comment posted by entry will be empty just like it happened before. So, what is this module doing? As soon as you set up the module settings correctly, it searches over the selected table and changes the pilot ID from the old value to the new one. As we descriped above, the Screenshot Module has three database tables. All of these tables keep data which have to do with your pilots. Let's check the tables one by one. Let's start with the screnshots database table. As I have written above, this table stores the screenshots which have been uploaded by your pilots. This table has several columns and we should find out in which column does the pilot ID gets stored. Below you can view a screenshot of the table's columns. If you have some basic knowledge, you will understand that the pilot id who posted the screenshot is being stored to the "pilot_id" column. This means that the "screenshots" table keeps the pilot id in the "pilot_id" column. The same should be done for the rest of the module database tables. Below you can see the screenshots_comments database table. As you can understand the pilot ID is stored in the "pilot_id" column. This means that the "screenshots_comments" table keeps the pilot id in the "pilot_id" column. Finally below you can see the screenshots_ratings database table. As you can understand the pilot ID is stored in the "pilot_id" column. This means that the "screenshots_ratings" table keeps the pilot id in the "pilot_id" column. As soon as we have analyzed the module's database tables, we are ready to proceed and update the Custom Id Module Settings accordingly. We will have to add three settings, one for each database table which stores the pilot's id. We will have to submit the form with the following data. 1st Database Name: screenshots Column Name: pilot_id 2nd Database Name: screenshots_comments Column Name: pilot_id 3rd Database Name: screenshots_ratings Column Name: pilot_id In our example, all of the database tables store a pilot id. There are modules whose database tables does not all store a pilot's ID. Also, there are table where the column name can be different from pilot_id or pilotid. Further Help PHP-Mods can assist you and set up the module for you at an extra cost in case you are not able to do this on your own. You can open a new support ticket under PHP-Mods Billing System via here. We do not offer support for this module via support tickets. If you have problems installing the module, post your question in the forum. If you have any question, you can post it here. If you are not able to understand which database tables store the pilots ID, you can get in touch with the module's developer and he/she should be able to assist you.