Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by servetas

  1. Great! I think that I have managed to do something with the above. Tested it in my mobile phone (safari) and it works. It works on my PC (firefox) too.

    Open your lib/js/phpvms.js, find this:

    $('.deleteitem').live('click',function(){return false;});
    	$('.deleteitem').live('dblclick', function(){
    		$.post($(this).attr("href"), {id: $(this).attr("id")});
    		rmvid= "#bid"+$(this).attr("id"); $(rmvid).slideUp();
    		return false;
    	});

    and replace it with this:

    var touchtime = 0;
        $('.deleteitem').live('click', function() {
            if(touchtime == 0) {
                touchtime = new Date().getTime();
            } else {
                if(((new Date().getTime())-touchtime) < 1000) {
                    $.post($(this).attr("href"), {id: $(this).attr("id")});
                    rmvid= "#bid"+$(this).attr("id"); $(rmvid).slideUp();
                    touchtime = 0;
                } else {
                    touchtime = 0;
                }
            }
            return false;
        });

    Let us know if that solves the issue for you. In general, you have to be fast when you double click on the remove bid link. If you want to make it less sensitive, you can increase number 1000 from the above pasted code. In stackoverflow they had it to 800 and I increased it to 1000.

  2. It can be done. You should edit the lib/js/acarsmap.js file of your phpVMS system. Also, a good start would be to use the OperationsData::getAllHubs() function. It already exists within your phpVMS system. Develop a php foreach using the data returned from that function and add the hub marker within the foreach. Use it as a start and let us know if you get stuck anywhere.

  3. You have included the google maps with the following code:

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=AIzaSyBTq3EcPWYUMAJ27n-IzcnQMKBGIWlxjsE&sensor&callback=true"></script>

    This is wrong. Replace it with this:

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=AIzaSyBTq3EcPWYUMAJ27n-IzcnQMKBGIWlxjsE&sensor=true"></script>

    Let me know if it works.

  4. I do not understand your question but you will have to remove this:

    <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBTq3EcPWYUMAJ27n-IzcnQMKBGIWlxjsE&callback=initMap"
      type="text/javascript"></script>

    and use only this:

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=AIzaSyBTq3EcPWYUMAJ27n-IzcnQMKBGIWlxjsE&sensor=true"></script>

    Check your page source that includes two different calls for the google maps api.

  5. As I can see, you are using a different template from the default phpVMS template. This means that you will have to update the core_htmlhead.php of the template that you are currently using. This can be found in your_phpvms_directory/lib/skins/ocean_blue/core_htmlhead.php. Update it and let us know if that solves the issues.

  6. First of all, ensure that you are using the correct PHP version (PHP 5.6). Also, the main issue that you have is the free web hosting provider. In general, it is reported that phpVMS is not working correctly with free web hosting providers and especially 000webhost.

  7. Who is your web hosting provider? Can you share with us your website url? Your web hosting provider is the person/company that you are paying for the hosting of your website once per month or year etc.

  8. If you have issues with phpVMS, you can always share your questions with the community. I am personally trying to do my best in order to help as much as I can most of the members of the community.

    I did not understand your question exactly. If you delete phpVMS, you are going to you all of your virtual airline pireps, pilots registered, schedules etc. Could you please share with us your virtual airline url?

×
×
  • Create New...