Themes not working.

Discussion in 'General' started by martijn, Mar 16, 2010.

  1. martijn

    martijn New Member

    Using the latest ISPConfig 3.0.2, and copied the default theme to another :


    Code:
    cp -rpf /usr/local/ispconfig/interface/web/themes/default /usr/local/ispconfig/interface/web/themes/mytheme
    checked the perms again, even after a complete cachedump and actually another browser the pulldown "Theme" isnt working when creating or editing users. It only shows the default.

    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I will check that. We have not changed that code from 3.0.2.6 to 3.2
     
  3. yoplait

    yoplait Member

    I can remember I had also this sort of problem on the 3.0.1.6 version.
    Finally, I changed the default theme directly.
     
  4. yoplait

    yoplait Member

    Did you have time to see this problem ?
    I can see that on the 3.0.2 version, I have the same problem...

    (is there a bug track about that or may I add one ?)
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    THis has already been fixed, please see release notes of ISPConfig 3.0.2.1.
     
  6. yoplait

    yoplait Member

    Arf... This is already the version I have !
    When I change the theme in the user configuration, nothing changes ...
    I've verified the rights, also, a "diff -r" on the two theme folders show me the differents...

    Is there something I have forgotten ?
     
  7. djtremors

    djtremors New Member

    Yeah I noticed this problem with 3.0.2 and checked the forums knowing others most likely had the same issue.

    I know you can configure per user in the settings and there's also the interface config.inc.php which states the "default" theme.
    I'm yet to install 3.0.2.1 but got issues now as my ispc3 code has hacks and need to diff out my changes :(

    @Till: Maybe a themes site/page should be made for contributions, i'm sure there's quite a few artists out there. I'm missing my likings of icons in theses :) so I'm writing my own *cough cough* template. :p
     
  8. mike_p

    mike_p Member

    I'm new to ISPconfig so excuse me if I appear inept!

    I too am having problems with themes not working. I am using version 3.0.2.1.
    I have discovered that there are two particular problems:

    1/ In the file "default/templates/main.tpl.htm" the default theme is hardcoded into the header, so 'default' need to be replaced with '{tmpl_var name="theme"}'

    2/ the variable does not always get correctly set to the alternative template?

    Within the database there are two fields that appear to have relevance: in the sys_user table there is the app_theme field and in the client table there is the 'usertheme' field. The client settings page sets the field in the client table.

    Having set and reset the theme in the client settings, and having made the changes to main.tpl.htm, it now seems to work. (Don't forget to make changes to any copies of main.tpl.htm in your own themes!))
     
    Last edited: Apr 1, 2010
  9. bajodel

    bajodel Member

  10. djtremors

    djtremors New Member

    I have found another hard coded theme 'default' in the error message

    "/usr/local/ispconfig/interface/lib/app.inc.php"
    public function error($msg, $next_link = '', $stop = true, $priority = 1)
    .
    .
    .
    $msg = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Error</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../themes/default/css/central.css" rel="stylesheet" type="text/css" />

    this causes havoc when I get an error. I didnt notice this until I switched user who had a limit and I tried to create a new site and the error appeared. Most of the template came out fine but my tabbed menus which is styled differently to the default went wonkers.

    I tracked it to this method but when I tried to change it to use $this->_conf['theme'], it too says default yet $_SESSION['s']['theme'] says my theme name (go figure, same session).

    I can't find this or the other mentioned hardcoded theme raised in the ticket? Was it done?
     
  11. djtremors

    djtremors New Member

    Seems to be appearing in a number of places but not confirmed to be a problem.

    /usr/local/ispconfig/interface/lib/classes/cmstree.inc.php:
    $kategorie = "<div class='mnuLevel".$tiefe."'>&nbsp; <a href='treenavi.php?kat=".$val->id."' class='navtext' onClick=\"parent.content.location='media_list.php?search_media_cat_id=".$val->id."'\" style=\"text-decoration: none;\"><img src='../themes/default/icons/folder.png' border='0'> ".$val->btext."</a></div>";
     

Share This Page