ATutor

Learning Management Tools







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


Theme changes


  • 2005-03-03 17:32:07

    Theme changes

    So how do you change the default theme to, oh let's say another theme downloaded or modified?

    I have changed the default theme after logging in as the Admin, but when a user logs in it defaults back to the original theme.

    Jason

  • 2005-03-03 18:11:21

    See HowTo

    See the Themes in the Adminstrators section of ATutor HowTo.

  • 2005-03-03 18:32:40

    I have...

    I have looked at the How To and discovered that it is well documented and it states exactly what I discovered tooling around with ATutor. However, I am not understanding something...

    When I log into the Admin part of ATutor and upload a theme that has been downloaded and then set it to default, would it not be reasonable to assume that the next user that logged in would see that theme as the default theme (such as when they choose to look at My Courses, or even Personal Preferences)?

    I understand if theme specific Catagories is enabled then the course would use the them specified for the category in which it is placed, but what of the Home page when a user first logs in...or when they look at their preferences?

    What is happening is when the user goes to the home page they see the theme set to default (for the sake of this post let's say ut_theme), they then log in and are redirected to the index.php file in the users directory and now they see the actual default theme, not the ut_theme set to default in the Admin section of ATutor. I am scratching my head on this...

    Jason

  • 2005-03-03 18:42:08

    Furthermore...

    When I attempt to delete the theme via the Admin tool in ATutor I get the following php errors:

    Warning: Invalid argument supplied for foreach() in /var/www/sites/financialworkshops.info/tutor/include/lib/themes.inc.php on line 277

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/sites/financialworkshops.info/tutor/include/lib/themes.inc.php:277) in /var/www/sites/financialworkshops.info/tutor/admin/themes/delete.php on line 32

    As it stands I don't have the time at the moment to troubleshoot the code and am wondering if you have a quick fix. I would like a unified appearance for the site, unless the course falls into a specific category. Great option by the way, it keeps from having to do multiple installs, server clustering....you name it. We'll see how ATutor does...we may have to cluster, load balance...etc.

    Anyway, what about the themes...??

    Jason

  • 2005-03-03 18:45:28

    Delete the other theme

    I can't reproduce this. Themes work as they should on all our systems.

    Restart your browser and see if that helps.

    Try deleting the other theme. Then reinstall it.

    Provide the detail asked for in the forum message box if you are still having problems. Its difficult to help without knowing the details of the system ATutor is running on.

  • 2005-03-03 18:57:33

    And Now...

    Weeee, and around and around we go.

    I am not accustomed to having so much trouble with simple things. After receiving php errors I refreshed the site and apparently there is no theme being used at all, now. The pages look like basic template structure. Looks like the delete did work, gonna check the directory structure.....

    Well it seems as if delete.php?theme_code=Atutor deleted the entire theme folder. Hmmm......

    Uploaded the theme folder again, and now we're back to the default theme.

    Uh, how do you manage themes?

    Jason

  • 2005-03-03 19:01:05

    Server...

    Apache 1.3+
    PHP 4.3.9
    MySQL 3.23.58

    LAMP Box(dont know what flavor)
    IEv.6.0+

    It seems that when you set the default theme to another theme it only does it for the login page, and the courses, and that's it.

    Jason

  • 2005-03-03 19:04:50

    Check it out...

    www.financialworkshops.info/tutor/login.php

    Register and you'll see...

    Jason

  • 2005-03-03 20:51:47

    Well...

    I got into the ATutor database and changed the accessibility PREF_THEME text variable to reflect the theme that I wanted to use since, as it seems all users who register, the $_POST['pref'] is set to access.

    This is a temp fix, it seems that when the default theme is set in the Admin tool of ATutor it does not update the accessibility preferences in the database, however it does reset the status of the default theme in the themes table. This does not help out though if the student registers and has default preferences set to the original default theme.

    As it stands it seems as if ATutor uses the default theme until a session is started for a user who receives a successful login, then uses the PREFS gleaned from the theme_settings table. I have not dug to far into this, but I am thinking that this may present a problem...not sure yet.

    Jason

  • 2005-03-03 21:27:38

    a bug

    The default theme needs to be removed from the atutor_defaults theme setting in the theme_settings table.

    Replace the following prefs atutor_defaults pref string with the following (carefully)

    a:24:{s:10:"PREF_STACK";a:8:{i:0;s:1:"0";i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"4";i:5;s:1:"5";i:6;s:1:"6";i:7;s:1:"7";}s:19:"PREF_MAIN_MENU_SIDE";i:2;s:8:"PREF_SEQ";i:3;s:14:"PREF_NUMBERING";i:1;s:8:"PREF_TOC";i:1;s:14:"PREF_SEQ_ICONS";i:1;s:14:"PREF_NAV_ICONS";i:0;s:16:"PREF_LOGIN_ICONS";i:0;s:13:"PREF_HEADINGS";i:1;s:16:"PREF_BREADCRUMBS";i:1;s:9:"PREF_HELP";i:1;s:14:"PREF_MINI_HELP";i:1;s:18:"PREF_CONTENT_ICONS";i:0;s:14:"PREF_MAIN_MENU";i:1;s:11:"PREF_ONLINE";i:1;s:9:"PREF_MENU";i:1;s:9:"PREF_EDIT";i:1;s:18:"PREF_JUMP_REDIRECT";i:0;s:10:"PREF_LOCAL";i:1;s:12:"PREF_RELATED";i:1;s:13:"PREF_GLOSSARY";i:1;s:11:"PREF_SEARCH";i:1;s:10:"PREF_POSTS";i:1;s:9:"PREF_POLL";i:1;}