Jump to content

EXAMCenter Beta 1.0


simpilot
 Share

Recommended Posts

  • Moderators

When i installed this add-on i followed everything and i cant see everything on my pages it always says that.

Fatal error: Class 'ExamsData' not found in /home/flycsunc/public_html/core/templates/core_navigation.tpl on line 24

why is that problem?

Link to comment
Share on other sites

  • Administrators

When i installed this add-on i followed everything and i cant see everything on my pages it always says that.

Fatal error: Class 'ExamsData' not found in /home/flycsunc/public_html/core/templates/core_navigation.tpl on line 24

why is that problem?

Looks like you have not placed the files in the correct paths, or one has gotten corrupted on the upload. Try re-uploding all the files and be sure they are in the right path. That error is simply saying that the app can not find the files where they are supposed to be.

Link to comment
Share on other sites

  • Administrators

The download should have the proper file structure but if not..

core

  common

    ExamsData.class.php

  modules

    Exams

      Exams.php

    Exams_admin

      Exams_admin.php

  templates

    all the .tpl files

Also check where you are calling it from and make sure that the proper php syntax is there as well.

if you can post or pastebin your core_navigation.tpl file it would be easier for us to see what might be causing it as well, it is not always easy to see what is wrong when the only information to go by is "here is my error" -> "fatal error; foo bar"  ;)

Link to comment
Share on other sites

  • Moderators

Yeah the files are in path. but again where do i put those files

<li><a href="<?php echo url('/'); ?>">home</a></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
<li><a href="<?php echo url('/Exams') ?>">EXAMCenter</a></li>
<?php
$admin = ExamsData::check_admin(Auth::$userinfo->pilotid);
                if ($admin->admin_level >= '1')
	{echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';}
?>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
	echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';
}
?>


<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>
<?php
}
?>

Link to comment
Share on other sites

  • Administrators

Yeah the files are in path. but again where do i put those files

ummmm....  that is where you put them - in those paths in your phpvms install.

At a quick glance over your file, it looks ok so I would really lean toward the files not being where they are supposed to be.

Link to comment
Share on other sites

  • Administrators

Any last requests for the next beta release?

I have already..

-Moved the admin panel to the admin side of phpvms using the native permissions settings for groups.

-Added functions to delete exams and questions

-Added an entrance exam function tied into registration

-Working on finishing up a question randomizer and one at a time question submission option.

A couple of peeks  ;)

Capture-6.jpg

Capture1.jpg

Link to comment
Share on other sites

  • 2 weeks later...

4 - Place a link in your menu for the Admins and Staff Members of EXAMCenter ->

<?php

$admin = ExamsData::check_admin(Auth::$userinfo->pilotid);

if ($admin->admin_level >= '1')

{echo '<a href="'.url('/Exams_admin').'">EXAMCenter Admin</a>';}

?>

Sorry about this kind of question, but in wich file i must to add above instruction, where is located.

Thanks in advance

Link to comment
Share on other sites

  • Administrators

@lorlandi - You want to place that in your menu items, unless you have changed things greatly it should be in core_navigation.tpl. B)

@mark1 - sorry, been sidetracked on a couple other projects, not even sure at this point if I will release a v2. I got it about 60% coded and it has sat for about a month now...... :(

Link to comment
Share on other sites

  • 2 weeks later...

Hi.

I've just started moving my VA on phpvms and i am having trouble with installing examcenter. First question. Is this works with build 854. And another thing i have added it my menu but thats i'snt showing up.

Thats code in core_navigation

<li><a href="<?php echo url('/'); ?>">home</a></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Rejstracja</a></li>
   <li><a href="<?php echo url('/Exams') ?>">Egzaminy</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Centrum Pilota</a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>">Roster</a></li>
<li><a href="<?php echo url('/acars') ?>">Aktualne Loty</a></li>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
	echo '<li><a href="'.fileurl('/admin').'">Centrum Admina</a></li>';
}
?>


<li><a href="<?php echo url('/logout'); ?>">Wyloguj</a></li>
<?php
}
?>

Another thing is that idk where to put admin link. in which file.

Thanks for help

Maciej.

Link to comment
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...
 Share

×
×
  • Create New...