Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • wombat1 Friend
    #152045

    I installed Teline iii quick start yet the option to enable or disable Cufon is not there?
    Was this removed or is something wrong with my installation?

    Thanks

    Saguaros Moderator
    #348266

    Hello wombat!

    You try to open the file: ja_teline_iiilayoutsblockshead.php and find the following codes:
    [PHP]

    <?php if ($this->getParam(‘ja_cufon’)) : ?>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/fonts/Museo_500_400.font.js”></script>
    <script type=”text/javascript”>
    Cufon.replace(
    ‘.componentheading, .contentheading, #ja-zinfp .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3’,
    { fontFamily: ‘Museo 500’ }
    );
    Cufon.replace (
    ‘.logo-text h1’,
    { fontFamily: ‘Museo 500’, color: ‘-linear-gradient(#999, #000, #999)’, textShadow: ‘#ccc 1px 1px’ }
    );
    </script>
    <?php endif; ?>
    [/PHP]
    you replace:
    [PHP]

    <?php // if ($this->getParam(‘ja_cufon’)) : ?>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/fonts/Museo_500_400.font.js”></script>
    <script type=”text/javascript”>
    Cufon.replace(
    ‘.componentheading, .contentheading, #ja-zinfp .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3’,
    { fontFamily: ‘Museo 500’ }
    );
    Cufon.replace (
    ‘.logo-text h1’,
    { fontFamily: ‘Museo 500’, color: ‘-linear-gradient(#999, #000, #999)’, textShadow: ‘#ccc 1px 1px’ }
    );
    </script>
    <?php // endif; ?>
    [/PHP]

    Good luck

    wombat1 Friend
    #348275

    Hello Tienhc

    Surely the code will work thank you, but i have one question.

    Why was this removed from Teline iii. Even in administration the options are gone..
    I recently used JA Lead to complete a site where i used a font with international letters and all worked well for spanish.
    Is there a problem with perfromance considering that this template is more complex and requires more database calls per page load.
    The reason i ask is that this would be reason enough for me not to implement Cufon although i very much appreciate the possibility to do so.

    Thanks once more.

    micrantha Friend
    #348305

    Hello,
    Maybe Joomlart has forgotten to add parameter in file templateDetails.xml.
    Code for cufon is there in file head.php.

    You could try adding the code for parameter in .xml-file:

    <param name="ja_cufon" type="list" default="1" label="Enable Cufon" description="Enable Cufon desc">
    <option value="0">No</option>
    <option value="1">Yes</option>
    </param>

    Good luck,
    Micrantha

    wombat1 Friend
    #348334

    Oh wow, thanks very much Micrantha thats very useful.

    I still would like to know why this was removed, performance issues? Conflicts?

    Cheers

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

This topic contains 5 replies, has 3 voices, and was last updated by  wombat1 14 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum