-
AuthorPosts
-
February 21, 2011 at 9:01 am #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
February 21, 2011 at 7:44 pm #377806Is it anybody outthere ……:confused:
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 21, 2011 at 7:53 pm #377809Nope, 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
1 user says Thank You to Phill for this useful post
February 21, 2011 at 8:28 pm #377815THANKS 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 21, 2011 at 9:23 pm #377824I 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>
<!-->
February 21, 2011 at 9:44 pm #377828there 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
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by purina 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum