-
AuthorPosts
-
January 20, 2007 at 11:49 pm #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:January 24, 2007 at 1:46 pm #213590Got 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.
Sorrykallan Friendkallan
- Join date:
- August 2006
- Posts:
- 349
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 22
- Thanked:
- 35 times in 1 posts
January 26, 2007 at 2:53 am #213701in 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,
KiwidesignKhanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
January 26, 2007 at 3:34 am #213703Follow 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;March 1, 2007 at 7:46 pm #215123I’ve tried this tip…
But then I’ve got an error in index.php
It says “unexpected ‘>’ in line 150 ..”Any idea ?
March 5, 2007 at 11:16 am #215259does anybody have an answer for my problem with this tip ?
Thanks !
March 6, 2007 at 12:55 pm #215288How 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. 😉
-
AuthorPosts
This topic contains 8 replies, has 5 voices, and was last updated by acijanos 16 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum