Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. If you review the javascript errors of your website, it is clear. Define acars_map_defaults or open lib/js/acarsmap.js and replace this: var options = $.extend({}, defaultOptions, acars_map_defaults); with this: var options = defaultOptions;
  2. I do not know a lot because I am not that familiar with acarsmap but can you try removing the space which is inside the mapTypeId? Some like this: mapTypeId: google.maps.MapTypeId.HYBRID, What is your website url? Do you get any javascript errors?
  3. @ProSkyDesign it can be avoided via moving the hub foreach statement into the template file in order to call the template file once. Check this.
  4. The pilot_list.tpl is called once per hub. This means that if you add a header into the pilot_list.tpl, the header will be shown same number as hubs. Open your core/modules/Pilots.php file and you will see something like this: public function index() { // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); $this->set('allpilots', $pilot_list); # deprecated $this->set('pilot_list', $pilot_list); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); # deprecated $this->set('pilot_list', $nohub); $this->render('pilots_list.tpl'); } As you can see on line 8, there is a foreach and within the foreach the pilot_list.tpl is called. What you can do to avoid it: 1) Replace the above part of code with this: public function index() { // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); //foreach($allhubs as $hub) //{ //$this->set('title', $hub->name); //$this->set('icao', $hub->icao); //$pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); //$this->set('allpilots', $pilot_list); # deprecated //$this->set('pilot_list', $pilot_list); $this->set('allhubs', $allhubs); $this->render('pilots_list.tpl'); //} //$nohub = PilotData::findPilots(array('p.hub'=>'')); //if(!$nohub) { //return; //} //$this->set('title', 'No Hub'); //$this->set('icao', ''); //$this->set('allpilots', $nohub); # deprecated //$this->set('pilot_list', $nohub); //$this->render('pilots_list.tpl'); } 2) In this step, the pilot_list.tpl is called once by the module. Open your pilot_list.tpl and replace it to something like this: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <section class="page-contents"> <div class="container"> <?php if(!$allhubs) { echo 'There are not any hubs!';} else { foreach($allhubs as $hub) { <h3><i class="fa fa-users" fa-lg"></i> <?php echo $hub->name; ?></h3> <?php $pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); if(!$pilot_list) { echo 'There are no pilots in this HUB!'; continue; } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="sky_table"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> </tr> </thead> <tbody> <?php foreach($pilot_list as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> </tr> <?php } ?> </tbody> </table> <?php } } ?> </div> </section> Let us know how it works. I did not test it but it should be ok.
  5. You are gonna need to change several other urls from http to https to have your website working correctly. Check the following: lib/skins/crystal/layout.tpl core/templates/core_htmlhead.tpl admin/templates/core_htmlhead.tpl admin/lib/layout/footer.tpl If I remember well, these are the files you will have to update accordingly.
  6. Open your core/local.config.php file and search for this: define('SITE_URL', 'your-website-url'); Does your website url start with http or https?
  7. There is no need to worry about these errors. I remember that these checks are not maintained and as a result you will see errors but everything should be ok. Except if you notice any further issues with your website.
  8. This mainly has to do with the server management part and not with the phpVMS itself. If you are on a managed server, contact your server administrator. Alternatively, check this: https://stackoverflow.com/questions/4477535/curl-init-function-not-working
  9. That's great. For the email: 1) Check if the admin email of your phpVMS system has been created in your cpanel. (Admin Center -> Site & Settings -> General Settings -> Webmaster Email Address, If it has been created, try to send an email from this email to your email. If you can send an email without any issue, you should check the SMTP settings on the core/local.config.php file. Config::Set('EMAIL_USE_SMTP', false); # Add multiple SMTP servers by separating them with ; Config::Set('EMAIL_SMTP_SERVERS', ''); Config::Set('EMAIL_SMTP_PORT', '25'); Config::Set('EMAIL_SMTP_USE_AUTH', false); Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps Config::Set('EMAIL_SMTP_USER', ''); Config::Set('EMAIL_SMTP_PASS', '');
  10. Sorry for that, try password "123456789" without the "" as always.
  11. I would agree with magicflyer. It will be clearly a waste of money because you will have to pay more money once in a while to solve any compatibility issues. For your information, I had my VA's acars fully customized by Jeff a few years ago and it does not really look like the default and it is great.
  12. If you have access to your cpanel, open phpMyAdmin and open your phpvms database. After that, get into your phpvms_pilots table. Inside this table, you should be able to view all of your system pilots. Find yourself and click edit. Set the following: password: 91d16de8ccde64ff1f45751e84b46364 salt: e2483d01a644ba097767d6f1f3ccfc0a As soon as you update yourself, you should be able to login into your system using the password: "1234567" (without the ""). Basically, this is an email issue and it seems that emails are not sent from your system (if they are not in your spam box at least). You should find out what is the issue as soon as you login.
  13. In the login form there is a hidden field which includes the directory where you want to redirect someone who logs into your system. Open lib/skins/your_skin/login_form.php or core/templates/login_form.php and there should be a field like this: <input type="hidden" name="redir" value="index.php/profile" /> replace "index.php/profile" to "index.php/dashboard and it should work the way you want.
  14. In general, I do not agree with anything that has to do with editing the core files of a phpVMS website when you can avoid it. Also, I do not know if the above changes are going to work. The part of code you are using does not show data because the $userinfo variable has not been populated. Instead of "$userinfo->totalhours", you can use "Auth::$userinfo->totalhours" which should populate the $userinfo variable correctly. After that you can make use of the functions shown in the part of code "ProSkyDesign" shown. For example: <li class="list-group-item"><span class="badge badge-primary"><?php echo Auth::$userinfo->transferhours; ?></span>Transfer Hours</li> <li class="list-group-item"><span class="badge badge-success"><?php echo FinanceData::FormatMoney(Auth::$userinfo->totalpay); ?></span>Pay</li> You can do the same with the rest of the data you want to show in the frontpage of your website.
  15. Do you use any custom template? If yes, is your template's "schedule_bids.php" file populated correctly?
  16. I will agree with magicflyer and I would like to add that backlinks from well known websites are better.
  17. Thank you very much for letting us know ercio. It would be great if you could share the solution with the rest of the members of the community so in case there is someone who wants to do the same.
  18. Your system works just file. The dropdown profile fields were not added correctly. You had set the following value in the "Default Value" field: ---, Google, VaList, Through a Friend, VaCentral, SimPilot, Other based on the text you can see below this field it states clearly: "For dropdowns, separate different options with commas". You had seperated them with ", " (one space). The correct default value is this: ---,Google,VaList,Through a Friend,VaCentral,SimPilot,Other In the meantime, I found out an issue with the profile fields form and I have submitted a pull request in simpilot's GitHub repoository (pull request #21).
  19. I registered into your system using a test account and inputed something random in all of the custom fields. I log in as administrator and I can see that the dropdown fields are not selected. Did you do this update in your admin/templates/pilot_details template file?
  20. Could you please share with me via PM the admin details of your phpVMS system to make a test registration. Set up the system custom fields as you would like them to be. We will share the solution with the rest of the community in this topic.
  21. You can call the phpVMS functions from your HTML homepage. Just add the code below: <?php include './core/codon.config.php'; ?> and after that, you can call add the phpVMS functions you need. For example: <?php include './core/codon.config.php'; $totalHours = StatsData::TotalHours(); echo $totalHours; ?> Bare in mind that the include should include the relative path of your phpVMS codon.config.php file.
  22. Didn't the drop down issue in the admin center get resolved?
  23. Can you try adding the below code at the top of the file you run using cronjob? error_reporting(0); For your information, it should be placed within <?php and ?> tags. Alternatively, you can just try to solve the errors reported.
  24. Hello, Yes, that is possible. It can't be done from the modules settings. Please open a support tickets through my website and I will be glad to assist you in this. Nice idea for the next update.
  25. What is your website url? Is your phpvms_acarsdata database table populated correctly? You can check your phpVMS database via phpMyAdmin.
×
×
  • Create New...