EXAMCenter Beta 1.0

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 :slight_smile:

Try and see works sometimes :wink:

Glad you got it figured out

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

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

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

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

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.

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 :slight_smile:

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 :slight_smile:

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”

Thanks

Alex

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

Hi you have the files in the wrong places.

If you remove them all and start again uploading them carefully to their correct locations,

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.

okay, i have remove it, but the problem is not gone???

Offtopic:

How i can make a Dropdownmenue? The Nav-box is full

Link: http://northair.bplaced.net/

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;}
?>

It should come before anything else on the page

okay, i have remove it, but the problem is not gone???

Offtopic:

How i can make a Dropdownmenue? The Nav-box is full

Link: http://northair.bplaced.net/

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.

Hi there,

I am having a bit of a problem with the EXAMCenter. Where do I put the EXAMCenter Admin? and also how do I change the prices of the Exams?

Many Thanks

Josh