yototo01 Posted April 23, 2017 Report Share Posted April 23, 2017 Hello, I am currently applying for certification of our VA at IVAO. However have asked us to insert the VID of each driver in the roster driver ... I do not know how to do it and how to make this automatic operation afterwards for future registrations. Thank you. Quote Link to comment Share on other sites More sharing options...
web541 Posted April 23, 2017 Report Share Posted April 23, 2017 Go to your CustomProfileFields inside your admin panel, and add one called "IVAO ID" (without the quotes) Then make a new module called IVAO or something (just put a folder called IVAO in the modules folder), like this: -- core --- modules ---- IVAO ----- IVAO.php Inside IVAO.php put this <?php class IVAO extends CodonModule { public function index() { $pilots = PilotData::getAllPilots(); foreach($pilots as $pilot) { $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); if($fieldvalue != '') { if(strlen($fieldvalue) < 5) { continue; } if (!is_numeric($fieldvalue)) { continue; } echo $fieldvalue.'<br />'; } } } Then you should be able to go to http://yourvaurl.com/index.php/IVAO and see all the ID's on one page. Also, you can put this code on your pilot roster to help so they can see which pilot is who <?php echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); ?> Quote Link to comment Share on other sites More sharing options...
yototo01 Posted April 24, 2017 Author Report Share Posted April 24, 2017 Thank's sir but when i whant to insert IVAO ID in my cunstom fields it marks the following error: There was an error saving the settings: Unknown column 'required' in 'field list' Quote Link to comment Share on other sites More sharing options...
web541 Posted April 24, 2017 Report Share Posted April 24, 2017 Can you check that in your database "_customfields" table you have the column 'required'. Quote Link to comment Share on other sites More sharing options...
sayedzaafir Posted February 8, 2019 Report Share Posted February 8, 2019 hello i get a error Quote Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/iqgxuknh/public_html/crew/core/modules/IVAO/IVAO.php on line 21 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted February 8, 2019 Administrators Report Share Posted February 8, 2019 (edited) 3 hours ago, sayedzaafir said: hello i get a error Post the contents of your IVAO.php file here - and also post line 21 separately below that. Edited February 8, 2019 by ProAvia Quote Link to comment Share on other sites More sharing options...
sayedzaafir Posted February 9, 2019 Report Share Posted February 9, 2019 this is my content <?php class IVAO extends CodonModule { public function index() { $pilots = PilotData::getAllPilots(); foreach($pilots as $pilot) { $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); if($fieldvalue != '') { if(strlen($fieldvalue) < 5) { continue; } if (!is_numeric($fieldvalue)) { continue; } echo $fieldvalue.'<br />'; } } } Quote Link to comment Share on other sites More sharing options...
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.