ATutor

Learning Management Tools







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


Header of Course


  • 2008-02-04 11:58:54

    Header of Course

    Hello there,
    I am trying use some Javascripts on my corse pages. The scripts are to be added in head of the course page.
    Pls help me where can i find the header of the courses where can I add the javascript.

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system - Linux 2.6.9-67.0.1.ELsmp
    version of ATutor - 1.5.5.
    versions of php - 5.2.5
    version of mysq l - 4.1.22-standard
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -

    Thank you.
    Sumit

  • 2008-02-04 12:43:12

    Re: Header of Course

    Hello,

    Most of the pages in atutor shares the same "header" page, which is in themes/default/include/header.tmpl.php

    Note though, any changes to this file will affect most of the ATutor pages.

  • 2008-02-04 13:16:40

    Re: Header of Course

    Hi sjc,

    As Harris said, one way is to modify header.tmpl.php but this is to change the template file and most of your Atutor pages will be affected.

    Another work-around is to add your javascript in html body instead of header. This allows your change only applies to the page you want.

    In your course page, click "Edit this page" in the shortcuts list at the top right of the page, switch to text editor. The html format of your course content displays in the body text area. Add your javascript at the top and place your javascript function call properly in your course content. Save it and try.

  • 2008-02-04 13:19:42

    Re: Header of Course

    Thank you for prompt reply,
    it helped.

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -