Jump to content

Nabeel

Administrators
  • Posts

    8141
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Nabeel

  1. On 11/6/2018 at 10:49 AM, thunder175 said:

    I'm very apprehensive about eventually moving from 5.5.2 to v7. Although after playing with the demo version I'm really enjoying the new features. I did have a concern however. At least in the current state, I don't see many cargo/freight specific options as most everything looks to more for a passenger airline. How would we set the fares for freighters? Would we have a single fare class for general freight to the max payload of the aircraft? I don't know if this would have any advantages, but I guess we could set multiple fare categories for main deck cargo and belly cargo for dedicated freighter aircraft. Any thoughts or guidance about cargo only VA's running phpvms v7?

    I've left it open-ended, so you can set the fares to every X unit costs Y. When you create a schedule, you have the option to select a flight type, so you can select Cargo there. It doesn't change the units or anything, but maybe if it's a cargo flight, it can change the terms used to be more cargo-specific for those flights. But that's sort of what I was envisioning, with the open-ended nature of how fares can be set on a subfleet... which would allow you to mix a subfleet that's dedicated for pax and another for cargo... if that makes sense.

    Aside from unit cost, what other freight-specific options that are missing?

  2. On 1/5/2019 at 8:35 AM, opsman said:

    I tried this as well but I get the following errors...any ideas?

    Warning: require(/var/sites/n/ndm.world/public_html/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/sites/n/ndm.world/public_html/bootstrap/autoload.php on line 17

    Warning: require(/var/sites/n/ndm.world/public_html/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/sites/n/ndm.world/public_html/bootstrap/autoload.php on line 17

    Fatal error: require(): Failed opening required '/var/sites/n/ndm.world/public_html/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/php-7.2.11-flock/lib/php') in /var/sites/n/ndm.world/public_html/bootstrap/autoload.php on line 17

     

    That looks like some files failed to upload, can you see if that file is there? public_html/vendor/autoload.php?

  3. On 11/7/2018 at 4:18 PM, Amirmahdioun said:

    Hello all

    I installed phpvms 7 on my server but i have a problem with its email setting

    I set my server and email setting in php.config but after joining a new member,I and that member dont receive any email from phpvms to announce me and new member for more info about new joining 

     

    please help meee :((

    Did you check the config/mail.php settings?

    • Like 1
  4. On 10/21/2018 at 5:02 PM, Heritage1 said:

    Thanks for sharing that, for those who are using PHPVMS 5.x.xx, here is a simple code to view your members online;

    
    <?php $usersonline = StatsData::UsersOnline();			
    	      foreach($usersonline as $pilot)	
    	{	    
    		echo "{$pilot->firstname} {$pilot->lastname}-{$pilot->rank}-{$pilot->location}<br />";		    
    	}
    	
    	?>

    This gives, 3 total viewing options, you may of course weed it down to your choices. 

    Let's not put the older phpVMS stuff in here, I don't want to confuse people.

  5. On 10/12/2018 at 8:29 PM, in2tech said:

    Alright not exactly sure how to word this but I am trying to use the existing code from the nav.blade.php file for my template. For instance I want to of course show some menu item's to Guest and when they login more appear, just like we do in the original version. I have some of it figured out but I am mot really sure what this code is referring too:

     

    
    	@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
            <li class="nav-item">
                <a class="nav-link" href="{{ url($link['url']) }}">
                    <i class="{{ $link['icon'] }}"></i>
                    <p>{{ $link['title'] }}</p>
                </a>
            </li>
        @endforeach
    	

     

    it's the $link stuff I don't really understand? What is it referring too exactly? Any help appreciated! Just trying to learn the basic's :)

    Thanks for your help!

     

    If you look at the foreach, it says:

    @foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link

    So it's grabbing all of the frontend links as $link. If the module you create says that's allowed for guest users, that will get the link as defined for that module. I need to write some extra documentation around this feature:

    http://docs.phpvms.net/developers/add-ons-and-module

  6. On 8/28/2018 at 3:19 PM, Strider said:
    
    Fatal error: 'break' not in the 'loop' or 'switch' context in /core/modules/ACARS/ACARS.php on line 176

    I changed the php version to php 7.0 am using phpvms version 5.5.x by simpilot. I have checked that file and the line and there is a break there, but it is an if statement not a switch statement. I have been having trouble as I have had to move hosts and the new server is not letting me file pireps, using either acars program or manual.

    Maybe put a return in its place or something.

×
×
  • Create New...