ATutor

Learning Management Tools







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


edit theme settings in database


  • 2007-08-09 08:32:56

    edit theme settings in database

    hi, i messed up a demo installation a bit here.

    upgraded Atutor, and tried to switch to a custom theme I had installed in the previous version (that for some reason appeared as a choice under admin -> sys. prefs -> themes)

    ..these theme files were however not in the theme directory, with the result that I only get blank screens now, so I can not change back.

    ..so, how do you edit these settings directly in the database? I find something in the AT_config table, under pref_defaults, saying:

    a:1:{s:10:"PREF_THEME";s:8:"Atutor_1";}

    Atutor_1 is the name of this theme, but changing that name doesn't do a thing.

    I have also tried to copy the Atutor_1 files into the new themes directory, and tried to copy the content of pref_defaults from a functioning installation, but with no luck..

  • 2007-08-11 18:05:13

    Re: edit theme settings in database

    Themes don't get copied over during upgrades.

    Copy the custom theme's directory from the older version into the new version

    or

    Manually set another theme as the default to begin with in the themes table, resetting the old themes "status to "1", and another theme to "2".

    then

    Export the theme from the old version, and import it back into the new version.

  • 2007-08-13 04:06:49

    Re: edit theme settings in database

    thanks Greg, setting the status to 2 for a theme solved it!

    I know themes are not copied, but still this theme was an option in the control panel (admin -> sys.prefs -> themes) after upgrade. that would probably be a bug then.