Jump to content

in2tech

Members
  • Posts

    292
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by in2tech

  1. Well that breaks my other phpVMS installation and I don't know what a symlink is. So I guess I am done as the index.php replaces my old one and disables my other 5.x phpvms installation. All I get is a blank screen, unless I am using the wrong path, when accessing the site? Anything is possible!

    Any other ideas?

  2. Alright, I definitely did not do it that way as I was confused. So I create the phpvms folder in the Root are instead of the public_html like I was doing? Trying this method! So also apparently ( if I get it working ) I won't need the database I created as it will create one with some test data? I guess? So I already have an index, php page and am guessing I need to replace that with the contents of the public folder from phpvms V7?

    I'll let you know!

  3. Yes, I am on your Discord also and sent to a PM on your Discord channel. Problem is I have never done the SSH stuff and I also have an active phpVMS virtual airline I do not want to mess up! So, will that moving the public folder thing delete my virtual airline? Just think of me as just barely above a normal user, although I have been using phpVMS since 2010 or so :) I am usually not bothered trying new things to learn, but have to say the whole Laravel, Composer, and stuff has my head whirling :) I will get it one day, just maybe not before you release to the general public. But I AM going to try, as I want to help with the project very much! And id testing on a shared host is all I can do, so be it :)

    Still learning this kind of stuff, sorry!

     

    I am going to try this option right now:

     

    Copying the /public folder contents

    This is similar to above, however, this doesn't require SSH access, but does require some editing of files to point to the proper paths (edits will be made easier following some testing to make sure this works).

    1. Place phpvms parallel to your public_html folder (as with the above step).
    2. Copy all of the contents of the phpvms/public folder to the folder you want (e.g, the root of public_html).
    3. Open the index.php file, and edit the two require commands, to point to the phpvmsdirectory. For example, if your phpvms directory is next to public_html, and you copied the phpvms/public/ contents into the root of public_html, the changes would look like (only changes shown)
    # Change line 13:
    $path_to_phpvms_folder = __DIR__.'/../phpvms/';

    Next, open the phpvms/bootstrap/app.php, and change the reverse path:

    $app->bind('path.public', function () {
        # This line needs to change to the folder the index.php lives in
        # Will be made as an option, so it doesn't get overwritten
        return __DIR__.'/../../public_html';
    });

    If you would rather use absolute paths, that is fine as well.

  4. Here it is and you have to add it in the correct area of your template, and it should go in your frontpage.main.php or tpl , or if you want it on all pages layout.php or .tpl !

    Pilots:

    <?php echo StatsData::PilotCount(); ?>

    Total Schedules:

    <?php echo StatsData::TotalSchedules(); ?>

    Numbers of Pilots in Flight:

    <?php echo count(ACARSData::GetACARSData());?>

    Total Miles Flown:

    <?php echo StatsData::totalmilesflown(); ?>

    And it does work, if you enter it in the correct area of your template! And there is other info that I did not use. Usually you just replace the static numbers with this code!  As stated above, you have to edit your index.html and break it up into the 2 files most of the time, layout.php or .tpl and frontpage.main.php or tpl, depending on what you are trying to do!

    • Like 1
  5. I think he is talking about something like this:

    2017-12-15_1745

     

    I might be wrong, but it displays on all pages, when logged in!

    This is the entire code in the default crystal skin:

    	<?php 
            /* 
            Quick example of how to see if they're logged in or not
            Only show this login form if they're logged in */
            if(Auth::LoggedIn() == false)
            { ?>
                <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
                    Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />
                <input type="text" name="email" value="" onClick="this.value=''" />
                <input type="password" name="password" value="" />
                <input type="hidden" name="remember" value="on" />
                <input type="hidden" name="redir" value="index.php/profile" />
                <input type="hidden" name="action" value="login" />
                <input type="submit" name="submit" value="Log In" />
                </form>
                <?php
            }    
            /* End the Auth::LoggedIn() if */
            else /* else - they're logged in, so show some info about the pilot, and a few links */
            {
            
            /*    Auth::$userinfo has the information about the user currently logged in
                We will use this next line - this gets their full pilot id, formatted properly */
            $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
            ?>
            
            <img align="left" height="50px" width="50px" style="margin-right: 10px;"
                src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />
    	        <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
            <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
            <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
            <br />
            <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> | 
            <a href="<?php echo url('/schedules/bids');?>">View My Bids</a> | 
            <a href="<?php echo url('/profile/');?>">View Pilot Center</a>
            <?php
            } /* End the else */
            ?>
    	

    That will show you exactly what is in the screen shot WHEN they login! There might be some additional code in there, not sure. And you can edit it for ONLY what you want show!

  6. Thanks, thought I had read in this thread it did not. I'll double check my installation and see if I did something wrong. It's only does acars right, not manual reports, and you have to have one option turned on? For instance I only want if someone flies over 1x simrate speed at this point! So what do I enter in the simrate option?

    2017-11-19_1431

    Thanks!

  7. On 4/18/2012 at 9:50 PM, flyalaska said:

    Thank you! That did the trick.

    Can you help me with this, I can't get the css code to work, but I know I am missing something in the screenshots_viewer.php file to get it to work.

    I know it has to reference the .pagination class from the css file but not sure where to put the code on the screenshots_viewer.php page?

    Thanks!

  8. 15 hours ago, mischka said:

    right, so pilots self-certify they did a certain mission? and what are the missions... do you specify them or can they write anything? Which phpvms version you use? 

    phpVMS 5.X from Simpilot and yes the Pilots can write what they want as people like different missions and there is no way I can keep up with a list of missions, and also I am talking about FSX, FSX-SE, and FSW also as my members enter FSW flights manually now and the community mission creation on that platform is off the charts! No way to keep up! But the module has to keep up with the database records numbers right? And yes they self certify that they flew the mission!

     

    Thanks!

  9. 2 hours ago, mischka said:

    forget about the technicalities, what are you trying to achieve? some kind of logbook where pilots can write which missions they completed?

    Yes! And list them like the pireps_view_all.php page! Input them and output them per pilot as each one will have different missions they flew!

    Similar kind of form but would be mission instead of PIREPs, and probably really simple info for now like above

     

     

     

    2017-10-10_1641

     

    I added test data by adding fields to my pilot_list page just to see some data! Except that it would be info on a page per Pilot like the Pireps View All page! I do want the pilot ID and name on the page, the rest will be the mission info fields!

    2017-10-10_1643

     

  10. So I want to create a module that is basically a database form to input information on the page and be unique to each pilot. So the basics are similar to adding a field in the admin panel via the registration form as just an example, except I want it to be a separate page or module where each pilots data will be unique to them. It's probably really easy for most of you but I am not sure how to start. It's also like a forum post kind of. I simply want each pilot to enter or select from a drop information about missions and than output this information on a unique page for each pilot.

    For instance input would be something like:

    Mission                               Flown         Date

    Sitka Approach                    Yes             10/10/2017

    Riley Creek                           Yes             09/17/2017

    Return To Riley Creek.          No

     

    etc.....

     

    It's kind of like the Pilot List where it has their name, rank, hours, etc..... The pilots would need to be able to add info when they fly a mission!

     

    2017-10-10_1428

    Admin area for now!

    2017-10-10_1429

     

    I want the pilot to have access to this and add text, or select from a drop down? It appears it should not be too hard, but I am not sure! It would basically be like the Edit Form the pilots have access too! But with the Mission Info instead :)

  11. So I originally messed up and names the airline the wrong name. I want to delete this via phpMyAdmin even if it deletes the few schedules. Is this possible? Also, it is hiding the CH - Charter Flight on the Schedules page on my test site, but not in the registration form. What have I missed? Also, because these files are custom in my skins they seems to be causing a problem. Any suggestions appreciated, and thanks!

  12. I am having trouble getting this code working. I have a feeling I am suppose to put code in another file maybe?

                                                <?php MainController::Run('Pilots', 'RecentFrontPage', 8); ?>

     

    Any idea what I am doing wrong?
     

  13. 13 hours ago, servetas said:

    Try it ;)

    I will? So apparently because I have and area with the Active area in a box that part is not working correctly, or it just goes to a certain screen size. I other words won't work on say a cell phone?

    2017-09-20_1611

     

    So basically I am causing the problem now :) If it was the default code it would work? And the default columns, etc...

×
×
  • Create New...