Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • purina Friend
    #160494

    Hello, I need to add code to the head.php. I cannot find it. It is different then in V1, isnot it ? thanks JIRI

    purina Friend
    #377806

    Is it anybody outthere ……:confused:

    Phill Moderator
    #377809

    Nope, everyone has run away to join the circus;)

    Things have moved around a bit in T3V2 with all the core stuff in the jat3 plugin. This means it is easier to upgrade without leaving people struggling when it is timeto upgrade much of the template.

    This does make things a little more complex for those new to T3V2 however.

    In the case of head.php it is currently in plugins>system>jat3>base-themes>default>blocks

    Now we do not want to edit it there or our changes would be overwritten if the plugin is updated so first we need to make a copy of that file. Copy it to templates>ja_teline_iii_v2>blocks then make your changes in that new file.

    In the case of head.php

    purina Friend
    #377815

    THANKS very much, BUT I have a bit problem. When I copy this head.php to path you wrote down, I have got an empty page and not the web site. I need just to add this code:

    <script type=”text/javascript” src=”http://impcz.adocean.pl/files/js/ado.js”></script>
    <script type=”text/javascript”>
    /* (c)AdOcean 2003-2010 */
    if(typeof ado!==”object”){ado={};ado.config=ado.preview=ado.placement=ado.master=ado.slave=function(){};}
    ado.config({mode: “old”, xml: false, characterEncoding: true});
    ado.preview({enabled: true, emiter: “impcz.adocean.pl”, id: “dcqax5BCo6Kkt_gMzeSV68riPAMD8n.UiqK.aHdlzTn.j7″});
    </script>

    <script type=”text/javascript”>
    /* (c)AdOcean 2003-2010, MASTER: im_cz.Lodninoviny.cz Ji__ _uji_.Cel_ web */
    ado.master({id: ‘SRJb0PG6_LF35_3ACF5l1yfvUS34pieAsrFqQGXVzDv.W7’, server: ‘impcz.adocean.pl’ });
    </script>

    but it seems I do something wrong. Thanks for your help 🙂

    Phill Moderator
    #377824

    I have just tried copying it myself and am not getting any problems. Does the site work if you just copy the head.php to templates>ja_teline_iii_v2>blocks

    If it does still work which it should then add your code like this

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA T3v2 Plugin - Template framework for Joomla 1.5
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details
    # on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.com - http://www.joomlancers.com.
    # ------------------------------------------------------------------------
    */
    ?>
    <script type="text/javascript">
    var siteurl='<?php echo JURI::base(true) ?>/';
    var tmplurl='<?php echo JURI::base(true)."/templates/".T3_ACTIVE_TEMPLATE ?>/';
    </script>
    <script type="text/javascript" src="http://impcz.adocean.pl/files/js/ado.js"></script>
    <script type="text/javascript">
    /* (c)AdOcean 2003-2010 */
    if(typeof ado!=="object"){ado={};ado.config=ado.preview=ado. placement=ado.master=ado.slave=function(){};}
    ado.config({mode: "old", xml: false, characterEncoding: true});
    ado.preview({enabled: true, emiter: "impcz.adocean.pl", id: "dcqax5BCo6Kkt_gMzeSV68riPAMD8n.UiqK.aHdlzTn.j7"}) ;
    </script>
    <script type="text/javascript">
    /* (c)AdOcean 2003-2010, MASTER: im_cz.Lodninoviny.cz Ji__ _uji_.Cel_ web */
    ado.master({id: 'SRJb0PG6_LF35_3ACF5l1yfvUS34pieAsrFqQGXVzDv.W7', server: 'impcz.adocean.pl' });
    </script>

    <jdoc:include type="head" />
    <?php if (T3Common::mobile_device_detect()=='iphone'):?>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=5.0; user-scalable=1;" />
    <meta name="apple-touch-fullscreen" content="YES" />
    <?php endif;?>
    <?php if (T3Common::mobile_device_detect()):?>
    <meta name="HandheldFriendly" content="true" />
    <?php endif;?>
    <link href="<?php echo T3Path::getUrl('images/favicon.ico') ?>" rel="shortcut icon" type="image/x-icon" />
    <?php JHTML::stylesheet ('', 'templates/system/css/system.css') ?>
    <?php JHTML::stylesheet ('', 'templates/system/css/general.css') ?>
    <!-->
    <style>
    .clearfix { display: inline-block; } /* IE7xhtml*/
    </style>
    <!-->

    purina Friend
    #377828

    there must be something worng. OK it works when I copy the code and make new head.php / but the banners are not showed / http://www.lodninoviny.cz

    purina Friend
    #377830

    no it works / it took some minutes to wake up / strange but thank you very much “”!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:D

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

This topic contains 7 replies, has 2 voices, and was last updated by  purina 13 years, 3 months ago.

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