test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • maria11 Friend
    #117953

    I seem to be having trouble setting the default colour in the Antares template. I have a main url page and two subdomains and want all three pages to run on the same template but in various colour themes. I have installed different installations of joomla on the sub domains and the main domain. I have set the default colours in the joomla>template back end but when viewing the pages in ie7 seem to get the default blue colour scheme on all of the pages.
    I have the template set up with none of the template agjustments available on the front end.
    This seems to oly happen in IE7 as in firefox the pages colour themes are displayed corectly. the url is;
    accommodation-alghero.com
    Any help would be much appreciated
    Maria

    Khanh Le Moderator
    #212522

    Please open file ja_templatetools.php inside the template, replace function getUserSetting() with this code


    function getUserSetting(){
    global $ja_color, $ja_font_size, $ja_width, $ja_menutype, $ja_template_name, $ja_template_absolute_path ;
    global $ja_font_size_default, $ja_color_default, $ja_width_default, $ja_tool;

    if (isset($_COOKIE['JATheme']) && $_COOKIE['JATheme'] == $ja_template_name){
    if (($ja_tool & 2) && isset($_COOKIE['ColorCSS']) && $_COOKIE['ColorCSS']){
    $ja_color = $_COOKIE['ColorCSS'];
    }
    if (($ja_tool & 1) && isset($_COOKIE['ScreenType'])){
    $ja_width = $_COOKIE['ScreenType'];
    }
    if (($ja_tool & 1) && isset($_COOKIE['FontSize'])){
    $ja_font_size = $_COOKIE['FontSize'];
    }
    }else{
    $exp = time() + 60*60*24*355;
    setcookie ('JATheme', $ja_template_name, $exp, '/');
    setcookie ('ColorCSS', $ja_color_default, $exp, '/');
    setcookie ('ScreenType', $ja_width_default, $exp, '/');
    setcookie ('FontSize', $ja_font_size_default, $exp, '/');
    }

    if (!is_file("$ja_template_absolute_path/css/colors/$ja_color.css")) $ja_color = $ja_color_default;
    }

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Khanh Le 17 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum