-
Posts
1821 -
Joined
-
Last visited
-
Days Won
53
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Strider
-
Well it isn't as easy as using html files, as they have to be tpl files, because there is php code in the templates. Use the default skin and look at that, and customise it the way you want. But create a new skin folder. Then when you are finished upload that skin folder you created with all the template files inside that you edited to the lib>skins folder and then the name should show up in the general settings under switch skin section. You can import an existing CSS file, but you may have to change some of the divb id's and classes to get the styles to show right.
-
As a rule of thumb, you really should not be using inline styling. You should always use external style sheets. As it is easier to change the color of an object that is repeated on all pages. Inline you would have to go through each page and update the styles that way. external style sheets, make that into just editing one file.
-
There is an easier way, in the footer styles, add: clear:both; That should force the footer to the bottom, and everything to remain where it is.
-
No Problem.
-
I didn't code this, just showing how to get it to work with phpvms
-
Tbh it doesn't really matter that much if it goes to www.domain.com or to domain.com, it is still the same web site you are going to.
-
Then you don't need to create a new layout.tpl, just use the one in the crystal skin. All the layout tpl does is have the header, a place holder for the main part of the site, and the footer. You edit the other templates to get them to look the same. You don't create a new layout.tpl file everytime you design a new skin.
-
Why do you need to make one? Your question is not very clear. Have a look at the layout.tpl and see how it is made.
-
Look in the crystal skin folder, that is where the layout.tpl file is.
-
It would be easier to just make that into a template and use it in phpvms. It isn't that hard to do.
-
Try changing the PHPVMS_ prefix, to another, if the db has another one in there with the same prefix, it will fail to install.
-
You trying to create a signature for your VA? If so, it doesn't require any coding at all, just the ability to design a template, the system puts the text on it for you.
-
Try downloading phpvms again, it may have gotten corrupted when you downloaded it.
-
Don't worry, that happens to us all.
-
Edit the css files that come with the datatables.
-
Just to add, you can try the other versions of it that are included in the download, and see what works for you. All that is needed is a change to the little bit of js code that you put above the table you want to use it for. They give you that code, so there isn't really any major coding needed.
-
No Problem, took me ages to get it to work myself haha.
-
This is a different version of the pagination that someone else posted a while back. I will explain how to install the code. Here goes. To start off you will need the files for Datatables which can be obtained here. unzip the files from the download, and have a look at the examples provided, which will also help you out. The main files from it needed are: jquery_dataTables.js, jquery_dataTables.min.js, jquery.js, the images from the images folder, one, both or none of the CSS files if you want to use those. Secondly you will need core_htmlhead.tpl and the schedules_results.tpl file. Yes I know we shouldn't really edit the core_htmlhead.tpl, but it is the only way it will work, I tried not editing that, but just could not get it to work. You will then need to open up the core_htmlhead.tpl file and link jquery_dataTables.js file there, You can link to the css files the normal way, though you don't need the css files provided, if you don't want to. After that open up the schedule_results.tpl file and below the first piece of php paste the following: <script type="text/javascript"> $(document).ready(function() { $('#schedule').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> change the #schedules to whatever id you have given the table, or class which then you would have to put .name. It isn't that hard to install, and looks good. Then edit the table here is an example table to show how it is structured: <script type="text/javascript"> $(document).ready(function() { $('#mytable').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> <table id="mytable" class="display""> <thead> <tr> <th>table</th> </tr> </thead> <tbody> <tr> <td>Table body</td> </tr> </tbody> </table> You don't have to put class="display" into the table, you only need that, if you are using the css files provided. It gives the site a bit of a boost asthetically. To view an excample of it click here. This can also be used for any other table that is getting too long for your liking, you just change the #schedules to the relevant table id name. I hope it was easy to understand and follow this. **To use this on the roster, you must use a single roster, not one broken up into hubs.**
-
<?php if(!$allroutes) { echo '<p align="center">No routes have been found!</p>'; return; } ?> <script type="text/javascript"> $(document).ready(function() { $('#schedule').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> <div> <table border="1" class="display" id="schedule"> <thead> <tr id="tablehead"> <th>Flight No.</th> <th>Dep. Time</th> <th>Dep. Airport</th> <th>Sun</th> <th>Mon</th> <th>Tue</th> <th>Wed</th> <th>Thurs</th> <th>Fri</th> <th>Sat</th> <th>Arr. Time</th> <th>Arr. Airport</th> <th>Distance</th> <th>Aircraft</th> <th>Options</th> </tr> </thead> <tbody> <?php foreach($allroutes as $route) { /* Uncomment this code if you want only schedules which are from the last PIREP that pilot filed */ /*if(Auth::LoggedIn()) { $search = array( 'p.pilotid' => Auth::$userinfo->pilotid, 'p.accepted' => PIREP_ACCEPTED ); $reports = PIREPData::findPIREPS($search, 1); // return only one if(is_object($reports)) { # IF the arrival airport doesn't match the departure airport if($reports->arricao != $route->depicao) { continue; } } }*/ /* Skip over a route if it's not for this day of week Left this here, so it can be omitted if your VA doesn't use this. Comment out these two lines if you don't want to. */ /* Check if a 7 is being used for Sunday, since PHP thinks 0 is Sunday */ $route->daysofweek = str_replace('7', '0', $route->daysofweek); if(strpos($route->daysofweek, date('w')) === false) continue; /* END DAY OF WEEK CHECK */ /* This will skip over a schedule if it's been bid on This only runs if the below setting is enabled If you don't want it to skip, then comment out this code below by adding // in front of each line until the END DISABLE SCHEDULE comment below If you do that, and want to show some text when it's been bid on, see the comment below */ if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { continue; } /* END DISABLE SCHEDULE ON BID */ /* Skip any schedules which have aircraft that the pilot is not rated to fly (according to RANK), only skip them if they are logged in. */ if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { /* This means the aircraft rank level is higher than what the pilot's ranklevel, so just do "continue" and move onto the next route in the list */ if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td class="center"> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?></a> <td><?php echo $route->deptime;?></td> <td class="centre"><?php echo $route->depicao . ' '. $route->depname;?></td> <?php // We are gonna loop each day of the week for($dayofweek = 0; $dayofweek < 7; $dayofweek++) { // echo our column opening echo '<td class="centre">'; // Check if $i (the current day of week) exists if(substr_count($route->daysofweek, $dayofweek) > 0) { // there is a flight for sunday , so echo that plane icon out echo 'Plane Image goes here'; } // Close that column echo '</td>'; } ?> <td><?php echo $route->arrtime;?></td> <td><?php echo $route->arricao .' '. $route->arrname;?></td> <td><?php echo $route->distance . Config::Get('UNITS');?></td> <td><?php echo $route->aircraft; ?></td> <td nowrap> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br /> <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> <?php } } ?> </td> <?php /* END OF ONE TABLE ROW */ } ?> </tbody> </table> </div> <div class="spacer"></div> <hr> There is the full code, for the schedules page.
-
Go to the admin panel>settings>maintanance>reset acars. to stop flights showing for 24 hours after the flight has f inished or has crashed, open the local.config.php file, and edit the acars live time.
-
Try using the reset pilot pirep count, that may fix that problem.
-
The flash picture gallery takes ages to load, the nav looks weird, too heavy to the left, should be centered, as it will look better asthetically. Keep working on it, and you will get it perfectly.
-
Currently, that is not part of phpvms, but if you know php and are any good at it, I am sure you can make a module that will do that, or edit the schedules page to allow that. Or you just create a rule, and make it public that routes must be flown with the correct aircraft.
-
When putting the aircraft into phpvms, you are able to restrict them to ranks. So create your ranks, and restrict the aircraft to each rank. And inserting the schedules, don't put a cessna 172 on a kjfk-klax route, simple as that.
-
<?php if(Auth::LoggedIn() == false){ echo 'Hello Guest'; }else{ echo 'Hello '.PilotData::GetPilotCode(Auth::$userinfo->firstname, $userinfo->lastname; } ?> the last part is missing a ) at the end. Here is the code with that included: <?php if(Auth::LoggedIn() == false){ echo 'Hello Guest'; }else{ echo 'Hello '.PilotData::GetPilotCode(Auth::$userinfo->firstname, $userinfo->lastname); } ?>