Fernando Posted January 10, 2013 Report Posted January 10, 2013 Dear, I see that the staff is very advanced using PHPvms, I went on a website and found interesting a system that only releases the registration if the pilot has a VATSIM or IVAO VID. It's a pretty cool system, ie the pilot enter the registration page by clicking on the link "I want to register" opens a page to enter the VID, the system does a search if the result is correct the record is released, if not real system show an error message. Does anyone have any idea how can we develop it? Example <div id="myModal" class="modal hide fade"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Checking the network profile desired flight</h3> </div> <div class="modal-body"> <div class="span4"> <h2>IVAO</h2> <form class="form-inline" method="post" action="yoursite.com/index.php/registration" name="formIVAO" id="formIVAO"> <input class="span3" placeholder="VID IVAO" type="text" name="vidIVAO" id="vidIVAO" value="" maxlength="6"> <button class="btn" type="submit" name="checkIVAO" id="checkIVAO" value="checkIVAO">Check</button> </form> </div> <div class="span4"> <h2>Vatsim</h2> <form class="form-inline" method="post" action="yoursite.com/index.php/registration" name="formVATSIM" id="formVATSIM"> <input class="span3" placeholder="VI VATSIM " type="text" name="cidVATSIM" id="cidVATSIM" value="" maxlength="7"> <button class="btn" type="submit" name="checkVATSIM" id="checkVATSIM" value="checkVATSIM">Check</button> </form> </div> </div> <div class="modal-footer"> <a href="#" class="btn btn-danger" data-dismiss="modal" >Close</a> </div> </div> Where can I get the information to produce a result? Quote
Moderators Kyle Posted January 10, 2013 Moderators Report Posted January 10, 2013 It can be simple... I done mine when I used to work for SCXVA last year... But be careful and be warned, VATSIM Admins would ban your website from their servers if you query too much such as like quering your list of pilots with the VATSIM ID every hour will get you banned. They suggest to run though your pilots every 48 hours. This is a start for you here... REMEMBER: I'M NOT RESPONSIBLE FOR YOU TO BE BANNED FROM VATSIM SERVERS because you didn't read the warning! <?php //Ref = http://forums.vatsim.net/viewtopic.php?f=70&t=40152 //As posted in the forums, don't run this php file every 15 mins, or you could result a ban from it. //They suggest to run it at least 48 hours max. //Query the VATSIM ID $id = '123456'; //Get the content of a XML Response $response = file_get_contents('https://cert.vatsim.net/cert/vatsimnet/idstatus.php?cid='.$id.''); //Load the XML String, use simplexml $xml = simplexml_load_string($response); //Echo out the information. echo $xml->user; ?> Quote
Fernando Posted January 10, 2013 Author Report Posted January 10, 2013 Kyle (Vansers) Thankyou, you know the way I can now get the IVAO? stay quiet before doing so I want to make sure if they can release the tool. Quote
Moderators Kyle Posted January 10, 2013 Moderators Report Posted January 10, 2013 Kyle (Vansers) Thankyou, you know the way I can now get the IVAO? stay quiet before doing so I want to make sure if they can release the tool. IVAO doesn't have that similar functionally as I know so far. So, I guess it's just only for VATSIM. Quote
Fernando Posted January 10, 2013 Author Report Posted January 10, 2013 Perfect, but have a website that has this system, found interesting, see, visit the link. http://vai.aero/inde...tration#myModal At the bottom of the site has a link ( Primeira Etapa ) green, in English the name means FIRST STEP. Very good, that programmed them using our system Phpvms and by the way did a great job. This site also has the same system, just click on the link below, the site has a version in English. http://www.tamvirtual.com.br/?pag=regulamentation Quote
Moderators Kyle Posted January 11, 2013 Moderators Report Posted January 11, 2013 Perfect, but have a website that has this system, found interesting, see, visit the link. http://vai.aero/inde...tration#myModal At the bottom of the site has a link ( Primeira Etapa ) green, in English the name means FIRST STEP. Very good, that programmed them using our system Phpvms and by the way did a great job. This site also has the same system, just click on the link below, the site has a version in English. http://www.tamvirtua...regulamentation I may have to search for IVAO as well. I been looking for it, but no joy to find one like VATSIM. Quote
Fernando Posted January 11, 2013 Author Report Posted January 11, 2013 I'll see if I can locate, anyway thanks for the tips. Helped me a lot. Any news I post here .. Quote
Felipe Posted February 6, 2013 Report Posted February 6, 2013 Hello, Fernando! VAI VA is mine. This registration system I developed with the precisious help of two guys: Icaro Souza and Filipe Leandro. We made a hard php programming inside the registraion tpl. It has three steps. The first one is this that checks online, real time, if the pilot's profile on IVAO or on Vatsim matches our requirements. If so, it lets de pilot go to the second one, which is a theorical exam with 20 questions from a random query on our DB. If the pilot get 75%, then it allows him to field the registration for that comes natively in phpVMS but with some more modifications to match our needs. And more.. In case the pilot fails the exam or does not have the requirements it blocks him for 7 days (in case of failing the exam) and for the time needed until he/she gets the requierements on IVAO/Vatsim. That's it, basically. All I have to do then is to accept or reject the registration. There is no need to worry if the pilot matches or not the requierements because the system has already done it for me. Quote
Fernando Posted March 17, 2013 Author Report Posted March 17, 2013 Felipe perfect this work. Thank you! Bye Luiz Fernando Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.