Hallo, ich möchte eine Modulposition hinzufügen in meinem Template. Weis nur nicht genau wohin und was ich da schreiben muss. Suchen hier im Forum hat mir nicht geholfen, da mein Template vom Code her sehr anderst aussieht :(
Die neue Modulposition soll genau unter user 5 sein. (Siehe Anhang). Bin sehr dankbar für Hilfe !
Hier mal die Index.php:
<?php
/**
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
$path = $this->baseurl.'/templates/'.$this->template;
$showleftColumn = $this->countModules('left');
$showrightColumn = $this->countModules('right');
$showuser6Column= $this->countModules('user6');
if(JRequest::getCmd('task') != 'edit') $Edit = false; else $Edit = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<meta **********="X-UA-Compatible" content="IE=7"/>
<jdoc:include type="head" />
<?php
$user =& JFactory::getUser();
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
?>
<script src="<?php echo $path ?>/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<?php echo $path ?>/scripts/jquery.galleriffic.js" type="text/javascript"></script>
<script src="<?php echo $path ?>/scripts/jquery.opacityrollover.js" type="text/javascript"></script>
<script src="<?php echo $path ?>/scripts/slider.js" type="text/javascript"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.menu-nav li').hover(
function() {
$j(this).addClass("active");
$j(this).find('.ulwrapper').stop(false, true).fadeIn();
$j(this).find('.ulwrapper .ulwrapper').stop(false, true).fadeOut('fast');
},
function() {
$j(this).removeClass("active");
$j(this).find('div').stop(false, true).fadeOut('fast');
}
);
$j('.ulwrapper').hover(
function() {
$j('.parent').addClass("active_tab");
},
function() {
$j('.parent').removeClass("active_tab");
}
);
});
$j(window).bind('load', function(){
$j().prepare_slider();
})
</script>
<!--[if IE 6]><script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script><![endif]-->
<link rel="stylesheet" href="<?php echo $path ?>/css/constant.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path ?>/css/template.css" type="text/css" />
</head>
<body id="body">
<div class="header">
<jdoc:include type="modules" name="user1" />
<div class="head">
<jdoc:include type="modules" name="user3" style="topmenu" />
<h1 id="logo"><a href="<?php echo $_SERVER['PHP_SELF']?>" title="KNOCH OBJEKT"><img title="KNOCH OBJEKT" src="<?php echo $path ?>/images/logo.gif" alt="KNOCH OBJEKT" /></a></h1>
</div>
</div>
<jdoc:include type="modules" name="user5" />
<div class="main">
<!--header-->
<!--slider-->
<div class="wrapper-content content-top">
<div class="clear">
<!--content-->
<div id="content">
<div class="clear">
<!--right-->
<?php if ($showrightColumn && !$Edit) : ?>
<div id="right">
<div class="right-indent">
<jdoc:include type="modules" name="right" style="wrapper_box" />
</div>
</div>
<?php endif;?>
<!--right-->
<?php if ($showleftColumn && !$Edit) : ?>
<div id="left">
<div class="left-indent">
<jdoc:include type="modules" name="left" style="wrapper_box" />
<?php if ($showuser6Column && $option!="com_search" && !$Edit) : ?>
<div class="newsletter"><jdoc:include type="modules" name="user6" style="wrapper_box" /></div>
<?php endif;?>
</div>
</div>
<?php endif;?>
<!--center-->
<div class="container">
<div class="clear">
<?php if ($this->getBuffer('message')) : ?>
<div class="error err-space">
<jdoc:include type="message" />
</div>
<?php endif; ?>
<div id="sprungmarke"><jdoc:include type="component" /></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--footer-->
<div class="footer">
<div class="foot">
<jdoc:include type="modules" name="user7" style="footermenu" />
<div class="copy">2010 by KNOCH OBJEKT</a> &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; <?php echo JText::_('Alle Inhalte unterliegen dem Urheberrecht.') ?> &n bsp; &nbs p; &n bsp; &nbs p; Desig ned by <a href="http://www.media.finstructor.com" title="www.media.finstructor.com" target="_blank" > media.finstructor.com</a></div>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function($j) {
// We only want these styles applied when javascript is enabled
$j('div.content').css('display', 'block');
// Initially set opacity on thumbs and add
// additional styling for hover effect on thumbs
var onMouseOutOpacity = .5;
$j('#thumbs ul.thumbs li').opacityrollover({
mouseOutOpacity: onMouseOutOpacity,
mouseOverOpacity: 1.0,
fadeSpeed: 'fast',
exemptionSelector: '.selected'
});
// Initialize Advanced Galleriffic Gallery
var gallery = $j('#thumbs').galleriffic({
delay: 2500,
numThumbs: 13,
preloadAhead: 10,
enableTopPager: false,
enableBottomPager: false,
maxPagesToShow: 7,
imageContainerSel: '#slideshow',
controlsContainerSel: '#controls',
captionContainerSel: '#caption',
loadingContainerSel: '#loading',
renderSSControls: false,
renderNavControls: true,
playLinkText: 'Play Slideshow',
pauseLinkText: 'Pause Slideshow',
prevLinkText: '‹ Previous Photo',
nextLinkText: 'Next Photo ›',
nextPageLinkText: 'Next ›',
prevPageLinkText: '‹ Prev',
enableHistory: false,
autoStart: false,
syncTransitions: true,
defaultTransitionDuration: 900,
onSlideChange: function(prevIndex, nextIndex) {
// 'this' refers to the gallery, which is an extension of $('#thumbs')
this.find('ul.thumbs').children()
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('fast', 1.0);
},
onPageTransitionOut: function(callback) {
this.fadeTo('fast', 1.0, callback);
},
onPageTransitionIn: function() {
this.fadeTo('fast', 1.0);
}
});
});
</script>
</body>
</html>


LinkBack URL
About LinkBacks
Zitieren

Lesezeichen