Jump to content

in2tech

Members
  • Posts

    292
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by in2tech

  1. Actually, don't thank me it was Nabeel in the original code I just directed you towards the code. Enjoy!
  2. Here is the one I am using that is FREE:
  3. 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?
  4. 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!
  5. Your welcome! Hope it works for you. It should!
  6. Nothing but a blank page! Doing something wrong for sure!
  7. 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). Place phpvms parallel to your public_html folder (as with the above step). Copy all of the contents of the phpvms/public folder to the folder you want (e.g, the root of public_html). 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.
  8. 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!
  9. I think he is talking about something like this: 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!
  10. You would have to add all the airports and aircraft, but you can install the Charter module, free or paid and they can choose the airport to airport. Only way I know how!
  11. I want to help test the new phpVMS on a shared host with an easy installer, kind of like the final version will be When it is available and I can make a separate folder for it along with my 5.X version. Just let me know if that is possible in the future?
  12. Asked in the support forums for the module!
  13. I found this link by searching on GitHub, not sure who it is by or if it works. I downloaded it and will run on test server to see! https://github.com/elfrost/phpvms_hubtransfer Apparently Sava was also elffrost
  14. Recent PIREP: http://www.fswbreak.com/index.php/pireps/view/360
  15. 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? Thanks!
  16. Does this module still not work with phpVMS V5.5?
  17. 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!
  18. 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!
  19. 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 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!
  20. 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! Admin area for now! 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
  21. 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!
  22. 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?
  23. 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? So basically I am causing the problem now If it was the default code it would work? And the default columns, etc...
  24. Yes I have a default rank image. What do you mean is it valid? It show's up in the pilot list! http://www.fswbreak.com/index.php/pilots
×
×
  • Create New...