-
Posts
217 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by HighFlyerPL185
-
Hi there, I discovered from the database that you can echo the date and the time of the last login from the phpvms_sessions table. I am not too experienced on PHP, and I am wondering how the $session_id variable works? I have this code, but it doesn't return anything. <tr> <td class="main1_1">Last Login Date</td> <td class="main2_1"><?php echo Auth::$session_id->logintime; ?></td> </tr>
-
Still no luck on this, not sure what's wrong From what I can see, not many people actually tried editing their bubbles, but it doesn't work in the table either. Have some of these been deprecated in phpVMS or something, anyone? I'm struggling to find the cause of the issue. EDIT: Decided to go for a phpVMS reinstall, and it works now.
-
Because I'm trying to return the Pilot ID as the callsign Nevertheless, the flight number will be useful in the bubble anyway, thanks. The template states the following: <?php /* This is the template which is used in the table above, for each row. Be careful modifying it. You can simply add/remove columns, combine columns too. Keep each "section" (<%=...%>) intact Variables you can use (what they are is pretty obvious) Variable: Notes: <%=flight.pilotid%> <%=flight.firstname%> <%=flight.lastname%> <%=flight.pilotname%> First and last combined <%=flight.flightnum%> <%=flight.depapt%> Gives the airport name <%=flight.depicao%> <%=flight.arrapt%> Gives the airport name <%=flight.arricao%> <%=flight.phasedetail%> <%=flight.heading%> <%=flight.alt%> <%=flight.gs%> <%=flight.disremaining%> <%=flight.timeremaning%> <%=flight.aircraft%> Gives the registration <%=flight.aircraftname%> Gives the full name <%=flight.client%> FSACARS/Xacars/FSFK, etc <%=flight.trclass%> "even" or "odd" You can also use logic in the templating, if you so choose: http://ejohn.org/blog/javascript-micro-templating/ */ ?>
-
I have a similar problem and I'm struggling to find the issue. I have this for the popup bubble window... <script type="text/html" id="acars_map_bubble"> <div style="font-size: 9px; text-align: left; width: 100%; line-height: 15px;"> <strong>Pilot In Command: </strong> <%=flight.pilotname%> <br /> <strong>Callsign: </strong><%=flight.pilotid%> <br /> <strong>Departure: </strong> <%=flight.depapt%> (<%=flight.depicao%>) <br /> <strong>Arrival: </strong> <%=flight.arrapt%> (<%=flight.arricao%>) <br /> <strong>Groundspeed: </strong> <%=flight.gs%> <br /> <strong>Altitude: </strong> <%=flight.alt%> <br /> <strong>Aircraft: </strong><%=flight.aircraftname%> <br /> <strong>Status: </strong><%=flight.phasedetail%> <br /> <strong>Distance/Time Remaining: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </div> </script> Pilot In Command is returned empty, while Callsign is merely '1000'. Any ideas?
-
How would I check for total hours flown and new members for a single day on the UTC timezone?
-
Still haven't figured out a way to do this, anyone got any clue?
-
It does actually work on all other pages, but I'll try that.
-
Yeah, it is included in the layout template. It works on other pages fine; it doesn't work on this one because there's an individual section for each hub - I don't know how to explain it.
-
I'm trying to seperate pilot roster into different sections, using jQuery tabs, however I have completely no idea where to start, or how the pilot roster works on phpVMS (never looked at the roster in detail). Basically, I want each tab to stand for a hub, i.e Belfast Aldergrove, London Gatwick, so on, and quite obviously, each tab would display pilots at that respective hub. I assume that pilots_list.tpl does a foreach or something for hubs, because the default code works for all of the hubs displayed on the list. I've done this so far, but it just merely replaces the titles of the hubs, and does not work at all. <div class="usual"> <ul class="idTabs"> <li><a href="#<?php echo $title?>" class="selected"><?php echo $title?></a></li> </ul> <div id="#<?php echo $title?>"> <!-- Should take the title of the first hub? --> <!-- Rest of the code, can interpret the default code, I've just styled it --> </div> </div>
-
Haha, I've noticed that eventually and fixed it, but thank you
-
Did not even think of that, thank you
-
Hi there, I was looking for any links to NOTAM pages or charts, because the old ones in Flight Briefing are outdated and don't work anymore. I tried capturing links from the FAA, but it seems they don't want you to capture their NOTAMs anymore.
-
Hi there, I want to save some space by inserting a METAR into a table, and with that in mind, it looks rather odd to have something like Current METAR: METAR: EGGP 131420Z 17006KT 7000 SCT025 SCT033 03/00 Q1021 How can I remove the bold METAR from the class? Where is it defined, does anyone know by any chance?
-
Oh, right. Yeah, it does make sense actually, disregard my previous post. I thought they don't show up at all, and only the ones with all days ticked do, which would lack any sense. How can I enable them to show regardless of the days selected? Basically, if the search criteria for Departure and Arrival Airports says "All", it will show all the routes, regardless of the days they fly on (i.e. no flight on Monday, but schedule still shows).
-
Really? Wow, that's unreasonable and a bit awkward. What do I do if I want the flight to fly only on selected days like Monday and Saturday but still be displayed on the search result page?
-
They are set. I've actually noticed now, that the ones with everyday selected are displaying, and the ones with for example Su W S don't. Odd.
-
Hi there, I am currently running phpVMS with six routes/schedules added that are all enabled, but only three show up in the schedule results, when I specify the search criteria as "All" on the fields. The bizarre thing, is that I created an echo to tell me how much schedules there actually are being displayed with the specified search criteria, and it returns the magic number of 6. Any ideas?
-
Try it. Throw the phpVMS installation into the /root folder of the software, fire up the application. It will start all the things you need (MySQL, PHP, Apache) and will enable you to install phpVMS on your localhost. I use it all the time.
-
If you want a good localhost solution, that phpVMS works well with, try downloading USBWebServer. Just my two cents
-
Great add-on Tom, I was looking for ages on how to link the phpBB forum with the phpVMS DB's, before realizing that phpBB is actually utter rubbish compared to all forum software out there. I was wondering, as a suggestion but also as a cheeky request, is there any possibility of adding Sticky Posts feature? I'll try to have a crack at scripting it if I'll get some time this week, but with my limited PHP knowledge, I probably won't get far. I'll see how I go
-
My humble "crew" center as I call it. I like to keep things minimalistic and simple, probably the reason why it's awful compared to the rest I've seen
-
Hello there, I wanted to construct a little table on Pilot's Public Profile, showing their top 5 departure and arrival airports based on their PIREPs. I was wondering, how could I do that and what bits of code would be necessary to pick up the data? I'm struggling a bit since I guess it would have to check all of the pilot's PIREPs and somehow pick the information from them. I'd appreciate some suggestions from you if possible, please. Kind Regards, HighFlyer
-
I haven't made a /mail folder actually, I thought it's meant to be in the skin root folder. Now it works, thank you David.
-
I have placed the template in my skin folder, yes.
-
Hello there, I have tried modifying the templates, but they don't seem to be working for some reason? I've dropped and reuploaded the database as suggested in the few first posts. This is the code I have... ... <?php if ($items > 0) { echo '<font color="yellow">You have new unread mail</font>'; } else { echo 'You have no new mail'; } ?> ... And the effect is the same as default. It just says "You Have Mail".