-
Posts
1076 -
Joined
-
Last visited
-
Days Won
8
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Vangelis
-
First how do you wich flight Is the last one because i do not see any query and the same goes for the next flight
-
info(a)baggelis.com or skype sv5frv1
-
You mean if Elseif Elseif Else if Elseif And etc ? Good luck Ps. Have a look at the foreach statement http://www.php.net/manual/en/control-structures.foreach.php
-
and also are you able to provide us with a database backup to check it on our machines to see if it is indeed a db problem and not a file isue
-
From where did you downloaded the phpvms and also what is your php version ?
-
it depends on the acars software as we use our own it is realtime we have setted it up every 1 sec to update
-
indeed i had it first with airplain icon but i didnt like it so i put it just a line with an arrow the solution was to take the coordinated from the acars and save it in a temp table and after flight completion it is transfered to the pireps table
-
Here is a link to a pirep that uses a php code solution that you dont need for a custom acars http://www.gsairways.gr/phpvms/index.php/pireps/view/237 with red is the route from the phpvms flightplan and the black is the actual flown route
-
is it with all the pilots filing pireps or specific pilots ?
-
Damn he got me my solution is @ line 93 in core/common/registrationdata.class.php add $money=Config::Get('SALARY_NEW_PILOT'); change the sql query to $sql = "INSERT INTO ".TABLE_PREFIX."pilots (firstname, lastname, email, code, location, hub, password, totalpay, salt, confirmed, joindate, lastip) VALUES ('{$firstname}', '{$lastname}', '{$data['email']}', '{$code}', '{$location}', '{$data['hub']}', '{$password}', '{$money}', '{$salt}', {$confirm}, NOW(), '{$_SERVER['REMOTE_ADDR']}')"; add in local.config.php Config::Set('SALARY_NEW_PILOT', '500.17');
-
Problem integrating airline stats into static website
Vangelis replied to ahughes3's topic in Support Forum
from my experience with joomla i had the same problem whenever i made a module with some info from phpvms the site broke down most propably due the incompartibility of the 2 frameworks what i have done is setted up my joomla site and then made the same templte for phpvms. if you want you can have an idea at www.gsairways.gr -
A link would also be useful for more assistance
-
There seems to be a mistake in the query in the kacars module atm im not in front of a pc so will get back to you later
-
as it says here Notice: The template file "/home/a1580112/public_html//core/templates/forum_style.tpl" doesn't exist in/home/a1580112/public_html/core/classes/TemplateSet.class.php on line 248 you are missing the forum_style.tpl file that is part of toms VAforum module so there are 2 solutions 1. remove <? Template::Show('forum_style.tpl'); ?> line from layout.tpl file it should be between <head> and </head> line 2 install the module by downloading it from github and following the instructions https://github.com/t...erritt/VAForum2 and remember whe are helping !!!!!!!! no need to ask for help the ship is not sinking yet
-
Problem integrating airline stats into static website
Vangelis replied to ahughes3's topic in Support Forum
Didn't we did a teamviewer session last year if you want we can do it again on friday -
Can you tell us how you installed it ?
-
the website seems to be out of order the problem is that because fspap has a diverent db layout you will have to run a query joined with the db of phpvms in order to assign the fspap flight to the phpvms pilots. for example in flights table there is no pilot id but there is the pilots name instead in the phpvms_pireps there is no name column but there is a pilot id.those 2 have to get joined and then imported. if you make this script and then echo it on a table it is very easy to import it to excell and then import it to phpvms_pireps . so first you will have to import the pilots in phpvms with the same name as they are in fspapp. second you will have to match the fspap name with the phpvms name third you will have to cut the excess from the departure/arrival airport because phpvms requires only the icao ( for example KJFK) and then put everything in a table in order to extract it to excell. to sum up because i do not have your pilot info i cannot make an automatic php script as the names need to be the same
-
you need to convert the data to match the phpvms_pirep table i will try to make you an automated script later on if you can wait or if you want you can send me the db to info(a)baggelis.com and i can try to do it for you
-
I forgot to mention that i could help you doing that if you need any help
-
Off topic starts First of all you will need to do plenty of if's like that Second what will happen when current chief pilot leaves your va for any reason. In my opinion the best solution would be a custom module connected with your database and assigning the trainer or manual to the pilot or automaticly /off topic end Here is your answer If(Auth::$userinfo->rank == "rank code" ) { Echo the name ; } ElseIf(Auth::$userinfo->rank == "rank code2" ) { Echo second name ; } And etc do not forget in order to avoid any errors Else { Echo "no trainer found" ; } Of topic lesson 1time the = might work but this means you are assigning data to a variable Twice the == means if something is like something
-
Everything is possible if you have the knowledge to do it You will need to export the data from the current tables and modify it and insert it to the new one
-
The code is already implemented you just need to update the navdata download it from here http://www.fs-products.net/index.php/downloads/viewcategory/6-phpvms-modules and install it
-
What do you want do ?
-
As this answer is wrong after viewing the statsdata.class.php i confirm that the statistics wont and pireps wont be affected as manuel says below
-
Most posibly jquery incorpatibility or you are loading jquery 2 times have a look at the source code of your site and try to remove the jquery line from your header.tpl