test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • BigHug Friend
    #131233

    Hello 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 Friend
    #261892

    Hi
    Can you make some screenshots ? Where do you want to add user tool ?

    Hieu Nguyen Admin
    #261976

    Hello,
    my website is at http://www.grandesalento.it

    I’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


    1. Screenshot.zip
    Hieu Nguyen Admin
    #262551

    Hello everybody,
    no solutions for this issue, please?

    Sherlock Friend
    #262672

    Hi
    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 Friend
    #262673

    2. 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 Friend
    #262674

    3. Edit params.ini(templates/ja_helio folder)
    Add this line at the end of file :

    usertool=2

    Sherlock Friend
    #262675

    4. 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 Friend
    #262676

    Download this attachment
    2310
    Unzip, then copy to templates/ja_helio/images folder

    Hieu Nguyen Admin
    #262683

    Well, 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

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

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