Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. Also, do you update the pilot id's of your pilots? Are you able to determinate how are your pilots ordered in the newest pilots block?
  2. Do you have schedules added in your system? If yes, please send us a screenshot of your schedules listing, is the timesflown field counting correctly?
  3. Ok, this means that the $toproutes variable is not populated and as a result it is NULL. That is why you can't see the Top 10 Routes in your admin center. You should create the required function to populate the "$toproutes" variable.
  4. Just to explain why it did not work. The "$pilotcode" variable is only populated in Profile. When you were visiting other pages, the "$pilotcode" variable had not been populated and considering that it was empty, no avatar was returned by the PilotData::getPilotAvatar($pilotcode) function. The line I added populates the "$pilotcode" variable based on the currently logged in pilot and that's why it now works in every part of your website.
  5. This is not part of the default phpVMS coding. The Top 10 Routes part is not shown because the $toproutes variable is not an array (probably it is empty) (according to line 56 on your first screenshot). Can you try and add the following code above line 56 and after line 55? var_dump($toproutes);
  6. change this: <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image"> to this: <?php $pilotcode = PilotData::getPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">
  7. Check this: https://github.com/nabeelio/phpvms and phpVMS Discord where there is a development channel:
  8. Are you sure that you added the required data correctly in your local.config.php file? Maybe you did not paste them correctly. Considering that the local.config.php file contains passwords, can you email me the file at info@php-mods.eu or send it to me via pm? I will check it and let you know what the issue can be.
  9. What do you mean that it doesn't work? Can you share any link?
  10. Have you set an image for the default rank of the pilot? Is it valid?
  11. It really works but if you simply change the "px" values to percent values, everything is going to work fine. For example: <tr> <th align= "center" width="10%">Avatar</th> <th align= "center" width="10%">Pilot Hub</th> <th align= "center" width="10%">ID</th> <th align= "center" width="20%">Name</th> <th align= "center" width="10%">Rank</th> <th align= "center" width="5%">Flights</th> <th align= "center" width="5%">Hours</th> <th align= "center" width="10%">Vatsim</th> <th align= "center" width="10%">IVAO</th> <th align= "center" width="10%">Status</th> </tr>
  12. @hecrowell gave a good solution. In general, it is not possible to select multiple types or registrations of aircraft for a specific schedule. I have developed several systems which can do that but I have decided not to release anything considering that further changes are required (into the core of the phpVMS and the ACARS systems).
  13. The airports import process has an option to "Delete all old airport". So, if you check it during the import, it should delete all the previous airports just like with the schedules. Now, as for the aircraft, this option does not exist and mainly because even as an administrator you are not allowed to delete an aircraft from your system and also it is not suggested. So, the aircraft import script will import the aircraft which are inside the speadsheet without touching the already added ones.
  14. Contact your web hosting provider and request from them to enable the "allow_url_open" setting.
  15. Ok, I saw that you solved the issue. Just for your information, the Sitecms folder you were searching form is inside the madmin/modules folder. It is not in the /admin folder and it's part of the MVC framework philosophy that is being used by phpVMS.
  16. Maybe you logged into your website using a Russian ip? Any proxy?
  17. Hello, Yes, if you tick to delete all previous routes, it will delete the 1000 schedules and add the 500 which are included in the spreadsheet. If you do not select it, it will import them or update the current ones according to the flight number.
  18. Hello, Go here: https://www.google.com/recaptcha/admin#list You will find a "register a new site" form. Set whatever label you want (this is used to remember the use of the keys you generate), select recaptcha v2 and on the domain field set your virtual airline domain name. As soon as you submit the form, you will receive a site key and a secret key. Open your core/local.config.php file and copy the following if it's not already there: /* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */ Config::Set('RECAPTCHA_PUBLIC_KEY', 'paste_your_site_key'); Config::Set('RECAPTCHA_PRIVATE_KEY', 'paste_your_secret_key'); Do not forget to paste the keys accordingly. Save it and everything should work fine.
  19. Why don't you try to explain to him what to do via here? This way, others who might have the same question might find this useful too. The instructions are easy to understand. So: ________________________________________________________ To show all the landing stats currently in the datbase create a link to www.yoursite.com/index.php/TouchdownStats Explanation: Replace www.yoursite.com with your website url and you will be able to see the landing stats of your database. Try it to review what you can see. ________________________________________________________ To show a limited number of stats from your database create a link to www.yoursite.com/index.php/TouchdownStats/top_landings/10 Explanation: This is basically the same with the previous one. Replace www.yourdomain.com with your website url and you will be able to see the 10 top landings of your virtual airline. You can change 10 with any number you want to show the top X landings. ________________________________________________________ The most useful method of the data class would be to use TouchdownStatsData::get_all_stats(); and TouchdownStatsData::get_stats('10'); The above two functions return some specific data. These data should be echoed by you. In general, you can use the above functions in your phpVMS template files and echo several landing statistics data in any part of your system. Your websites template files are stored in your core/templates folder or in your lib/skins/your_current_skin_name folder. If you could explain to us where and what do you want to show, we would be able to assist you.
  20. What is your website url? Maybe there is a glitch in your code..
  21. I do not understand what is the issue exactly. It would be great if you could explain to us the issue exactly. Help us to help you. What do you try and fail? What is your phpVMS version? What did you try to solve your issue?
  22. Considering that it is not an open source product, I would suggest writing to their support for more information about this.
  23. Can you see the empty map in your website?
  24. Open your core/common/SMFRegisterData.class.php file and where "public function" replace with "public static function".
×
×
  • Create New...