ATutor

Learning Management Tools







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


hange theme manually


  • 2005-08-22 07:24:50

    hange theme manually

    Experienced an intresting problem when uploading and changing to a new theme.

    What I did was to export the default theme (which I had altered) from my 1.5 installation, upgraded to 1.5.1 and importet this theme again. When I chose that theme as the default theme in 1.5.1 everything crashed (php failes to include, fails to open streams etc).

  • 2005-08-22 07:31:46

    continued...

    err, clumsy fingers...

    ..so I figure this is a permission problem and change the ownership to me, but that doesn't help. And, probably not smart, I chose to delete the theme.

    So now I get error messages everywhere, and cannot switch back to the default theme because of that. I've tried looking in the include/config.inc.php but can't find anything there... So how can I force Atutor to switch the default theme back? or do I need to reinstall atutor...?

  • 2005-08-22 10:30:36

    .

    if you want to force ATutor to use a specific theme see the `themes` table and edit the status.
    0 = disabled
    1 = enabled
    2 = default

  • 2005-08-22 12:16:30

    1.5 and 1.5.1 theme compatability

    I also created a theme in 1.5 and attempted to use this theme in a 1.5.1 installation. When the 1.5 theme installed - you get a warning about possible incompatabilties. I noticed that my login page was acting strange so I inspected the theme code and found that the default theme code had changed slightly.

    In the end, I made a calculated decision to remodify the latest default theme with my previous customizations. I suggest fully commenting your changes in your new theme code in case future ATutor releases are not fully compatible with older version themes. After all, we can't expect the themes to be compatible with newer versions.

  • 2005-08-24 03:41:23

    still not

    thanks Joel, but I still can't get it to work. I've altered the status on the table via phpmyadmin, but get the same error messages:

    Warning: main(include/../themes/Atutordefault-theme-/theme.cfg.php): failed to open stream: No such file or directory in /home/apache/www2.helseutdanning.no/atutor/include/vitals.inc.php on line 209

    Fatal error: main(): Failed opening required 'include/../themes/Atutordefault-theme-/theme.cfg.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/apache/www2.helseutdanning.no/atutor/include/vitals.inc.php on line 209

    (this goes for all status settings...)

    Things to describe:
    version of ATutor - 1.5.1
    versions of php - recommended
    version of mysq l - recommended
    webserver & version - apache 2.0

  • 2005-08-24 04:39:38

    fixed it

    I uploaded this theme again manually so the server would find the files, and got it to work. I think part of the original problem may be the theme name, as I named it "Atutordefault-theme-15", but in the error message it looks for "Atutordefault-theme-" ...so it has stripped some characters.

    I also experienced the same as rforsberg with the login page acting strange, and as I only have made small alterations I think it will be easier to alter the default theme again, and have a good system for documenting my changes. For larger themes, or alterations it will probably be better to update the whole theme.

    Thanks anyway!