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?
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
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.
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.
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”
The link to the exam center needs to go on the main site, not in the admin section. The Exam center admin panel is a stand alone module and is not intergrated into the phpvms admin panel.
Due to a security issue all the admin templates for the ExamCenter should have the beginning of the file modified to include the following.
<?php
if(!ExamsData::check_admin(Auth::$userinfo->pilotid)) {
Template::Set('message', '<div id="error"><b>You must an EXAMCenter administrator to access this feature!</b></div><br />');
Template::Show('frontpage_main.tpl');
return;}
?>
I do not see any error on your site… If it is in the admin side my guess is that you have left a piece of your modification in the files in that section. Try reloading the admin folder to your site and see if that clears it. If it is the error of “file_exisits” as described a few posts ago, that is a server config error I believe.
As far as menu’s, that is a skinning issue. I am sure if you post in the skinning forum someone will help you build a menu.
I do not see any error on your site… If it is in the admin side my guess is that you have left a piece of your modification in the files in that section. Try reloading the admin folder to your site and see if that clears it. If it is the error of “file_exisits” as described a few posts ago, that is a server config error I believe.
As far as menu’s, that is a skinning issue. I am sure if you post in the skinning forum someone will help you build a menu.
the error comes only in the Adminarea from the Exam.
I have just made the security modifications and everything is fine. I would suggest if your having problems then its normally best to start from scratch.
I have just made the security modifications and everything is fine. I would suggest if your having problems then its normally best to start from scratch.
hmm, pleasy dont angry but i dont understand it, i have it translate into german and = i dont unterstand it. Speaks who german and know what is to do? Or can one write it for idiots?
Hey Simpilot, was the issue with the pilot getting their money back after paying for tests ever resolved? I had an issue when pilots would buy a test, they would get the cash back when the cron job got ran or anything in admin was recalculated.
Just curious. Was thinking about reinstalling this again. Without that fix, it makes it kind of rough. I used a code snippet to make it so we can adjust pilots pay without it getting given back to them after recalc. I wonder if we could sneak that code in for this if that problem still exists.