ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Customizing Main Course Navigation


  • 2005-04-13 10:04:12

    Customizing Main Course Navigation

    Hi,

    I have added a few links to additional pages to the main course navigation, by adding them as entries in the theme.cfg.php file like this:

    $nav['lass']['name'] = "Learning Assets";
    $nav['lass']['url'] = $_base_path . 'content/assets/dms.php';
    $nav['lass']['attribs'] = '';
    $nav['lass']['image'] = $theme_image_path .'nav-acollab.gif';
    $nav['lass']['title'] = "Learning Assets";

    Most of our courses will be public, and do not require the user to have an account.

    I would like to show certain links in the main course navigation only to instructors or learners who have logged in. These links should not be there for users without an account. Is this possible?

    Our ATutor version is 1.4.3.

    Thank you very much

    --John

  • 2005-04-13 17:33:00

    Check valid_user

    Check to see if the user is logged, something like:

    if(isset($_SESSION['valid_user'])) {

    $nav['lass']['name'] = "Learning Assets";
    $nav['lass']['url'] = $_base_path . 'content/assets/dms.php';
    $nav['lass']['attribs'] = '';
    $nav['lass']['image'] = $theme_image_path .'nav-acollab.gif';
    $nav['lass']['title'] = "Learning Assets";

    }

  • 2005-04-15 13:01:05

    Subject: Check valid_user

    Greg,

    This worked for me:

    if ($_SESSION['valid_user'] == true) {

    }

    Thank you very much.

    --John