Jump to content

Recommended Posts

  • Moderators
Posted

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?

  • Administrators
Posted

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.

  • Administrators
Posted

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

  • Moderators
Posted

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

  • Administrators
Posted

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.

  • Moderators
Posted

the install folder? but the admin center says that i have to delete the install folder because it poses security risk

  • Administrators
Posted

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

  • Moderators
Posted

May have missed this already in a request but,  read from the config file for the money sign

I was going to install this today to another VA but i may wait for the next release, any ideas when?

  • Administrators
Posted

I can still get that one in Mark. Should have somethng out this week, was hoping sooner but the back to back blizzards and no power here at the house for a few days kind of distracted me...

Posted

"Added an entrance exam function tied into registration"

I can't wait for this function!

Yeah me too!

Yes, this is what we need. Is there any release date for the update of the Examcenter?

Is there a chance to get this feature already now?

Thanks for that great work.

Regards, Stephan

  • 2 weeks later...
Posted

Hi

This looks like a great project, but I have a small problem. The button that appears in the admin panel just closes the drop-down list it's in. The orange highlight bar is missing also from the mouse-over.

Cheers in advance,

DeeQ

Posted

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

  • Administrators
Posted

@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...... :(

  • 2 weeks later...
Posted

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.

  • Administrators
Posted

You have the Examcenter link inside of the if command so it will only show if you are not logged in. You need to put it in the other section so it will show when you are logged in to the site.

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