Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • eric creemers Friend
    #145883

    I’m trying to get switching colors to work.

    On the ja_tube demo site there are these links:

    ?ja_color=blue
    ?ja_color=red
    ?ja_color=green

    etc.

    But when I try to do this, it does not change color at all, just stay default.

    In the template parameters, the tooltip @ ‘Default style’ says i can enable style switcher, but working with joomla 1.5, I cannot find this switcher. Have googled for hours and read other posts in this forum, but havn’t found a solution.

    What I am trying to do with my site is to give each category a different color layout, so I want to add this “ja_color=red” to my menu links. But even the default color-links, after installing the quickstart folder, do not work.

    I cannot give you a demo site, but installing quickstart + Joomla_1.5.14-Stable-Full_Package gives your default ja_tube site:

    http://template15.joomlart.com/ja_tube/index.php?option=com_content&view=article&id=22&Itemid=56

    Only without working style switcher.

    Please help

    Thnx

    prakash Friend
    #323208

    Hi

    I do not know how to do it the “right way” but I have a small patch by which the styling change works.

    find this line in templates/jatube/index.php

    <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />

    and replace it with this

    <?php $getthecolor = $_GET['ja_color']; if ($getthecolor == NULL) { ?>
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />
    <?php } else {?>
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($getthecolor); ?>.css" rel="stylesheet" type="text/css" />
    <?php }?>

    now by default, the default color which you have set in template parameters will be shown, but if you want to change color of a particular page – simply pass the ?ja_color… and the color will change

    eric creemers Friend
    #323249

    Thank you for the code. Didn’t though of it to $_GET the variable. Very simple.

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

This topic contains 3 replies, has 2 voices, and was last updated by  eric creemers 15 years ago.

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