ATutor

Learning Management Tools







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


Preferences


  • 2009-09-09 22:15:24

    Preferences

    Can I disable the preferences menu at My start page?
    Thanks

    ATutor: 1.6.2
    PHP: 5.2.9
    MySQL: 5.0.81-community-log
    OS: Linux 2.6.18-128.1.16.el5

  • 2009-09-10 08:37:31

    Re: Preferences.

    Near the top of the file /include/lib/menu_pages.php you can see where the preferences tab is constructed. You can delete the references there to users/preferences.php

  • 2009-09-11 10:22:57

    Re: Preferences.

    Thanks Greg.

    I removed the line 27 at menu_pages.php:

    $_pages[AT_NAV_START] = array_merge(array('users/index.php', 'users/profile.php', 'users/preferences.php'), (isset($_pages[AT_NAV_START]) ? (array) $_pages[AT_NAV_START] : array()));

    Now I get this error:

    Warning: Invalid argument supplied for foreach() in /home/emprenau/public_html/aulavirtual/include/lib/menu_pages.php on line 317


    Any suggestion?

    ==============
    ATutor: 1.6.2
    PHP: 5.2.9
    MySQL: 5.0.81-community-log
    OS: Linux 2.6.18-128.1.16.el5

  • 2009-09-11 10:39:00

    Re: Preferences.

    NEW

    Now I'v chaged the line 27:

    $_pages[AT_NAV_START] = array_merge(array('users/index.php', 'users/profile.php', isset($_pages[AT_NAV_START]) ? (array) $_pages[AT_NAV_START] : array()));

    And get this warning:

    Warning: Illegal offset type in isset or empty in /home/emprenau/public_html/aulavirtual/include/lib/menu_pages.php on line 324

    thanks again