Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • paganini Friend
    #118400

    Is there a way to disable the resize option and always have it set at the full width and remove the narrow width option? Would this also help with the banner problem I mentioned earlier?

    Many thanks as always
    Todd:confused:

    Stefanopoulos Friend
    #213590

    Got the same problem…
    You can disable the resize option but it will also disable the text resize tool…
    I’ve found no other way to disable only the screen options.
    Sorry

    kallan Friend
    #213701

    in the index.php file of the template there are instructions on how to disable the resize option – although as Stefanopoulos says it will also disable the text resize tool.

    Regards,
    Kiwidesign

    Khanh Le Moderator
    #213703

    Follow these steps to separate screen tool and font tool:

    1. Open file ja_templatetools.php, search function genToolMenu. Replace this function with following function:
    [php]
    function genToolMenu($jatool){
    global $ja_template_path,$ja_font_size_default, $ja_font_size, $ja_color_themes, $ja_width, $ja_color;
    if (($jatool & 1) || ($jatool & 2)){//show screen and font tools
    ?>
    <span class=”ja-usertools”>
    <?php
    if ($jatool & 1){//show screen tools
    ?>
    <a href=”#Narrow” onclick=”setScreenType(‘narrow’);return false;”><img title=”Narrow screen” src=”<?php echo $ja_template_path;?>/images/user-screen1<?php echo ( ($ja_width==”wide”) ? “” : “-hilite” ) ?>.gif” alt=”Narrow screen resolution” id=”ja-tool-narrow” onclick=”changeToolHilite(curtool, this);curtool=this;” /></a>
    <a href=”#Wide” onclick=”setScreenType(‘wide’);return false;”><img title=”Wide screen” src=”<?php echo $ja_template_path;?>/images/user-screen2<?php echo ( ($ja_width==”wide”) ? “-hilite” : “” ) ?>.gif” alt=”Wide screen resolution” id=”ja-tool-wide” onclick=”changeToolHilite(curtool, this);curtool=this;” /></a>
    <?php
    }
    if ($jatool & 2){//show font tools
    ?>
    <a href=”#Increase” onclick=”changeFontSize(1); return false;”><img title=”Increase size” src=”<?php echo $ja_template_path;?>/images/user-increase.gif” alt=”Increase font size” id=”ja-tool-increase” /></a>
    <a href=”#Decrease” onclick=”changeFontSize(-1); return false;”><img title=”Decrease size” src=”<?php echo $ja_template_path;?>/images/user-decrease.gif” alt=”Decrease font size” id=”ja-tool-decrease” /></a>
    <a href=”#Default” onclick=”revertStyles(<?php echo $ja_font_size_default;?>); return false;”><img title=”Default size” src=”<?php echo $ja_template_path;?>/images/user-reset.gif” alt=”Default font size” id=”ja-tool-reset” /></a>
    <?php
    } ?>
    </span>
    <script type=”text/javascript”>
    var curtool = document.getElementById(‘<?php echo ( ($ja_width==”wide”) ? “ja-tool-wide” : “ja-tool-narrow” ) ?>’);
    </script>
    <?php
    }
    if ($jatool & 4){//show color tools
    ?>
    <span class=”ja-colorthemes”>
    <?php
    foreach ($ja_color_themes as $ja_color_theme) {
    ?>
    <a href=”#<?php echo $ja_color_theme;?>” onclick=”setActiveStyleSheet(‘<?php echo $ja_color_theme;?>’);”><img style=”cursor: pointer;” src=”<?php echo $ja_template_path;?>/images/<?php echo $ja_color_theme;?><?php echo ( ($ja_color==$ja_color_theme) ? “-hilite” : “” ) ?>.gif” title=”<?php echo $ja_color_theme;?> color” alt=”<?php echo $ja_color_theme;?> color” id=”ja-tool-<?php echo $ja_color_theme;?>color” onclick=”changeToolHilite(curcolor, this);curcolor=this;” /></a>
    <?php
    }
    ?>
    </span>
    <script type=”text/javascript”>
    var curcolor = document.getElementById(‘<?php echo ( ($ja_color==””) ? “ja-tool-defaultcolor” : “ja-tool-{$ja_color}color” ) ?>’);
    </script>
    <?php
    }
    }[/php]

    2. Open template index.php file, search this code:
    [php]
    <?php genToolMenu($ja_tool & 1); /*screen tool*/ ?>
    <?php genToolMenu($ja_tool & 2); /*color tool*/ ?>
    [/php]
    replace by:
    [php]
    <?php genToolMenu($ja_tool);
    [/php]

    3. Now you could config the site tools by setting $ja_tool to following values:


    0: disable all;
    1: screen;
    2: font;
    4: color;
    3: screen + font;
    5: screen + color;
    6: font + color;
    7: all;

    Stefanopoulos Friend
    #215123

    I’ve tried this tip…
    But then I’ve got an error in index.php
    It says “unexpected ‘>’ in line 150 ..”

    Any idea ?

    Stefanopoulos Friend
    #215259

    does anybody have an answer for my problem with this tip ?

    Thanks !

    Stefanopoulos Friend
    #215288

    How dumb I am !
    At last, I found the solution to the error I told before.
    It’s so easy though ! :-[

    the line
    [PHP]<?php genToolMenu($ja_tool); [/PHP]has got a little error : of course if you insert a <?, you must close it !

    so you should replace the two lines mentioned by :
    [PHP]<?php genToolMenu($ja_tool); ?>[/PHP]

    It works perfectly now. 😉

    acijanos Friend
    #238894

    Khanh Le,
    Thanks for the great and detailed answer – I appreciate it – just what I was looking for.

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

This topic contains 8 replies, has 5 voices, and was last updated by  acijanos 16 years, 7 months ago.

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