The Joomla! Forum ™





Post new topic Reply to topic  [ 17 posts ] 
Author Message
PostPosted: Thu Oct 08, 2009 6:53 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
Hi all. Me again. Would like to know what I need to do if I don't want to see the text resize buttons anymore. Would prefer a way to remove the code, just to have my codes streamlined, but at the end of the day, I just don't want to see it anymore.

_________________
When in doubt, Google it!


Last edited by El Magnifico on Fri Oct 09, 2009 2:32 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:03 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Feb 28, 2007 5:40 am
Posts: 785
Location: Connecticut, USA
You could remove
Code:
         <div id="fontsize">
            <script type="text/javascript">
            //<![CDATA[
               document.write('<h3><?php echo JText::_('FONTSIZE'); ?></h3><p class="fontsize">');
               document.write('<a href="index.php" title="<?php echo JText::_('Increase size'); ?>" onclick="changeFontSize(2); return false;" class="larger"><?php echo JText::_('bigger'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Decrease size'); ?>" onclick="changeFontSize(-2); return false;" class="smaller"><?php echo JText::_('smaller'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Revert styles to default'); ?>" onclick="revertStyles(); return false;" class="reset"><?php echo JText::_('reset'); ?></a></p>');
            //]]>
            </script>
         </div>


From index.php.

Best,

Matt

_________________
betweenbrain™ | http://www.betweenbrain.com
Construct Template Development Framework | http://construct-framework.com/


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:21 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
sorry for not being able to take your advice so well, but, which of the index.php files should I edit? I see quite a few, none of which have <div id="fontsize"> in it. I guess I'm not looking at the right one.

_________________
When in doubt, Google it!


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 7:41 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Feb 28, 2007 5:40 am
Posts: 785
Location: Connecticut, USA
No worries. I should have been more specific. That would be in templates/beez

Best,

Matt

_________________
betweenbrain™ | http://www.betweenbrain.com
Construct Template Development Framework | http://construct-framework.com/


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 8:57 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
Thanks for your help, but I'm actually using Ja_Purity, so, it may help someone else, and I hope it does, but I still need assistance.

_________________
When in doubt, Google it!


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 10:44 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Feb 28, 2007 5:40 am
Posts: 785
Location: Connecticut, USA
Oh sorry, for some reason I thought you were using the Beez template. I must have been reading too many posts at once :-[

Removing
Code:
<ul class="ja-usertools-font">
from /templates/ja_purity/index.php will remove them.

Best,

Matt

_________________
betweenbrain™ | http://www.betweenbrain.com
Construct Template Development Framework | http://construct-framework.com/


Top
 Profile  
 
PostPosted: Thu Oct 08, 2009 11:34 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
<?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>

<body id="bd" class="fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?> <?php echo $tmpTools->browser();?>" >

these are the only 2 mentions of the word "Font" in my index.php file.

I am also uploading a copy of my index.php file so you can see. (which I had to do in txt cuz it doesn't allow php files)

I DID however, find this nice little piece of code within ja_templatetools.php and it had in the aforementioned piece of code.

function genToolMenu($_array_tools=null, $imgext = 'gif'){
if(!is_array($_array_tools)) $_array_tools = array($_array_tools);
if(!$_array_tools) $_array_tools = array_keys($this->_params_cookie);
if (in_array(JA_TOOL_FONT, $_array_tools)){//show font tools
?>
<ul class="ja-usertools-font">
<li><img style="cursor: pointer;" title="<?php echo JText::_('Increase font size');?>" src="<?php echo $this->templateurl();?>/images/user-increase.<?php echo $imgext;?>" alt="<?php echo JText::_('Increase font size');?>" id="ja-tool-increase" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','inc'); return false;" /></li>
<li><img style="cursor: pointer;" title="<?php echo JText::_('Default font size');?>" src="<?php echo $this->templateurl();?>/images/user-reset.<?php echo $imgext;?>" alt="<?php echo JText::_('Default font size');?>" id="ja-tool-reset" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>',<?php echo $this->_tpl->params->get(JA_TOOL_FONT);?>); return false;" /></li>
<li><img style="cursor: pointer;" title="<?php echo JText::_('Decrease font size');?>" src="<?php echo $this->templateurl();?>/images/user-decrease.<?php echo $imgext;?>" alt="<?php echo JText::_('Decrease font size');?>" id="ja-tool-decrease" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','dec'); return false;" /></li>
</ul>
<script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(JA_TOOL_FONT);?>');</script>
<?php
}



Edit: Can I (I don't care about using it in the future) remove more than just the one line so as to "clean up" my code and not have useless clutter?


You do not have the required permissions to view the files attached to this post.

_________________
When in doubt, Google it!


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 3:42 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 05, 2009 6:14 pm
Posts: 22
Not sure if you finally found out what you should do:
In index.php, just comment out this line:
<?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>
i.e. just turn this line to:
<!-- <?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?> -->

The font size chooser will disappear from the template. I don't believe you can consider any part clutter though. It just depends on the application. I recommend to comment out rather than outright delete, as you might very well change your mind later on.

_________________
http://www.Joomlapex.com: Montréal Joomla Design
Twitter: http://twitter.com/Joomlapex


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 2:32 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
Wow, that worked gr8! Thank you!

_________________
When in doubt, Google it!


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 2:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 05, 2009 6:14 pm
Posts: 22
You're very welcome! :-)

_________________
http://www.Joomlapex.com: Montréal Joomla Design
Twitter: http://twitter.com/Joomlapex


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 3:13 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Feb 28, 2007 5:40 am
Posts: 785
Location: Connecticut, USA
El Magnifico wrote:
<?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>
... these are the only 2 mentions of the word "Font" in my index.php file.

WOW! My bad again :-[ :-[

I was looking at the rendered code. Sorry :(

Glad you got it working!

Best,

Matt

_________________
betweenbrain™ | http://www.betweenbrain.com
Construct Template Development Framework | http://construct-framework.com/


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 3:35 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Sep 29, 2009 9:15 pm
Posts: 121
Location: Belize, Central America/Caribbean
Hey, no problem Matt, you can't expect to win 'em all. ;) Your help was still appreciated though. Thanks!

_________________
When in doubt, Google it!


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 3:37 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Feb 28, 2007 5:40 am
Posts: 785
Location: Connecticut, USA
As long as you got it working, that's all that matters.

Best,

Matt

_________________
betweenbrain™ | http://www.betweenbrain.com
Construct Template Development Framework | http://construct-framework.com/


Top
 Profile  
 
PostPosted: Tue Oct 27, 2009 7:10 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Feb 03, 2006 3:23 pm
Posts: 281
Location: Georgia, United States
Wow!! to netpios... thank you SO SO much!! I've been trying to get rid of them for months but have been unsuccessful... such a simple fix! I decided to do another search of the forum today in the hope that a solution could be found... and here it is. Bless you! ;)

_________________
Be part of the solution -- not part of the problem.


Top
 Profile  
 
PostPosted: Tue Oct 27, 2009 7:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 05, 2009 6:14 pm
Posts: 22
You're very welcome! :-)
Feels good to see that two people have benefited from this extensive sharing of knowledge .. lol
-Netpios

_________________
http://www.Joomlapex.com: Montréal Joomla Design
Twitter: http://twitter.com/Joomlapex


Top
 Profile  
 
PostPosted: Tue Jun 28, 2011 9:55 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jun 28, 2011 9:50 am
Posts: 1
Sorry for this, but I can't find the index.php file. My template is called "gk_blackandwhite", and when I navigate to /templates/gk_blackandwhite I don't see index.php anywhere. If I could get help for this simple problem it'd be much appreciated, thanks.


Top
 Profile  
 
PostPosted: Tue Oct 25, 2011 2:01 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 06, 2010 1:56 pm
Posts: 105
Hi,

I am trying to do the same thing, remove text resize in JA_ Purity_11, I can't find the index.php change it.

My coding ability is very limited, I have been looking in Edit HTML

Help appreciated,

Regards,

Andy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group