dimitris Posted July 15, 2010 Report Share Posted July 15, 2010 Is possible to make the exam center require hours instead of pay ? Quote Link to comment Share on other sites More sharing options...
Jeff Posted July 15, 2010 Report Share Posted July 15, 2010 The Exam Center deducts the money for the test. Not sure why you want to deduct hours. Quote Link to comment Share on other sites More sharing options...
dimitris Posted July 15, 2010 Report Share Posted July 15, 2010 The Exam Center deducts the money for the test. Not sure why you want to deduct hours. not to reduce hours. for example Expl Test 1 hour 100. If the pilot have less than 100 hours he can't proceed to exam. if pilot got 100 hours ++ he can continue. not to reduce Quote Link to comment Share on other sites More sharing options...
Jeff Posted July 15, 2010 Report Share Posted July 15, 2010 Sounds like you need to figure a way to have it automatically acknowledge it like auto ranking does. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 16, 2010 Author Administrators Report Share Posted July 16, 2010 Is possible to make the exam center require hours instead of pay ? You will have to change the coding a number of places but you could base all the if commands off of an hours configuration. Most of your work will be in the controller, look around for where it is calling for money and change it all to hours. There is a built in sql call in the pilots data class to get pilot hours to compare to your needs. Quote Link to comment Share on other sites More sharing options...
Airport Posted July 16, 2010 Report Share Posted July 16, 2010 exams_admin is not in the site admin panel, it stands alone, you have to link to it. I know and I had added it! But when I push on the link it goes to the Startpage! ;artin Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 19, 2010 Author Administrators Report Share Posted July 19, 2010 I know and I had added it! But when I push on the link it goes to the Startpage! ;artin Are you using -> <?php $admin = ExamsData::check_admin(Auth::$userinfo->pilotid); if ($admin->admin_level >= '1') {echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';} ?> as is in the setup instructions? Are you set as an admin for the exam center? By default only the pilot with the database id of 1 is an admin until more are assigned. If you are not #1 in the database it will send you back to the home page. Also, what version are you running, are you on 2.x or still on 1.0? Quote Link to comment Share on other sites More sharing options...
Airport Posted July 19, 2010 Report Share Posted July 19, 2010 Hello, im running phpVMS Version 2.1.934! Im using the code for setting up. Im an admin and have full control in the Admin Panel. Martin Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 19, 2010 Author Administrators Report Share Posted July 19, 2010 Are you set as an admin for the exam center? By default only the pilot with the database id of 1 is an admin until more are assigned. If you are not #1 in the database it will send you back to the home page. Can you also post a link to the site, Thanks. Quote Link to comment Share on other sites More sharing options...
Airport Posted July 20, 2010 Report Share Posted July 20, 2010 Hello, I have updated to the newest Version and now it works . Nice Tool Martin Quote Link to comment Share on other sites More sharing options...
Airport Posted July 20, 2010 Report Share Posted July 20, 2010 Hello, it doesnt work again . What can I do? Admin-Page: http://flygermany-va.de/index.php/Exams_admin'>http://flygermany-va.de/index.php/Exams_admin User-Page: http://flygermany-va.de/index.php/Exams Now Im using 943 Martin Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 22, 2010 Author Administrators Report Share Posted July 22, 2010 Hello, it doesnt work again . What can I do? Admin-Page: http://flygermany-va.de/index.php/Exams_admin'>http://flygermany-va.de/index.php/Exams_admin User-Page: http://flygermany-va.de/index.php/Exams Now Im using 943 Martin Not sure, are the folders all in the right place? It is odd that it goes back to the homepage. Did you change any of the code that determines the permission set for the modules? Quote Link to comment Share on other sites More sharing options...
Airport Posted July 22, 2010 Report Share Posted July 22, 2010 Hello, all folders are at the right place and I didnt change the code Martin Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 22, 2010 Author Administrators Report Share Posted July 22, 2010 Hello, all folders are at the right place and I didnt change the code Martin If it works and then doesnt and the does again, my guess would be it is the server causing issues, what configuration are you on? (free, shared, vps, dedicated) Quote Link to comment Share on other sites More sharing options...
Airport Posted July 23, 2010 Report Share Posted July 23, 2010 Hello, no, its a payhoster, and it is working perfektly! Martin Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 23, 2010 Author Administrators Report Share Posted July 23, 2010 Hello, no, its a payhoster, and it is working perfektly! Martin Errr, ok. I thought you were having problems with it. Glad to hear you got things working. Quote Link to comment Share on other sites More sharing options...
coryb12 Posted July 26, 2010 Report Share Posted July 26, 2010 OK, this is an excellent addon, but I have a really stupid question. How do you add a pilot so that they are an event admin? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 26, 2010 Author Administrators Report Share Posted July 26, 2010 OK, this is an excellent addon, but I have a really stupid question. How do you add a pilot so that they are an event admin? Do you mean an Exam Admin? For that you would use the "add/remove administrators" link from the main exam center management panel, then just click on the pilot you want to change and set them to staff or admin. Quote Link to comment Share on other sites More sharing options...
coryb12 Posted July 26, 2010 Report Share Posted July 26, 2010 Do you mean an Exam Admin? For that you would use the "add/remove administrators" link from the main exam center management panel, then just click on the pilot you want to change and set them to staff or admin. EDIT: got it working. Thanks for this great module! Quote Link to comment Share on other sites More sharing options...
Vaff Posted July 27, 2010 Report Share Posted July 27, 2010 Anyone that ca tell me how to get this to fit into my ObsessBlue Skin?? I have the exam and admin running fine but some of the tables will not fit into the screen. So i need a way to resise it EDIT: Just found it out :-) Try and see works sometimes ;-) Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted July 27, 2010 Report Share Posted July 27, 2010 Anyone that ca tell me how to get this to fit into my ObsessBlue Skin?? I have the exam and admin running fine but some of the tables will not fit into the screen. So i need a way to resise it EDIT: Just found it out :-) Try and see works sometimes ;-) Glad you got it figured out Quote Link to comment Share on other sites More sharing options...
Northeast_Captain Posted July 27, 2010 Report Share Posted July 27, 2010 Hello All, I have the exam center installed and its doing good, but i have one issue. I can't seem to find where to install the admin exam link can someone help? Thank you. website: Northeast Airlines Quote Link to comment Share on other sites More sharing options...
Northeast_Captain Posted July 27, 2010 Report Share Posted July 27, 2010 Hello All, Ok, I got the link for the Admin Exam center but i got it by only entering: <a href="'.url('/Exams_admin').'">EXAMCenter Admin</a> not the first part. When i entered the first part my va website screen would go black. but now when i click on the exam admin it takes me to some external google page. does anyone have any ideas? Thank you Quote Link to comment Share on other sites More sharing options...
Northeast_Captain Posted July 27, 2010 Report Share Posted July 27, 2010 Hello All, Sorry for the reply's i have been messing around with this and now i get a new page, but now the exam admin link now gives me this error: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Exams::%27.url(%27' was given in /home/a7745160/public_html/core/classes/MainController.class.php on line 218 does anyone know how to fix it? Thank you Quote Link to comment Share on other sites More sharing options...
Northeast_Captain Posted July 27, 2010 Report Share Posted July 27, 2010 Hello All, Ok, Last Question on here. I am now getting this when i go to exam admin: An Error Was Encountered The module "%27.URL(%27" doesn't exist! website and link: Northeast Airline & error page Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 28, 2010 Author Administrators Report Share Posted July 28, 2010 Hello All, Ok, Last Question on here. I am now getting this when i go to exam admin: An Error Was Encountered The module "%27.URL(%27" doesn't exist! website and link: Northeast Airline & error page From the looks of the url you have dropped some part of the code off, probably part of the php opening tag, it should not be echoing out "url" and all the % signs are open spaces in your url. Take a good look at that. Quote Link to comment Share on other sites More sharing options...
Vaff Posted July 30, 2010 Report Share Posted July 30, 2010 Is it possible to just have 3 answers insteed of 4? and if thats possible how can i set it up? And is there a easy way to delete the default exams :-) Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 31, 2010 Author Administrators Report Share Posted July 31, 2010 Is it possible to just have 3 answers insteed of 4? and if thats possible how can i set it up? And is there a easy way to delete the default exams :-) You can delete the exams from the adminpanel. When you delete an exam it will orphan the questions assigned to it and they will show up in the list as unassigned, but you can delete the individual questions as well. To change to only 3 answers you would have to modify every tpl file that has anything to do with questions and answers, modify both the exams and exams_admin controllers, and also the examsData.class.php file. Look around through all those and change everything from sets of 4 to sets of 3. Quote Link to comment Share on other sites More sharing options...
Alex Posted August 10, 2010 Report Share Posted August 10, 2010 Dave, i have had the exams running succesfully for several months now, however it appears that pilots who have insufficient funds to pay for the exams are still able to make the request for an exam they cannot afford? looking at exam_purchase_confirm.tpl shows this. <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ ?> <style type="text/css"> <!-- .style1 {color: #FF0000} --> </style> <center> <div id="error"> <p>You currently have <b>$<?php echo $pilotmoney ?></b> in your account.<br /> Purchasing the <b><?php echo $examdescription ?></b> exam will deduct <b>$<?php echo $examcost ?></b> from your account.<br /> If you do not pass the test you will have to re-purchase the exam again</p> <p><span class="style1">(Do not click yes more than once or refresh or you will be charged twice!!)</span><br /> Continue - <a href="<?php echo SITE_URL ?>/index.php/Exams"><b>NO</b></a> | <a href="<?php echo SITE_URL ?>/index.php/Exams/purchase_exam?id=<?php echo $examid ?>"><b>YES</b></a> </p> </div> exam_purchase_confirm.tpl </center> Is this a bug, or have i missed checking something? If possible could i have a snippet to display "you have insufficient funds to purchase this exam" Thanks Alex Quote Link to comment Share on other sites More sharing options...
BastiDE Posted August 19, 2010 Report Share Posted August 19, 2010 hey, who can help me? Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/users/northair/www//lib/skins/brilliancev1/<center> <br /> <table border="1px" width="80%"> <tr> <td colspan="2"><img src="http://northair.bplaced.net/examimages/exam_logo.gif" alt="EXAMCenter © simpilotgroup" /></td> <td colspan="4"><br /><h4>EXAMCenter Admin Panel</h4></td> <tr> <td colspan="6" bgcolor="#cccccc"><b>Exams Awaiting Approval:</b></td> </tr> <tr><td colspan="6">There are no exams currently awaiting approval.</td></tr> <tr> <td colspan="6" bgcolor="#cccccc"><b>Pilot Exam Requests:</b></td> </tr> <tr><td colspan="6">There Are No Exam Requests Pending At This Time</td></tr> <tr> <td colspan="6" bgcolor="#cccccc"><b>Exams Currently Assigned:</b></td> </tr> <tr><td colspan="6">No Exams Are Currently Assigned</td></tr> </table> <hr /><br /> <table border="1px" width="80%"> <tr> <td bgcolor="#cccccc"><b>Exam Center Exam And Question Configuration:</b></td> <td bgcolor="#cccccc"><b>View/Edit</b></td> </tr> <tr> <td>Exams in Database: 4</td> <td><a href="http://northair.bplaced.net/index.php/Exams_admin/view_current_exams">Edit/View Current Exams</a></td> </tr> in /users/northair/www/core/classes/TemplateSet.class.php on line 96 I have the Adminlink copy in the core_navigation.tpl from the admintemplates looks so: if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS) || PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_REGISTRATIONS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PILOTS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_GROUPS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_RANKS) || PilotGroups::group_has_perm(Auth::$usergroups, EMAIL_PILOTS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_AWARDS) ) { ?> <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo SITE_URL?>/admin/lib/layout/images/pilots_icon.png" />Pilots & Groups</a> <ul style="padding: 0; margin: 0;"> <?php if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_REGISTRATIONS)) { ?> <li><a href="<?php echo adminurl('/pilotadmin/pendingpilots');?>">Pending Registrations</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PILOTS)) { ?> <li><a href="<?php echo adminurl('/pilotadmin/viewpilots');?>">View All Pilots</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_GROUPS)) { ?> <li><a href="<?php echo adminurl('/pilotadmin/pilotgroups');?>">Pilot Groups</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_RANKS)) { ?> <li><a href="<?php echo adminurl('/pilotranking/pilotranks');?>">Pilot Ranks</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, EMAIL_PILOTS)) { ?> <li><a href="<?php echo adminurl('/massmailer'); ?>">Email all Pilots</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_AWARDS)) { ?> <li><a href="<?php echo adminurl('/pilotranking/awards'); ?>">Awards</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) { ?> <li><a href="<?php echo adminurl('/maintenance/changepilotid'); ?>">Change a Pilot's ID</a></li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS)) { ?> <li><a href="<?php echo adminurl('/pilotadmin/viewbids'); ?>">View Bids</a></li> <?php } ?> <?php >>>>>>>>>> $admin = ExamsData::check_admin(Auth::$userinfo->pilotid); if ($admin->admin_level >= '1') {echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';} ?> <li></li> </ul> </li> <?php } if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS) || PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PIREPS_FIELDS) ) { ?> Then load Mozilla and show me the Adminpanel and upside comes the error. I use the Skin brilliancev1. Please help me. And a question: Can i say, you must do this Exam to become an higher rank? Fully automatical? Becuase now its only for Hours. Or? Basti 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.