Jump to content

markusr

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by markusr

  1. Hello, I am searching for an export of many airports. As we are running a business airline with no schedule, I want to get as much as possible airports in our database. I have added some manually, but it will take a while to have all imported... Is there a file available which I can import directly to the database? thanks, Mark
  2. Hello, when I am not logged into my VA, I can't see the images rotating. After Login the images will appear. Anyone an Idea? Maybe some overseen security settings in phpvms?? Thanks for help. Mark edit: solved - had an issue with the core_navigation.tpl
  3. Hi Lorenzo, did you had a chance to look into it?
  4. Hello, I have upgraded to 2.1.934 and it's working now. Mark
  5. Hello Lorenzo, I found also some issue. When editing or adding a new Expense I get this popup message: Warning: call_user_func_array(): First argument is expected to be a valid callback, 'Finance::editexpense2' was given in /var/www/xxx/html/xxxx/phpvms/core/classes/MainController.class.php on line 218 Also when adding some to the download page after clicking "add download" the windows does not disapear but the entry was done correctly. greetings, Mark Edit: I am using the new 1.1 version
  6. Hi, is there a way to use only dropdown menues and disable the default menues (pilots and pilots center) ?? And is it possible to remove the small thumbnails below the pictures? thanks, Mark
  7. Hi, no one any idea to this? best regards, Markus
  8. Hi there, I have tried to combine the bidding system with the Fleet List from Mitchell (http://forum.phpvms.net/index.php?topic=1665.0), but I have not suceeded. I want to more colums on this fleet list, which are: Flight number and the BID system. We are operating as a business airline, at the time, 5 aircrafts and I want to make our pilots available to book their aircraft direct from the fleet overview page. If an aircraft is booked it should be not bookable to someone else. Can someone help me in merging the bis system into the fleet page. thanks a lot, best regards, Markus
  9. Hi, i have just installed the pilot shop on my test instance. I can buy products but when i reload the shop and i cklick on pilothome, its says No products have been bought! The amount of the money was descreased foir the pilot who bought an item. Any idea?
  10. Hello Nabeel, thanks for the link, but this does not fully answer the question regarding google maps display. There it is only explained how to set up dynamic routes, this i have succesfully done, but the live map display is showing some weird information. Do you have another idea on this? regards, Markus
  11. Hi there, i have a weired question. We are using phpvms for our business virtual airline. So we have created a "schedule" and removed afterwards the App / Dep airports directly from the database with phpmyadmin. So every pilot can take his aircraft and fly where he wants to fly. I have noticed now that when for example the pilot starts XACARS and the Fligthsim and loads a FlightNr. into XACARS (screenshot) than the live map shows the current position with the aircraft icon but also shows a route also on the map. Here my question: 1) Can this be disabled, so that i only see the aircraft symbol and not the 2 Towers from Arrivial and depature airport connected with the red line ?? or 2) Can the card display the Arrivial and Depature airport connected with the red line based on the pilots entry from XACARS ?? Information for this Screenshot: The actual position on this shot from the aircraft was the US not Europe! So the coordinates are right and working.
  12. Hi guys, i have implemented in our website couple of weeks ago that in the public and private profile your current location is shown. <?php $lastreport = PIREPData::GetLastReports($userinfo, 1); if(!$lastreport) { $location = $userinfo->hub; } else { $location = $lastreport->arricao; } ?> <?php $airport_info = OperationsData::GetAirportInfo($location); $airportname = $airport_info->name; ?> <li><strong>Pilot Current Location: </strong><?php echo $location; ?> - <?php echo $airportname; ?></li> Now i figured out that all pilots have the same location displayed. Can anybody help me with the issue resolving. Thanks alot, Markus
  13. Hi, i have edited the airports with the correct chart links. for example: LOWI --> http://www.vacc-austria.org/?page=content/chartlist&icao=LOWI But when the pilots goes to pilot brief there is no chart available, because in the section "charts for LOWI" there is this link --> http://www.airnav.com/airport/LOWI#ifr Any idea how to get the links from the database to be displayed there? Thanks alot, Markus
  14. Yeah, i would also be interested in the addon. Please post it here when its ready. Thanks, Mark
  15. thanks alot. i also have now included the arrivial name: <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; $current_location2 = $pirep[0]->arrname; ?> <td><?php echo $current_location.' - '.$current_location2; ?></td>
  16. I tried the following in my fleet code: <h2>Fleet overview </h2> <?php $allaircraft = OperationsData::GetAllAircraft(); ?> <?php if(!$allaircraft) { echo '<p id="error">No aircraft have been added</p>'; return; } ?> <table border="1"> <thead> <tr><td><b>ICAO</b></td><td><b>Type</b></td><td><b>Registration</b></td> <td><b>Range in nm </b></td> <td><b>Empty Weight in kg </b></td> <td><b>Cruise Alt</b></td><td><b>Max Pax</b></td><td><b>Current Location</b></td></tr> </thead> <tbody> <?php foreach ($allaircraft as $aircraft) { ?> <?php $params = (array('a.registration'=>'[Registration]', 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep->arricao; ?> <tr> <td><?php echo $aircraft->icao; ?> </td> <td><?php echo $aircraft->fullname; ?> </td> <td><?php echo $aircraft->registration; ?></td> <td><?php echo $aircraft->range; ?> </td> <td><?php echo $aircraft->weight; ?></td> <td><?php echo $aircraft->cruise; ?></td> <td><?php echo $aircraft->maxpax; ?></td> <td><?php echo $pirep->arricao; ?></td> </tr> <?php } ?> </tbody> </table> But the location won't be shown for each aircraft...
  17. Oh, thanks for the hint. Yes, its working now perfect
  18. i have now: <?php class ForumRegister extends CodonModule { public function __construct() { parent::__construct(); CodonEvent::addListener('ForumRegister'); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { $userinfo = $eventinfo[2]; $fname = $userinfo['firstname']; $lname = $userinfo['lastname']; $pass = $userinfo['password1']; $email = $userinfo['email']; $code = $userinfo['code']; $get_uinfo = mysql_query("SELECT * FROM phpvms_pilots WHERE firstname='".$fname."' AND lastname='".$lname."' AND email='".$email."'"); $uinfo = mysql_fetch_array( $get_uinfo ); $str = $uinfo['pilotid']; $pilot_id = str_pad ($str,4,"0",STR_PAD_LEFT); $pilot_id = $code.$pilot_id; $pilot_name = mysql_escape_string ($fname. ' ' .$lname); $passsha1 = mysql_escape_string (sha1(strtolower($email) . $pass)); $passsalt = substr(md5(mt_rand()), 0, 4); $email = mysql_escape_string($email); $tm = time(); mysql_query("INSERT INTO smf_members (member_name, real_name, passwd, email_address, hide_email, id_group, time_offset, location, lngfile, validation_code, id_theme, is_activated, id_msg_last_visit, date_registered, password_salt) VALUES ('".$email."', '".$pilot_name."', '".$passsha1."', '".$email."', '1', '4', '', '', '', '', '0', '1', '1', '".$tm."', '".$passsalt."')"); $member_id = mysql_insert_id(); mysql_query("update smf_settings set value = '$pilot_name' where variable='latestRealName'"); mysql_query("update smf_settings set value = '$member_id' where variable='latestMember'"); } } } ?> and this error: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ForumRegister::index' was given in /volume1/web/Markus/phpvms/core/classes/MainController.class.php on line 292 when trying to open: /phpvms/index.php/ForumRegister
  19. Hi guys, iam playing around with the forum integration and SMF2.0 RC2. I have the same database for phpvms and smf with different prefixes. smf_ for the forum and phpvms_ for the phpvms. i created a folder under core/modules called ForumRegister there i placed a php file called ForumRegister.php with those content: <?php class ForumRegister extends CodonModule { public function __construct() { CodonEvent::addListener('ForumRegister'); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { $userinfo = $eventinfo[2]; $fname = $userinfo['firstname']; $lname = $userinfo['lastname']; $pass = $userinfo['password1']; $email = $userinfo['email']; $code = $userinfo['code']; $get_uinfo = mysql_query("SELECT * FROM phpvms_pilots WHERE firstname='".$fname."' AND lastname='".$lname."' AND email='".$email."'"); $uinfo = mysql_fetch_array( $get_uinfo ); $str = $uinfo['pilotid']; $pilot_id = str_pad ($str,4,"0",STR_PAD_LEFT); $pilot_id = $code.$pilot_id; $pilot_name = mysql_escape_string ($fname. ' ' .$lname); $passsha1 = mysql_escape_string (sha1(strtolower($email) . $pass)); $passsalt = substr(md5(mt_rand()), 0, 4); $email = mysql_escape_string($email); $tm = time(); mysql_query("INSERT INTO smf_members (memberName, realName, passwd, emailAddress, hideEmail, ID_GROUP, timeOffset, location, lngfile, validation_code, ID_THEME, is_activated, ID_MSG_LAST_VISIT, dateRegistered, passwordSalt) VALUES ('".$email."', '".$pilot_name."', '".$passsha1."', '".$email."', '1', '4', '', '', '', '', '0', '1', '1', '".$tm."', '".$passsalt."')"); $member_id = mysql_insert_id(); mysql_query("update smf_settings set value = '$pilot_name' where variable='latestRealName'"); mysql_query("update smf_settings set value = '$member_id' where variable='latestMember'"); } } } ?> But whats next? How can i logon to the forum? When i load the Module with /phpvms/index.php/ForumRegister i get this error: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ForumRegister::index' was given in /volume1/web/Markus/phpvms/core/classes/MainController.class.php on line 292 any ideas how to get those running that the pilot can be loggin into the forum with his pilot id and password. Need there be anything changed also in the Forum config? Thanks for help, Mark
  20. Hi Will, i got it now running with this: <td><a href="http://www.vataware.com/pilot.cfm?cid=<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');?>" target=_blank><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');?></a></td> and the standard custom fields. Thanks alot for the hint. Mark
  21. Do you have a link to an example how to get the current location of an aircraft ? Taht would be nice. Thanks, Mark
  22. Hi Piper, you need also declare a new varible in the beginning: <tr> <th>Pilot ID</th> <th>Name</th> <th>Vatsim ID</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> <th>VATSIM ID</th> </tr> it should work then. But i have another question. I want to connect the vatsim id with the vataware website: http://www.vataware.com/pilot.cfm?cid= after the = there should be the vatsim id from the database. Like i did it always in php it wouldn't work here. Has anyone an idea how to link a variable to an URL. Thanks alot. Mark
  23. I did a complete reinstall on another server and there its working. Seems that there are some issues on the one server. thanks, Mark
×
×
  • Create New...