Jump to content

EXAMCenter Beta 1.0


Recommended Posts

  • Replies 287
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

First Beta Release - EXAMCenter Developed using phpVMS ver 1.2.778 and ie8 Features: 2 Levels of Administration -Administrator -Staff Member Exam and Question creation and editing Optional "Ass

That is the mysql table for your database. you need to navigate to your database on your server using cpanel if you have it, and upload that file.

Perfect dude! That works for me. Thank you for  share that solution!

Posted Images

The Exam Center deducts the money for the test. Not sure why you want to deduct hours. :unsure:

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

Link to post
Share on other sites
  • Administrators

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. B)

Link to post
Share on other sites
  • Administrators

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?

Link to post
Share on other sites
  • Administrators
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.

Link to post
Share on other sites
  • Administrators

Hello,

it doesnt work again :unsure: . 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?

Link to post
Share on other sites
  • Administrators

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)

Link to post
Share on other sites
  • Administrators

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.

Link to post
Share on other sites

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!

Link to post
Share on other sites

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 ;-)

Link to post
Share on other sites

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 ;)

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites
  • Administrators

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.

Link to post
Share on other sites
  • Administrators

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.

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...