Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • onanymoto Friend
    #143210

    I’ve created my own themes and want to change the theme titles in the usertools menu from ‘default’, ‘brick’, and ‘green’ to something else. I’ve found the ja_vars.php and ja_templatetools.php files, but when I change the names it causes the usertools menu to not display the graphics and displays the text as the link instead of as a pop up.

    I believe the problem lies in the ja_templatetools.php file in lines 108 – 118, ‘show color tools’. Is there a js script file I should look at?

    Anyone have an idea?

    Thanks!

    Anonymous Moderator
    #313051

    Hi onanymoto

    Open ja_templatetools.php, find following code:

    var $_ja_color_themes = array (‘default’, ‘brick’, ‘green’);

    Here you can add your theme in this array.

    onanymoto Friend
    #313385

    <em>@JA Developer 139215 wrote:</em><blockquote>Hi onanymoto

    Open ja_templatetools.php, find following code:

    var $_ja_color_themes = array (‘default’, ‘brick’, ‘green’);

    Here you can add your theme in this array.</blockquote>

    I’ve tried changing the names at the above code and it doesn’t change anything. It still reads as default, brick, and green.

    There is this note above the line of code you recommend:
    //This default value could override by setting with function setScreenSizes() and setColorThemes()

    So I found setColorThemes() in ja_vars.php on line 18:
    $tmpTools->setColorThemes(array(‘default’, ‘brick’, ‘green’));

    But when I make a change here, it changes the name but disrupts the layout…by showing the alternate text instead of the button image. See attached image.

    I believe the answer lies in the following lines of code from the ja_templatetools.php file, but can’t figure it out.

    <?php
    if ($ja_tools & 4){//show color tools
    ?>
    <span class=”ja-colorthemes”>
    <?php
    foreach ($this->_ja_color_themes as $ja_color_theme) {
    echo “
    <img style=”cursor: pointer;” src=””.$this->templateurl().”/images/”.$this->getParam(JA_TOOL_COLOR).”/”.$ja_color_theme.( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? “-hilite” : “” ).”.”.$imgext.”” title=””.$ja_color_theme.” theme” alt=””.$ja_color_theme.” theme” id=”ja-tool-“.$ja_color_theme.”theme” onclick=”switchTool(‘”.$this->template.”_”.JA_TOOL_COLOR.”‘,’$ja_color_theme’);return false;” />
    “;
    } ?>

    Thanks for your help.


    1. usertools-layout
    Anonymous Moderator
    #313463

    Hi onanymoto

    But you have to create css and images for your theme.
    At that time, you can select your theme.

    To create a theme, please refer this link http://www.joomlart.com/forums/topic/green-color/
    Please kindly check again

    onanymoto Friend
    #313480

    <em>@JA Developer 139688 wrote:</em><blockquote>Hi onanymoto

    But you have to create css and images for your theme.
    At that time, you can select your theme.

    To create a theme, please refer this link http://www.joomlart.com/forums/topic/green-color/
    Please kindly check again</blockquote>

    Thank you…it finally clicked what I needed to do. It’s always the simple things that get you. Love your templates, so keep them coming!

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

This topic contains 5 replies, has 2 voices, and was last updated by  onanymoto 14 years, 8 months ago.

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