Jump to content

CVV001

Members
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Italy
  • Interests
    PPL(A)

Contact Methods

  • Skype
    gk.ferrari

CVV001's Achievements

Newbie

Newbie (1/14)

4

Reputation

  1. I have installed an old version of templates and modules of Screenshots center and all works fine ;-) for me now the problem is solved if necessary i can send a zip with the old 'modules and templates' and a modified 'ScreenshotsData.class' file that for me are now working... tnx to all for the support
  2. Pictures are uploaded and approved normally in a completely new va installation that have no problem with nothing other, including database/email functionality, all is fine and correct. I can see the data with phpmyadmin and the uploaded pictures in the browser. The server (Aruba) is an os Linux with MySQLi 5.5.45-37.4-l and php 5.5.31 It is not a very important module for the va, if still does not work i uninstall it
  3. All the tables are populated with correct data - name of uploaded pictures and relative comments - but the screenshots.tpl return "There are no screenshots in the database!"
  4. prefix of my tables are correct ( phpvms_screenshots - phpvms_screenshots_comments - phpvms_screenshots_ratings ) and this is a fresh install of screenshots modules and tables. Pics folder is placed in the root of my server and the pictures are accessibles from browser ( see: http://www.chivolava...cockpitPA32.jpg )
  5. same problem for me... pictures are uploaded in the "pics" folder and database tables correctly populated solutions ? ? ? ciao from Italy
  6. I have made an addition to the source code of "schedule_searchform.tpl" to obtain the desired search for a 'Flight Type' in Your VA <h3>Search Schedules</h3> <form id="form" action="<?php echo actionurl('/schedules/view');?>" method="post"> <div id="tabcontainer"> <ul> <li><a href="#flighttypetab"><span>By Flight Type</span></a></li> <li><a href="#depapttab"><span>By Departure Airport</span></a></li> <li><a href="#arrapttab"><span>By Arrival Airport</span></a></li> <li><a href="#aircrafttab"><span>By Aircraft Type</span></a></li> <li><a href="#distance"><span>By Distance</span></a></li> </ul> <div id="flighttypetab"> <p>Select desired flight type:</p> <select id="flighttype" name="flighttype"> <option value="">Select Passenger - Cargo - Military</option> <option value="P">Passenger</option> <option value="C">Cargo</option> <option value="H">Charter</option> </select> <input type="submit" name="submit" value="Find Flights" /> </div> Now you must open and modify also the file located in /modules/Schedules/Schedules.php adding the part in red public function showSchedules() { $depapts = OperationsData::GetAllAirports(); $equip = OperationsData::GetAllAircraftSearchList(true); $this->set('depairports', $depapts); $this->set('equipment', $equip); $this->render('schedule_searchform.tpl'); # Show the routes. Remote this to not show them. $this->set('allroutes', SchedulesData::GetSchedules()); $this->render('schedule_list.tpl'); } public function findFlight() { if($this->post->flighttype != '') { $params = array('s.flighttype' => $this->post->flighttype); } if($this->post->depicao != '') { $params = array('s.depicao' => $this->post->depicao); }
  7. I think there is an error in the construction of the SQL Statements that must detect the active/inactive schedules because I have both schedules (active and inactive) but the result is that always the entire table is displayed (active + inactive)
  8. Many TNX for the advice. Now my problem is solved with the above code in the file \core\modules\Forum\Forum.php in section 'protected function post_new_topic()' // Send a mail to the admin that a new post is inserted in the forum $sub = 'A new post was added in the forum'; $message = "The pilot {$pilot_id} has added a post in the forum with the title {$title}."; $email = Config::Get('EMAIL_NEW_REGISTRATION'); // code from pilot registration if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); // End MOD sending mail since I have little experience with php i desire to send to the admin the name of the pilot and the name of the board but i have no idea where i can get this data... TNX - Gianni
  9. Sorry, my mistake... I had read the code in an another file. My question is: it is possible to send an email when a new post is inserted in the forum ? //VAForum Original by:simpilot //VAForum Security updates + VAForum 2.0
  10. Very useful add-on In the \core\common\ForumData.class.php i found the code that send an email to the administrator but this is not function in my VA... should i configure anything ? Note that pireps and all other emails are sent correctly to the administrator. TNX in advance Gianni
  11. After two months test with 'Military' instead 'Charter' the pireps sent are always treated as PAX
  12. The VA IVP is officially born 01/01/2011. After six months activity the registered pilots are 53 they can fly 83 schedules for SAR, CARGO, PAX, MILITARY and Aerobatics flights. our pilots primarily use Microsoft Flight Simulator 2004, but the airline also accepts those who use FSX, with the support of a FShost and IBnetplayer (this only for FS2004). New pilots are welcome - for registration -> VA Italian Virtual Pilots *** Many thanks to the staff of phpvms for the great hard work ;-) *** Ciao and good wind to all simmers from the staff IVP and the CEO Gianni
  13. thank you for the advice, I do a test...
  14. I have set this flight types in core/app.config.php Config::Set( 'FLIGHT_TYPES', array( 'P'=>'Passenger', 'C'=>'Cargo', 'H'=>'Charter', 'M'=>'Military' ) In the admin center - airline operations - add schedule, the dropdown list show correctly the Military flight type and is recorded on the schedule. When i bid this military flight and send the pirep with kACARS it is registered on the phpvms_pireps table as a 'P' flight. How can i solve this problem ? What is the program that receive the data from the bid and then write on the pireps table ? TNX - Gianni
  15. Good work Henrik... i have modified my pilots_list.tpl with your code and all work fine TNX Gianni ( IVP001 )
×
×
  • Create New...