Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/04/20 in all areas

  1. I got code working, but not correctly. It is just showing 5 in sequence by flight number. And I think I know why, when you add a schedule there is no date associated with the entry in the db But there is in the PIREPS table. I will work on it and try to get it to work. When I do I will upload the code to my github account.
    1 point
  2. Just create a module (or add to an existing module) in core/modules/MODULE NAME/MODULE NAME.php and inside it add a function with your data in it. See the example here (the code for what you provided) https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/modules/PIREPS/PIREPS.php#L517 Then you can use <?php MainController::Run('MODULE NAME' 'FUNCTION NAME', ADDITIONAL PARAMETERS); ?>
    1 point
  3. There is a page section under the admin panel sidebar just like the earlier versions. It's in the 'Options' tab then 'Pages' link and when you create one there's an option (checkbox) to enable it to the 'Public' which should show up if you are not logged in. There is a bug at the moment where it is restricted to only logged in users but this should be fixed by the first official release. If you know enough about the Laravel ecosystem, you could make your own template, route it and link it up to your site as well. Here's a few links if you want to explore that: http://docs.phpvms.net/customizing/layout-basics Note that there have been some changes in newer versions, particularly with routing since I posted that.
    1 point
  4. Are they disappearing from the db? Or just not showing on the site? If so then I think what might be happening is when you put the code back, you add or take away code or an ; or something like that that is causing those to disappear. PHP can be very finaky when it comes to code. Miss a ; or a comma and all hell breaks loose. Also what file are you editing? If you have not done anything other then remove some code, try uploading the original file from a fresh download.
    1 point
×
×
  • Create New...