Hi, I can not enter the code in Freichat templates in use on the index page, where should I put the code?
This is the code in my template:
<?php defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
$document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $this->baseurl . '/templates/' . $this->template;
artxComponentWrapper($document);
?>
<include type="head"></include><link rel="stylesheet" href="<?php%20echo%20%24this->baseurl;%20?>/templates/system/css/system.css" type="text/css">
<link rel="stylesheet" href="<?php%20echo%20%24this->baseurl;%20?>/templates/system/css/general.css" type="text/css">
<link rel="stylesheet" type="text/css" href="<?php%20echo%20%24templateUrl;%20?>/css/template.css" media="screen">
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]--><!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]--><script type="text/javascript" src="<?php%20echo%20%24templateUrl;%20?>/script.js"></script>
<include type="modules" name="user3"></include><include type="modules" name="banner1" style="artstyle" artstyle="art-nostyle"></include><?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?>
<?php if (artxCountModules($document, 'left')) : ?>
<?php endif; ?>
<?php echo artxModules($document, 'banner2', 'art-nostyle');
if (artxCountModules($document, 'breadcrumb'))
echo artxPost(null, artxModules($document, 'breadcrumb'));
echo artxPositions($document, array('user1', 'user2'), 'art-article');
echo artxModules($document, 'banner3', 'art-nostyle');
?><?php if (artxHasMessages()) : ?>
<!-- article-content -->
<include type="message"></include><!-- /article-content -->
<?php endif; ?><include type="component"></include><?php echo artxModules($document, 'banner4', 'art-nostyle'); ?><?php echo artxPositions($document, array('user4', 'user5'), 'art-article'); ?><?php echo artxModules($document, 'banner5', 'art-nostyle'); ?>
<?php if (artxCountModules($document, 'right')) : ?>
<?php endif; ?>
<?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'art-block'); ?><include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle"></include>
Thank you !!!
Hi, I can not enter the code in Freichat templates in use on the index page, where should I put the code?
This is the code in my template:
&lt;?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
$document = & $this;
$baseUrl = $this-&gt;baseurl;
$templateUrl = $this-&gt;baseurl . '/templates/' . $this-&gt;template;
artxComponentWrapper($document);
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="&lt;?php echo $this-&gt;language; ?&gt;" lang="&lt;?php echo $this-&gt;language; ?&gt;" &gt;
&lt;head&gt;
&lt;jdoc:include type="head" /&gt;
&lt;link rel="stylesheet" href="&lt;?php echo $this-&gt;baseurl; ?&gt;/templates/system/css/system.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="&lt;?php echo $this-&gt;baseurl; ?&gt;/templates/system/css/general.css" type="text/css" /&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templateUrl; ?&gt;/css/template.css" media="screen" /&gt;
&lt;!--[if IE 6]&gt;&lt;link rel="stylesheet" href="&lt;?php echo $templateUrl; ?&gt;/css/template.ie6.css" type="text/css" media="screen" /&gt;&lt;![endif]--&gt;
&lt;!--[if IE 7]&gt;&lt;link rel="stylesheet" href="&lt;?php echo $templateUrl; ?&gt;/css/template.ie7.css" type="text/css" media="screen" /&gt;&lt;![endif]--&gt;
&lt;script type="text/javascript" src="&lt;?php echo $templateUrl; ?&gt;/script.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="art-page-background-simple-gradient"&gt;
&lt;div id="art-page-background-gradient"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="art-main"&gt;
&lt;div class="art-sheet"&gt;
&lt;div class="art-sheet-tl"&gt;&lt;/div&gt;
&lt;div class="art-sheet-tr"&gt;&lt;/div&gt;
&lt;div class="art-sheet-bl"&gt;&lt;/div&gt;
&lt;div class="art-sheet-br"&gt;&lt;/div&gt;
&lt;div class="art-sheet-tc"&gt;&lt;/div&gt;
&lt;div class="art-sheet-bc"&gt;&lt;/div&gt;
&lt;div class="art-sheet-cl"&gt;&lt;/div&gt;
&lt;div class="art-sheet-cr"&gt;&lt;/div&gt;
&lt;div class="art-sheet-cc"&gt;&lt;/div&gt;
&lt;div class="art-sheet-body"&gt;
&lt;div class="art-header"&gt;
&lt;div class="art-header-png"&gt;&lt;/div&gt;
&lt;div class="art-header-jpeg"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;jdoc:include type="modules" name="user3" /&gt;
&lt;jdoc:include type="modules" name="banner1" style="artstyle" artstyle="art-nostyle" /&gt;
&lt;?php echo artxPositions($document, array('top1', 'top2', 'top3'), 'art-block'); ?&gt;
&lt;div class="art-content-layout"&gt;
&lt;div class="art-content-layout-row"&gt;
&lt;?php if (artxCountModules($document, 'left')) : ?&gt;
&lt;div class="art-layout-cell art-sidebar1"&gt;&lt;?php echo artxModules($document, 'left', 'art-block'); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;div class="art-layout-cell art-&lt;?php echo artxGetContentCellStyle($document); ?&gt;"&gt;
&lt;?php
echo artxModules($document, 'banner2', 'art-nostyle');
if (artxCountModules($document, 'breadcrumb'))
echo artxPost(null, artxModules($document, 'breadcrumb'));
echo artxPositions($document, array('user1', 'user2'), 'art-article');
echo artxModules($document, 'banner3', 'art-nostyle');
?&gt;
&lt;?php if (artxHasMessages()) : ?&gt;&lt;div class="art-post"&gt;
&lt;div class="art-post-tl"&gt;&lt;/div&gt;
&lt;div class="art-post-tr"&gt;&lt;/div&gt;
&lt;div class="art-post-bl"&gt;&lt;/div&gt;
&lt;div class="art-post-br"&gt;&lt;/div&gt;
&lt;div class="art-post-tc"&gt;&lt;/div&gt;
&lt;div class="art-post-bc"&gt;&lt;/div&gt;
&lt;div class="art-post-cl"&gt;&lt;/div&gt;
&lt;div class="art-post-cr"&gt;&lt;/div&gt;
&lt;div class="art-post-cc"&gt;&lt;/div&gt;
&lt;div class="art-post-body"&gt;
&lt;div class="art-post-inner"&gt;
&lt;div class="art-postcontent"&gt;
&lt;!-- article-content --&gt;
&lt;jdoc:include type="message" /&gt;
&lt;!-- /article-content --&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;jdoc:include type="component" /&gt;
&lt;?php echo artxModules($document, 'banner4', 'art-nostyle'); ?&gt;
&lt;?php echo artxPositions($document, array('user4', 'user5'), 'art-article'); ?&gt;
&lt;?php echo artxModules($document, 'banner5', 'art-nostyle'); ?&gt;
&lt;/div&gt;
&lt;?php if (artxCountModules($document, 'right')) : ?&gt;
&lt;div class="art-layout-cell art-sidebar2"&gt;&lt;?php echo artxModules($document, 'right', 'art-block'); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;?php echo artxPositions($document, array('bottom1', 'bottom2', 'bottom3'), 'art-block'); ?&gt;
&lt;jdoc:include type="modules" name="banner6" style="artstyle" artstyle="art-nostyle" /&gt;
&lt;div class="art-footer"&gt;
&lt;div class="art-footer-t"&gt;&lt;/div&gt;
&lt;div class="art-footer-l"&gt;&lt;/div&gt;
&lt;div class="art-footer-b"&gt;&lt;/div&gt;
&lt;div class="art-footer-r"&gt;&lt;/div&gt;
&lt;div class="art-footer-body"&gt;
&lt;?php echo artxModules($document, 'syndicate'); ?&gt;
&lt;div class="art-footer-text"&gt;
&lt;?php if (artxCountModules($document, 'copyright') == 0): ?&gt;
&lt;p&gt;Copyright &copy; 2011 &lt;br /&gt;
All Rights Reserved.&lt;/p&gt;
&lt;?php else: ?&gt;
&lt;?php echo artxModules($document, 'copyright', 'art-nostyle'); ?&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="cleared"&gt;&lt;/div&gt;
&lt;p class="art-page-footer"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Thank you !!!