-
AuthorPosts
-
BigHug Friend
BigHug
- Join date:
- September 2012
- Posts:
- 60
- Downloads:
- 17
- Uploads:
- 277
- Thanked:
- 11 times in 1 posts
July 23, 2008 at 1:36 pm #131233Hello everyone,
I’ve created another thread about Font Size Tool, because the previous one was marked as solved.
I’ve tried to contact via PM the users but I’ve not received a reply.How I (and other that need this) can add to Helio the possibility to resize the font of the page?
What is the code to add/modify in the template?
I think that Helio is a great theme, but with this “addon” can be much better.
Sorry for duplicating the thread, but I need it.
Someone can help me, please?Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 24, 2008 at 3:57 am #261892Hi
Can you make some screenshots ? Where do you want to add user tool ?Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
July 24, 2008 at 9:28 am #261976Hello,
my website is at http://www.grandesalento.itI’ve make two screenshot, trying to combine Helio + Iolite and Helio + Kulanite.
THere is a way to do this.
Now, a question: why this latest templates doesn’t support natively the Font Size Tool? This will be a great thing…
Bye,
ghale
Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
July 27, 2008 at 11:28 am #262551Hello everybody,
no solutions for this issue, please?Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 28, 2008 at 7:31 am #262672Hi
plz follow this introduction:
1. Edit index.php (templates/ja_helio folder)
Search this line:
<?php $jamenu->genMenu (0); ?>
Change to
<?php $jamenu->genMenu (0); ?>
<div id="ja-usertools">
<?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER) & 2, 'gif'); ?>
</div>Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 28, 2008 at 7:32 am #2626732. Edit template.css(templates/ja_helio/css folder):
Add those lines at the end of file:
#ja-usertools {
font-size:11px;
padding:0px 0pt 0pt;
position:absolute;
right:220px;
top:0px;
}
#ja-usertools ul li {float:left;
padding-left:5px;
}Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 28, 2008 at 7:33 am #2626743. Edit params.ini(templates/ja_helio folder)
Add this line at the end of file :
usertool=2
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 28, 2008 at 7:35 am #2626754. Edit ja_templatetools_1.5.php(templates/ja_helio folder)
Search function genToolMenu, replace that function by
function genToolMenu($ja_tools, $imgext = 'gif'){
if ($ja_tools & 2){//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
}}
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
Hieu Nguyen AdminHieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
July 28, 2008 at 7:59 am #262683Well, what to say… you are the best!
Thank you very much, I really appreciate this.
Your is a very good service.I’ll suggest it to other webmaster I know.
Can you mark the thread solved, please?
Thanks,
ghale -
AuthorPosts
This topic contains 10 replies, has 3 voices, and was last updated by Hieu Nguyen 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum