ATutor

Learning Management Tools







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


Content Navigation expandcollapse


  • 2010-12-08 14:42:17

    Content Navigation expandcollapse

    Database: 33.96 MB
    Disk Usage: 54.89 MB
    Courses: 34
    Users: 11255
    ATutor Version: 2.0.1.
    PHP Version: 5.2.9
    MySQL Version: 5.0.91mm-log
    OS: Linux 2.6.28.5-grsec-sg2
    Patch #s applied: all
    ATutor theme name - ATutor default
    Changes to default settings - Cache enabled
    Web browser being used - IE and Firefox

    Is the Content Navigation supposed to expand and collapse all of the levels each time you go to a new page? I have a course with a lot of pages and it really slows down the process of moving from one page to the next.

    Thanks, Sandie

  • 2010-12-08 16:09:56

    Re: Content Navigation expand/collapse

    Yes, it's the current behaviour of the content navigation which gets re-loaded each time when page reloads. It does slow down the page load quite a bit when the content levels are many or deep. We've realized the issue and had it on the to-do list. Sorry about this.

  • 2010-12-08 17:57:47

    Re: Content Navigation expand/collapse

    Any idea when it might be fixed? I am hoping to upgrade my production site within the week but would prefer to do it after this is fixed.

    Thanks,

    Sandie

  • 2010-12-08 18:02:44

    Re: Content Navigation expand/collapse

    It won't be in the upcoming release which is coming before the christmas. Hopefully it would make into the next release at mid-2011.

  • 2010-12-08 18:52:02

    Re: Content Navigation expand/collapse

    FYI, this doesn't happen in the version of 2.0.1 that I installed on another webhost a few weeks ago. I just downloaded and installed the problematic version last week.

  • 2010-12-08 19:32:30

    Re: Content Navigation expand/collapse

    Interesting. 2.0.1 is the latest version. Which version you have problem with?

  • 2010-12-08 20:21:57

    Re: Content Navigation expand/collapse

    Both sites are running version 2.0.1.

    Here's the info for the site on hostmonster at www.hpc-training.org/ATutor/ that was installed a few weeks ago and is not having the problem:

    Statistics & Information

    Database:
    34.00 MB
    Disk Usage:
    51.82 MB
    Courses:
    36
    Users:
    11204
    ATutor Version:
    2.0.1. Check Latest Version.
    PHP Version:
    5.2.14
    MySQL Version:
    5.1.47-community-log
    OS:
    Linux 2.6.32-26.1.BHsmp


    Here's the info for the site on Siteground at www.cituor.org/atutor/ :

    Statistics & Information

    Database:
    34.00 MB
    Disk Usage:
    54.89 MB
    Courses:
    34
    Users:
    11255
    ATutor Version:
    2.0.1. Check Latest Version.
    PHP Version:
    5.2.9
    MySQL Version:
    5.0.91mm-log
    OS:
    Linux 2.6.28.5-grsec-sg2

    You can login as a student on either site using the login/pw of guest/student . Choosing the 'Introduction to MPI' course gives an example of a content navigation with many levels.

    The Intro to MPI course uses a slightly modified version of the ATutor default theme. I have also tested it with the default theme on both sites with the same problem.

  • 2010-12-08 20:38:14

    Re: Content Navigation expand/collapse

    Oops, I typed the URL to one of the sites wrong. It should be www.citutor.org/atutor/ rather than www.cituor.org/atutor/ .

  • 2010-12-08 21:02:36

    Re: Content Navigation expand/collapse

    Thanks. Have figured the url out.

    I tried both sites and they don't seem to have the significant time difference while switching between content pages. Is www.citutor.org/atutor/ the one you feel much slower than the other?

  • 2010-12-08 21:29:37

    Re: Content Navigation expand/collapse

    Yes, that is the slower one. It isn't as easy to notice since I added a scroll and set a max height to the content navigation box in my theme but the navigation structure expands and collapses before displaying the page content on the www.citutor.org/atutor site where it does not on the other one.

  • 2010-12-08 22:06:12

    Re: Content Navigation expand/collapse

    There is a slight difference in the ContentManager.class.php file on my two sites that addresses how the content folder is displayed. I copied the one from the site that works the best to the other site and the expand collapse problem is fixed.

    Here's the code from the one that works best:

    $result = mysql_query($sql, $this->db);
    // print out javascript to expand the first content folder
    if (mysql_num_rows($result)) {
    $row = mysql_fetch_assoc($result);
    echo $this->get_js_expand_folder($row['content_id']);
    }

    Here's the code from the one that is buggy (expands and collapses):

    $row = mysql_fetch_assoc($result);

    // print out javascript to expand the first content folder
    echo $this->get_js_expand_folder($row['content_id']);

  • 2010-12-09 14:02:21

    Re: Content Navigation expand/collapse

    I see. That's a bug in 2.0.1. You don't have to manually modify the script. Applying Patch#1 would fix it.

    How to apply a patch:

    login as admin -> Patcher