Jump to content

in2tech

Members
  • Posts

    292
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by in2tech

  1. On 10/25/2018 at 9:33 AM, Nabeel said:

    Nice! I can convert the pilot count into a setting.

    For #1 - I'm not sure what you're trying to do.

    That would be cool, where would it be, admin panel? Yeah so long since I posted this, I am not sure what #1 means either anymore. I was more likely asking if I could make a NEW route and a View for info, I guess, but not really sure anymore :) 

     

    Sorry, should have made it more clear when I posted it! I'm old and just forgot!

  2. On 10/25/2018 at 9:35 AM, Nabeel said:

    Looks like you might be missing one of the scripts

    Is it the script's at the bottom of the Default theme, cause when I add them it appears to stop my theme from working at all? I must say I am very confused about this!

  3. On 10/25/2018 at 9:32 AM, Nabeel said:

    You can probably just throw them up onto YouTube. The base templates won't be changed much, if at all, between now and release

    Yeah already had it on YouTube was just waiting for mainly you to let me know if thing's would change much. Now posted a link above. I have the basic's of the templates working and converted, however I am having some trouble getting some, or most parts of V7 actually working with my converted templates, although they look fairly decent. Not sure if I am missing code from the original default one or if it is causing error's some how. I'll have to ask for help on these issue's, but I have the look and the main menu working though! Doesn't hurt to try and learn :)

     

    Thanks for your encouragement, I'll post them and keep trying to learn! Although I know you don't want to put a time on it, are we looking at 2019, 2020, or like 2030 for the first public release :) If you don't won't to say, I get it! I am still enjoying learning. BTW, I am having one heck of a time trying to find info on Widgets. In general for Laravel or for sure v7. Can you help with that in any way? Seem's like I should try and learn that before trying to learn a module, which I may never figure out!

     

    It should look just like the original template, but as you can see it is being served from my v7 server installation:

    2018-10-26_1543

    Any trust me you will have error's and thing's you have to fix. I do all the time while learning.

     

    Thanks! Good luck with converting your first  template to a v7 Theme :) Navigation video being redone is next in the series!

    • Thanks 1
  4. If I remember correctly it maybe that your username or database name is something with an underline. Look at the database and check in phpMyadmin. I think this is what caused me problems when it did not work. So say you names your database test, your name could be something like username_test or something like that. I just can't remember, but double check the database name! Check your user and database name, both of them!

    Good luck!

  5. I know that the version 7 is still being worked on, and have no idea when it will be ready for wide release but I have been learning the basic's of Blade Templating and converting an existing Bootstrap & HTML template to phpVMS v7. I am also trying to learn the basic's of Laravel for v7. I am not a coder by any mean's just enjoy making template's for the old version's of phpVMS and also learning how to make them or customize them for v7. I am making video's and was wondering if anyone is interested, while I work on them. My way is just the simple old school way similar to the older version's. Still have to learn SASS, Laravel, etc... but the basic's of the look of the templates do work, so that you can have something look different than the stock one, and hopefully we can learn and help each other.

     

    Please let me know if you are interested in these very basic video's. I have the first one done that show's you how to get the converted template to show up, and now have to work on the navigation, drop down menu, content, etc... video's! I have not made very many, if any, (wait I did make one Adobe Muse one for menu's that is super simple about 3-4 years ago and for some strange reason has like 80,000 views),  and they are not very professional, still learning, but get the job done!

    phpVMS 7 is still in development, not recommended to use as a production virtual airline!

     

    Alright, here is the first video in I hope to be a series. I worked on the navigation and Snag It crashed, a lot of work down the drain. Have to redo it at some point! I do all my editing on a Mac, but it's the same for WIndow's! Just use the editor of choice and FileZilla type program, etc... This is how I do although there are a ton of different ways!

     

    phpVMS v7 template links and basics - Part 1

    Thanks!

    • Thanks 3
  6. It does indeed work that way and now I know why most are like that. Better than about.about now it is about.index. Look in the About folder and get the file index.blade.php and output it to the views, nice!

    web.php file in the App/Routes folder!

    2018-10-21_1707

     

    Folder for my NEW v7 theme!

    2018-10-21_1707

     

    This is just a static page, I have no clue as to how or if we can make page modules at this time in v7!

  7. So I created a static About Us page for my theme in phpVMS 7. Here is the code in the app/routes/web.php file:

        Route::get('/about', function () { return view('about.about'); });
    

    It's just a very simple function to return a view as this is the only way I know how to do it at this time. So my views folder for my template has (template name)/About (folder)/about.blade.php and it works but it seems confusing to me. Should I have named the file index.blade.php and put it in the About folder. Seems like this is how other blade templates are referred too in the code?

     

    Thanks, guess I'll just try it and see if it works! So instead of what i have now it would look like this:

     

    	    Route::get('/about', function () { return view('about.index'); });
    	

    So look in the theme folder and then the About folder and return the view index.blade.php!
     

  8. Nabeel provided the code for the authorization Logged In user and I asked on a Laravel forum about adding Guest because I am new to Laravel and basic PHP coding. So if you want to display the Logged In user or show Guest use this code in your phpVMS v7 theme:

    [code}

                    @if(Auth::check())
                    Welcome: <font color="#6D0C1F"> {{ Auth::user()->name }}
                    @else
                    Welcome: <font color="#6D0C1F"> Guest
                    @endif</font>

    [/code]

    I'll fix the colors with CSS down the road for now I just cheated to make it quick. Hope this is helpful to someone.

     

    And it looks like this:

     

    2018-10-21_1629

     

    2018-10-21_1630

    I like seeing my name when logged in! Let's me know at a glance that I am logged in! And if you are an admin and testing stuff what user you are logged in as. Been doing that a lot lately as I learn Laravel basics and phpVMS 7!

  9. I am mainly focused on the Blade Templating Engine of Laravel at the moment, and some very minor code. Although I may not being using it exactly as the developer planned I have been able to convert templates to phpVMS 7 in a very basic way. Don't completely understand it all yet, and may never, but at least they don't look like the original template and have some customization. I still have a lot to learn, but I am enjoying it at this point. Like you said this is just a hobby for me and I like trying to figure things out at times. I remember when Nabeel ( the developer of phpVMS ) first told me some things about the Blade Templating and I was so confused. It's starting to click a bit now! In a very basic way!

     

    Enjoy, be sure and post any progress! I am planning on making a very basic YouTube video on converting a simple template to work with phpVMS v7! All of what I do may not be right, but it works for the most part. And we will all be able to help each other learn making a NEW theme for phpVMS 7! Which is the very first thing people want when they download phpVMS, any version, and after they learn the basic setup process, next thing they want is a Theme that is unique for their VA!

     

    Later!

  10. 2 hours ago, bbuske said:

    Well glad you like it. I fly with Qantas, which uses phpvms5 and it is already impressive. The new version 7 looks pretty good to me. I like what I have seen so far.

    I am not yet owning a VA. I have been planning on setting one up for a while now, but I have not had the time to do so. I have been looking into VAM at first, since it looked good and the developer is Spanish, from here nearby. So that was something I liked too. However, I have found that the system has many bugs and is quite dead with regards to any development. Images wouldn't show up, issues with adding fleets and hubs, etc.

    So yeah, I am trying to make my way with phpvms. As I said, Qantas uses it and it works fine so it is also something I know. It also works with ACARS and XACARS (very important for me, since I fly with XP11). Looking into how to get it installed on the server, will be the next big step for me. 

    I don't know Lavarel too much heh. I do know web design and web development, so I know my way around HTML, PHP, JavaScript and stuff, but i have never bothered with Lavarel. I work mainly with Netbeans for programming and designing and I have quite a bit of scripts and libraries over the time. I have been interested by it some years ago, but time... time is always an issue.. lol especially if it is about learning something new, like this...

    Anyway, thanks for your help. It is solved and it works. I knew it worked when I ran the installer, as it looked normal and fine, not like a simple HTML page. Just continued the first time, because I thought it might have been the server or maybe because of the alpha state of the software.

    Cheers

    Yeah just remember phpVMS v7 is still in development and you will be fine. Not even finished yet, and add on's such as acars and such have a long way to go as far as I know! But if you start looking at v7 now you will at least know the basic's of it. That is what I am doing anyway. And I am just trying to learn the basic's of Laravel and programming only for v7 phpVMS so some of the code at least makes a little sense to me when trying to create or modify a template!

     

    Best of luck and enjoy!

  11. 51 minutes ago, bbuske said:

    Hey,

    sure thing. Take a look. It is here: http://va.buske-it.com.ve/phpvms/.

    I have created it within a subdomain of my business url. Will update it later. For testing and first steps it is fine this way.

    Thanks again!

    Nice glad you got it working. Is this the first time you have installed v7? If so after looking at it awhile I think you will like it. Of course it is still in development, but a lot further then when I first started using it. I also have it running in a sub domain, but I need to test and see if it will work in a sub directory. Not sure if it will or not but I will test it at some point! A bunch of the NEW item's still have me a bit confused, like sub fleet's, etc... but it does work though. And lately since Nabeel added the import function on most pages in the admin area I have just neem importing the info from the Demo site :) I am mainly focused on learning the basic's of Laravel ( finally got it installed ), and the Blade Templating engine as that is my focus at this time.

     

    Best of luck to you. Do you currently have a VA? Be sure and register on the Discord channel although it has been really quite lately there! Guess Nabeel is taking some time off from development. He was rocking and rolling on phpVMS development for awhile there! New version(s) were coming pretty fast, but not lately! The latest dev version seem's pretty stable for what I need and that is creating a template or theme, or I should say converting a theme to v7!

     

    There you go:

     

    2018-10-20_1859

     

  12. 14 minutes ago, bbuske said:

    Hey,

    thanks!!!

    That idea with the new install fixed the issue actually. I think the issue might have been that I placed the content of the phpvms installation into the main folder of the VA. Now I used a different approach: I unzipped the phpvms folder inside the VA folder as a sub folder and this worked just fine. I also deleted the db and made a new one.

    Thanks for your help!

    Cheers

     

    Your welcome, what's your NEW url to the v7 installation so I can take a look? And glad you got it working now!

  13. For some reason that link is no longer working, but I did see the problem for just a second. Try deleting everything and try a NEW installation! Are you copying over all the files from the folder via FileZilla are something? That is how I do it and I grab the very last or most recent DEVELOPEMENT version not any of the alpha's as these usually have error's fixed, but CAN also break other thing's, but usually work for me! DELETE everything, create a BRAND NEW database ( you have to delete the database every time and start over fresh ) during development!

    Try that and see if it work's, start all over again from scratch. I have had to do this many times! Make sure you delete the old database and create a brand NEW one!

    Let me know! I'll be off and on here most of the day!

     

    I use the Dev branch which is the latest development version(s). If you want to use phpMS during developement, join the Discord channel as it is easier ( for me anyway ) to get the latest version under the Development category. But that's just me, you can get it here too!

     

    2018-10-20_1628

    Should be the one on the bottom the dev branch version! But like I said I get it off phpVMS Discord as I know the latest one is posted there! DO NOT change any links, just upload the files, and go to the url and it should install and work after you fill out the setup info, it should! Right now I am working on template for v7, but one day I am planning on doing an installation video, one day! Although it should be fairly straight forward for most people, and should work. Of course it is still in development so ANY thing could and can go wrong :)

  14. If you are using the NEW version of phpVMS v7, then it does not link like the other versions of phpVMS. Look at the default template in version 7, specifically the app.blade.php file where the links are usually,  and place your files in the same directories as the default template does. I don't think you have too, but that is the way I do it. It look's something like this:

     

    	  <link href="{{ public_asset('/assets/frontend/rose/css/style.css') }}" rel="stylesheet" />
     
    	

     

    Notice the curly brackets being used in the NEW version 7 at the beginning and especially at the end of the link above! You don't link files in the same way as the older version(s)! I am pretty sure the link(s) are a Laravel thing, but not 100% sure at this time. I know I see them all the time in the code, and in the Laravel tutorials I am watching!

    Good luck!

     

    Also, it would be better if you posted in the phpVMS Version 7 forum area. But right now people seem to be confused as to where to post! I see v7 post in the Classic area and v5.x in the phpVMS v7 area, kind of confusing!

     

    Also, does the default template work? You should not have to change anything in a NEW installation for phpVMS v7 to work! Also, you have to be running PHP 7.1 at this time! Only when you are making your OWN template do the links matter! The default should work in a new installation without any changes!

    Is this what you are trying to get working? The NEW v7?

     

    2018-10-20_1601

     

  15. First off should I ask these type questions here or in the Off Top Bantor area? I think since they are related to phpVMS 7 & Laravel this will be alright, but let me know if I am wrong. So after getting Laravel installed and learning some very basic, I mean basic thing's about Laravel & phpVMS I have a few questions and some info.

    1 - Is it possible to add a new function that would point to a view for say Awards in the http/routes/web.php and create a NEW view in the views folder and point it to the view and would it work? Just curious. Might give it a try just for the heck of it.

     

    2- Also in digging around ( sorry if I am not suppose too ), I always wondered how I could change the number of pilots that show up on the Home page. Right now it is set for 4, and that is all it shows total! So I dug around and noticed a file that could be changed in the Http/Controllers/Frontend area called HomeController.php and guess what I found? This code and changed it, and it worked :)

     

    	<?php
    	namespace App\Http\Controllers\Frontend;
    	use App\Interfaces\Controller;
    use App\Models\User;
    use Illuminate\Database\QueryException;
    	/**
     * Class HomeController
     */
    class HomeController extends Controller
    {
        /**
         * Show the application dashboard.
         */
        public function index()
        {
            try {
                $users = User::orderBy('created_at', 'desc')->take(8)->get();
            } catch (QueryException $e) {
                return view('system/errors/not_installed');
            }
    	        return view('home', [
                'users' => $users,
            ]);
        }
    }
    	

    Changed the 4 to an 8 , where it states take(8), and now I can list up to 8 NEW pilots :) Just having fun digging and learning the basics! Of 8 is it as NEW pilots register it kicks off the oldest one so it will never go over whatever number you make it. If that makes sense. And then of course there is the Pilot List anyway, which shows them all!

    So now it looks like this:

     

    2018-10-19_0243

    I can show up to 8 of the newest pilots registrations instead of just 4. But like I said doubt you would want more or even change it, as you have the pilot/users list. But I must say I do at least like 8 :) Just messing around as I said! As you can see I also reformatted the way it looks, etc...

  16. If I would have looked closer I would have seen that one states logged_in=false and one says logged_in=true, and now that explains what links are show if logged in or not logged in, I think! Ot at least that is the way it is working for me the way I have it set up. Which I basically just copied it from the original nav_blade.php :)  Finally got the basic Laravel install on my Mac working but no Homestead or Valet. Still learning and just trying to understand the code and maybe one day be able to create at least a simple module, just maybe! Mainly focusing on making a new theme, well converting one to v7 I should say, and although it looks fairly decent NONE of the phpVMS code actually works in it, Live Map, Registration, Filing New PIREP, but it kind of looks nice, but that's all! Converting templates the OLD school way like phpVMS 2 or 5 or whatever they are called now, by just copying Laravel code from the original default template or making a copy of it and then adding my template conversion! At least I am trying :) And it looks pretty good, just nothing works :)

  17. Not really sure what I did when creating a NEW theme for phpVMS v7, but some how I screwed up either a reference to a javascript file or something. Works fine in the default theme, but when I switch over to mine I get this console error, and I must say I don't really know how to read them :) I may just have to start over or walk through each step I took when I started working on this month's ago.

    Any ideas at all?

     

    2018-10-15_1756

     

    Any help appreciated! I did look through the default theme and did not even see a reference to this so it may be something I have in the theme that does not even exist in the default one!

  18. 16 hours ago, Heritage1 said:

    Ahhh, yes your right, didn't know you were running version 7, I'll get back to you on that one, got a few friends around duh boards here, let me see if I can find you and answer.

    Jim

    I have it working now for the most part and watching video's on Laravel just for general knowledge at this point! I also think I have the basic's about the $link stuff to, I think!

    Appreciate the help!

  19. 8 hours ago, Heritage1 said:

    Thats great, however for future reference you can protect anything on the site with this simple very short script.

    For normal members permissions; 

    
    <?php if(Auth::LoggedIn()) { ?>
    
    <!-- your content here etc...... -->
    
    <?php } ?>

    For Admin and staff permissions; 

    
    <?php
    if(Auth::LoggedIn())
    {
        if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
        { ?>
    
    <!-- your content here etc. -->
    
    <?php } }?>

    I use this everywhere I don't want Guests to view any member modules, maps, and/or Pilot Tools, including menus. Hope this helps for the future.

    Jim

    Isn't phpVMS version 7 different because it is written with Laravel? Just trying to learn the very basic stuff in the NEW v7!

     

    Just wondering!

  20. Never mind figured out by taking my time, imagine that. Now I gave to go back and clean everything up the way I want it exactly. I would like to know for info reason what some of the code is referring too, like this code?

     

    	<a class="nav-link" href="{{ url($link['url']) }}">                
    <i class="{{ $link['icon'] }}"></i>                
    <p>{{ $link['title'] }}</p> </a>
    	

    If someone could help me out for the future! Not the class stuff but the $link items, if you would please!

    Thanks for your help!

  21. Nabeel provided the code for showing the pilot when logged in, in the documentation. I want to have Guest show up when no one is Logged In and the Pilot show up when they are?

     

    	@if(Auth::check())
     {{ Auth::user()->name }}
        @endif</font>
    	

    Thanks!

  22. 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!

     

  23. This should be it. Of course you'll have to figure out how to use it :) Should be if they have over 10 hours ( which is what I have my Charter Access set too ) they are granted access to use the Charter Module. Once again you would have to edit for your needs. Above my pay grade at this time! I'll post what looks to be the enter code, but I could be wrong.

     

    <?php
    if ((Auth::$userinfo->totalhours + Auth::$userinfo->transferhours)>10)
    {
    ?>

     

    Entire code for access:

     

     

    - Of course login access

    <?php
            }
            elseif(Auth::LoggedIn())
            {
            ?>

    - Grant access at 10 or above hours

    <?php
    if ((Auth::$userinfo->totalhours + Auth::$userinfo->transferhours)>10)
    {
    ?>

    - I think this sets it for the pilot to be able to make 30 charter schedules and counts it down to zero I guess

    <?php
    $icao = 'CH';
    $price = Auth::$userinfo->pilotid;
    $count = SchedulesData::countCharterSchedules($icao, $price);
    if($count < 30)
    {
    ?>

     

    Good luck. Share you code if you figure it out for another purpose :)

×
×
  • Create New...