-
Posts
107 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by CFVA
-
-
Hi All
I've created 2 Custom Fields for VATSIM/IVAO ID during registration.
How do I get these added to the Pilot Centre to show?
Using PHPVMS 5.5.2
Thanks
-
Thank you so much. I hadn't even noticed the extra < in the line.
Works great now
-
Want to add the aircraft being flown in the Live ACARS map page.
ACARS.PHP says variable <%=flight.aircraftname%> Gives the full name
So I added that in ACARS.PHP:
So I have
<tr>
<td><b>Pilot</b></td>
<td><b>Flight Number</b></td>
<td><b>Departure</b></td>
<td><b>Arrival</b></td>
<td><b>Aircraft</b></td>
<td><b>Status</b></td>
<td><b>Altitude</b></td>
<td><b>Speed</b></td>
<td><b>Distance/Time Remain</b></td>
</tr>
for the table &<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td><?php echo "CF"?><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><<%=flight.aircraftname%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>All other variables show except aircraft name!
Using kAcars 1.0.1.5 & PHPVMS 5.5.2
Thanks in advance
-
I use Ron’s Editor which is great but won’t allow adding header.
I'm asking why it doesn’t do it like it does with the aircraft file!
i’m not looking for work around just what needs fixing for it to work
- 1
-
The export airport doesn't export a header row, like export aircraft does.
Any way to add a header row to exporting airports?
PHPVMS 5.5.2
-
Thanks
-
Can someone just point out the differences between the various versions of phpVMS?
What's the latest stable version?
-
Try the solution here
-
Are you asking if the code is right? Does it work?
-
Anyone able to help. This is still not working
-
2 hours ago, servetas said:
The "Bid added" is included within your core/modules/Schedules/Schedules.php file. It should be around line 144.
___________________________________________
phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum SystemThanks, phpVMS Guru!!
Still got problem with the Advanced schedule search
-
I've searched through ALL files for the words "Bid added" that appear after selecting a flight, but can't find it! I want to change it to "Flight Booked".
I've found the text "Add bid" and changed that to "Book Flight" but can't see where the "Bid added" text comes from.
Thanks
-
-
-
11 minutes ago, servetas said:
What do you see after you click on the search button? What is your website url?
No error messages! Just no flights found.
www.lakervirtual.com
-
1 hour ago, servetas said:
Are you using a different table prefix for your database tables? The module is set to query the phpvms_schedules database table. Does it exist?
No. And Yes. The normal search works just fine.
-
10 hours ago, servetas said:
Follow the steps below:
1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function".
2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php".
3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php".
They should work correctly afterwards.
Done all that, but no routes show after the search!
-
1 hour ago, servetas said:
Yes they can but you will have to make a few changes in order to make it work correctly. Which module are you trying to install on 5.5?
-
Can modules with file extension TPL be used with Simpilot v 5.5.2??
-
18 hours ago, servetas said:
I do not believe that this is the issue but can you try the following solution? Open your admin/modules/Import/Import.php, on lines 305-306 you should have something like this:
$line = "{$s->code},{$s->flightnum},{$s->depicao},{$s->arricao},"."{$s->route},{$s->registration},{$s->flightlevel},{$s->distance}," . "{$s->deptime},{$s->arrtime},{$s->flighttime},{$s->notes},"."{$s->price},{$s->flighttype},{$s->daysofweek},{$s->enabled},{$s->week1},{$s->week2},{$s->week3},{$s->week4}";
As you can see, I have remove all the spaces between all the elements and especially the {$s->daysofweek}. Could you please attach your Import.php file?
The most practical way is running a mysql command through phpMyAdmin as soon as you import your schedules that will automatically select all the days of the week.
UPDATE phpvms_schedules SET daysofweek='0123456', week1='0123456', week2='0123456', week3='0123456', week4='0123456' WHERE 1;
Just do not forget to replace "phpvms_" with your own database tables prefix if you are using a different one.
That seems to have solved it, by replacing the line of code in import.php. There were other columns that had spaces added everytime on export but all seems ok now.
Thanks for the help
-
23 hours ago, servetas said:
Hmmm, which phpVMS version are you using?
simpilot 5.5.2
-
When exporting the schedule from the Admin Centre option, it is exporting the daysofweek column with a preceding SPACE i.e. " 0123456" not "0123456". This gives the problem that when imported back SATURDAY is always missing from the schedule, as it imports " 012345"
Any ideas please as it is really annoying have to edit the whole column everytime
-
12 hours ago, mischka said:
I see an authentication error in the logs. I added http:// in front of your url. if it still doesn't work shoot me a PM!
It works now, thanks
-
I have installed this as per the readme file, and when I try to add a new aircraft I get no data, just a message: Fetching aircraft data from https://virtualairlines.eu
No data is received, all boxes still blank.
Any ideas?
Add Custom Fields, how to show? [SOLVED]
in Support Forum
Posted
Thanks, works great, for anyone else
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'FIELD_NAME'); ?>