-
AuthorPosts
-
zandercent Friend
zandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
April 10, 2008 at 10:02 am #127438Its a feature that easy enough in the later templates, but I would like to be able to disable the ‘width select’ option in xenia, and just have the site a fixed width?
Is this possible?
thanks!
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 15, 2008 at 4:25 am #245540Hi zandercent !
What version do you use ? 1.0.x or 1.5.x
WIth version 1.5.x you can disable it in admin : extensions >> template manager > JA Xenia II -> set display template tool = no display.
WIth version 1.0.x you open index.php file in templates/ja_xenia_ii folder :
find following code :
# Enable users option
$ja_tool = 3; // 0: disable all; 1: disable color, enable font; 2: enable color, disable font; 3: enable all.
change $ja_tool value for select tool type !
good luck !
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
April 15, 2008 at 8:12 am #245551this is the problem, you will notice that disabling the ‘width selection’ is not one of the options listed in the code you picked out, only control over the ‘colour’ and ‘font’ pickers.
any other ideas… I’m using 1.0.x
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 15, 2008 at 10:25 am #245572Hi zandercent !
You can remove it by way :
open ja_templatetools.php file in templatesja_xenia_ii folder. find following code section at about line 87 :
if ($jatool & 1){//show screen tools
?>
<a href="#Narrow" onclick="return false;"><img title="Narrow screen" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-screen1<?php echo ( ($ja_width=="narrow") ? "-hilite" : "" ) ?>.gif" alt="Narrow screen resolution" id="ja-tool-narrow" onclick="changeToolHilite(curtool, this);curtool=this;setScreenType('narrow');" /></a>
<a href="#Wide" onclick="return false;"><img title="Wide screen" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-screen2<?php echo ( ($ja_width=="wide") ? "-hilite" : "" ) ?>.gif" alt="Wide screen resolution" id="ja-tool-wide" onclick="changeToolHilite(curtool, this);curtool=this;setScreenType('wide');" /></a>
<a href="#Auto" onclick="return false;"><img title="Auto adjust screen size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-screen3<?php echo ( ($ja_width=="auto") ? "-hilite" : "" ) ?>.gif" alt="Auto adjust screen size" id="ja-tool-auto" onclick="changeToolHilite(curtool, this);curtool=this;setScreenType('auto');" /></a>
<a href="#Increase" onclick="return false;"><img title="Increase font size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-increase.gif" alt="Increase font size" id="ja-tool-increase" onclick="changeFontSize(1); return false;" /></a>
<a href="#Decrease" onclick="return false;"><img title="Decrease font size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-decrease.gif" alt="Decrease font size" id="ja-tool-decrease" onclick="changeFontSize(-1); return false;" /></a>
<a href="#Default" onclick="return false;"><img title="Default size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-reset.gif" alt="Default font size" id="ja-tool-reset" onclick="revertStyles(<?php echo $ja_font_size_default;?>); return false;" /></a>
<?php
}
change to :
if ($jatool & 1){//show font tools
?>
<a href="#Increase" onclick="return false;"><img title="Increase font size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-increase.gif" alt="Increase font size" id="ja-tool-increase" onclick="changeFontSize(1); return false;" /></a>
<a href="#Decrease" onclick="return false;"><img title="Decrease font size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-decrease.gif" alt="Decrease font size" id="ja-tool-decrease" onclick="changeFontSize(-1); return false;" /></a>
<a href="#Default" onclick="return false;"><img title="Default size" src="<?php echo $ja_template_path;?>/images/<?php echo $ja_color?>/user-reset.gif" alt="Default font size" id="ja-tool-reset" onclick="revertStyles(<?php echo $ja_font_size_default;?>); return false;" /></a>
<?php
}
notify : Obove change is remove red code section .
1 user says Thank You to Sherlock for this useful post
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
April 15, 2008 at 10:36 am #245575excellent, worked like a charm.
thank you very much.
April 29, 2008 at 5:11 am #247214Hi, I have installed the template and I’m getting this errors. Can someone help?
thanksWarning: include(C:xampphtdocsJoomla15/templates/ja_xenia/ja_templatetools.php) [function.include]: failed to open stream: No such file or directory in C:xampphtdocsJoomla15templatesjaxeniaindex.php on line 38
Warning: include() [function.include]: Failed opening ‘C:xampphtdocsJoomla15/templates/ja_xenia/ja_templatetools.php’ for inclusion (include_path=’.;C:xamppphppear’) in C:xampphtdocsJoomla15templatesjaxeniaindex.php on line 38
Fatal error: Call to undefined function genmenuhead() in C:xampphtdocsJoomla15templatesjaxeniaindex.php on line 82
April 30, 2008 at 8:41 am #247349Hello, will this fix work for JA Mageia as well? Thanks for your help
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by harrisonmitchell 16 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum