Новости Joomla

Quantum Manager нужен сообществу, а автору нужна ваша поддержка!

Quantum Manager нужен сообществу, а автору нужна ваша поддержка!Файловый менеджер Quantum — одно...

Файловый менеджер Quantum — одно из самых популярных решений для Joomla, созданное разработчиком из сообщества Joomla, Дмитрием Цымбалом (@tsymbalmitia). Он делает Quantum удобным, безопасным и современным, обновляет его, исправляет уязвимости и отвечает пользователям — всё это в свободное от основной работы время.

Теперь настал момент для следующего шага: развитие проекта требует больше времени и ресурсов.

0 Пользователей и 1 Гость просматривают эту тему.
  • 13 Ответов
  • 2656 Просмотров
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Всем доброго времени суток!

Вот такая вот проблема, может кто подскажет.

Есть сайт, существует давно. Появилась необходимость поставить не него сообщество и Форум. Форум выбрала Kunena.

Что имеется в наличии: Joomla 1.5.2, шаблон Marhance, Kunena 1.4

Форум встал хорошо, ошибок не выпадает, все работает. есть одно но: он не на всю страницу. То есть сдвиг вправо. То есть слева виднеется колонка пустая без модулей. Прочитала все возможное по этому поводу (FAQ Kunena - вообще штука полезная), но отключение модулей на этой странице к желаемому результату не приводит. Видимо проблема в шаблоне, который трехколоночный (наверное).

Теперь вопрос. Как сделать так (какие значения задать в шаблоне), чтобы при отсутствия в левой колонке модулей, body расстягивалось влево? То есть форум бы встал нормально? А не так как сейчас только вправо.

Вот код CSS шаблона из файла tdefault.css

Код
/******************************************/
/***template design "globbersthemes" **********/
/***MARHANCE/AOUT 2010/************/
/***by globbers for globbersthemes ************/
/***all rights reserved***********************/
/******************************************/

/********************************************/
/*** *********body et aspect general ***********/
/*******************************************/

html {
height: 100%;

}

body{
margin:0;
padding:0;
text-align:center;
background:#ffffff url(../images/bg.jpg) 0 0 repeat;
font-size:13px;
color:#672620;
font-family: cambria, tahoma, arial , sans-serif;
font-weight:normal;

}

/*texte*/
p {
font-size: 100%;

}

h1 {
font-size: 200%;

}

h2 {
font-size: 150%;

}

h3 {
font-size: 125%;

}

h4, h5, h6 {
font-size: 100%;

}

/* liens hypertextes*/
a:link, a:visited {
text-decoration:none;
color:#672620;
font-weight:bold;

}

a:hover {
color:#000000;

}

ul {
margin:0;
padding-left:20px;

}

li {
list-style-type:square;
background:transparent;
margin: 4px;

}

img {
border:none;
margin:3px 5px;
padding:0;

}

img .caption {
text-align: left;

}

.highlight{
background:#672620;
padding: 0px 2px 0px 2px;
color:#ffffff;

}

.button {
background:#672620;
border:none;
color:#fff;
font-weight:bold;
padding:4px;
    
}

.inputbox {
color:#000000;
background:#ffffff;
border:none;
padding:4px;
font-weight:bold;

}

.pagewidth{
width:980px;
text-align:center;
background:transparent;
margin-left:auto;
margin-right:auto;
margin-top:0px;
margin-bottom:0px;
position:relative;

}

fieldset {
margin:0px 5px 5px 5px;
padding:5px;
border:1px dashed #76938c;

}

/**************************/
/*********HEARDER**********/
/**************************/
#header {
float:left;
width:100%;
height:250px;
background: url(../images/header.jpg) repeat;

}

#header-top {
float:left;
width:980px;
height:40px;
background:transparent;

}

/***************************/
/*MOD LOGIN/REGISTER/SEARCH*/
/***************************/

#tool {
float:right;
width:980px;
height:40px;
background:transparent;
margin-top:15px;


}

a.login-switch {
float:right;
background: url(../images/login.jpg) no-repeat;
color: #000;
width:92px;
height:12px;
margin-left:20px;

}

a.register-switch {
float:right;
background: url(../images/register.jpg) no-repeat;
color: #000;
width:92px;
height:12px;
margin-left:20px;

}

a.search-switch {
float:right;
background: url(../images/search.jpg) no-repeat;
color: #000;
width:75px;
height:12px;
margin-left:20px;

}

a.login-switch:hover {
background: url(../images/login-hover.jpg) 0 0 no-repeat;

}

a.register-switch:hover {
background: url(../images/register-hover.jpg) 0 0 no-repeat ;

}

a.search-switch:hover {
background: url(../images/search-hover.jpg) 0 0 no-repeat ;

}

a.show,
a.show:hover {
float:right;
color: #000;
width:75px;
height:12px;
background: url(../images/close.jpg) 0 0 no-repeat;
margin-left:20px;

}

 a.deconnexion {
float:right;
background:transparent url(../images/logout.jpg) no-repeat;
color: #000;
width:75px;
height:12px;
margin-left:20px;

}

#gl-login {
background: #000000;
color: #fff;
top: 70px;
display: none;
height: auto;
overflow: hidden;
padding: 11px 21px 11px 33px;
position: absolute;
left: 550px;
text-align:left;
z-index: 999;
width:150px;
-moz-box-shadow: 1px 1px 6px #000;  
  -webkit-box-shadow: 1px 1px 6px #000;  
  box-shadow: 1px 1px 6px #000;
  
}

h3.tittle-login{
text-align:left;
font-weight:bold;
font-size:20px;
letter-spacing:1px;
margin:0 ;
padding:5px 0 12px 0px;

}

h3.tittle-register{
text-align:left;
font-weight:bold;
font-size:21px;
margin:0 ;
padding:5px 0 12px 0px;

}

#gl-register{
background: #000000;
color: #fff;
top: 70px;
display: none;
height: auto;
overflow: hidden;
padding: 16px 11px 11px 25px;
position: absolute;
left: 400px;
text-align:left;
z-index: 999;
width:450px;
-moz-box-shadow: 1px 1px 6px #000;  
  -webkit-box-shadow: 1px 1px 6px #000;  
  box-shadow: 1px 1px 6px #000;
  
}

#gl-search {
background: #000000;
color: #fff;
top: 70px;
display: none;
height: auto;
overflow: hidden;
padding: 5px 15px;
position: absolute;
left: 650px;
text-align:left;
z-index: 999;
-moz-box-shadow: 1px 1px 6px #000;  
-webkit-box-shadow: 1px 1px 6px #000;  
 box-shadow: 1px 1px 6px #000;

}

#gl-login form a,
#gl-register form a {
background:transparent;
color:#fff ;

}

#gl-login label {
color: #fff;
padding-top:4px;

}

#gl-register label{
color: #fff;
padding-top:4px;

}

#gl-login .button  {
background:#672620;
color:#fff;
padding:5px;
margin:20px 0 5px 0;
cursor:pointer;

}

#gl-register .button {
background:#672620;
color:#fff;
padding:5px;
margin:10px 0 20px 0;
cursor:pointer;

}

#gl-login .inputbox,
#gl-register .inputbox {
background:#ffffff;
border: none;
color: #333333;
margin-top:2px;

}

#gl-login form {
float: left;
margin-top: 5px;

}

#gl-login form label {
float: left;

}

label.gl-login-user span,
label.gl-login-password span {
display: block;
float: left;

}

#gl-login form input.button {
font-size: 11px !important;
float: left;

}

#gl-login form #mod_login_username,
#gl-login form #mod_login_password {
background: #FFFFFF;
border: 0px solid #490001;
width: 120px;
margin: 3px 8px 0 0;
font-size: 12px !important;
padding: 2px;
font-weight:normal;

}

#gl-login form a {
padding: 5px 0 !important ;
margin: 0;
text-decoration: none;
background:transparent;
display:block;

}

#gl-login form a:hover,
#gl-login form a:active,
#gl-login form a:focus {
text-decoration: underline;

}

.gl-login-links {
padding: 2px 0 !important;
margin:0;
clear: both;
text-transform: none;
letter-spacing: normal;
font-size: 12px;
font-weight:normal;

}

.gl-login-links a {
font-weight:normal;

}

.libele {
display:none;

}

#header-center {
float:left;
width:100%;
height:103px;
background:transparent url(../images/header-center.jpg) 0 0 repeat-x;

}

#sitename {
float:left;
background:transparent;
margin-top:10px;
margin-left:20px;

}

/***topmenu******/

#topmenu{
float:left;
width:950px;
height:45px;
background:transparent;
margin:35px 10px 0px 10px;
text-align:center;

}

#navigation {
float:left;
height: 55px;
width:auto;
text-transform: uppercase;
text-align:center;
z-index: 50;

}

#navigation a {
float:left;
display: block;
height: 55px;
padding: 12px 7px 0 7px;
font-weight:bold;
color:#ffffff;
font-size:15px;

}

#navigation  a:hover{
color: #000000 !important;

}

#navigation ul {
list-style: none;
margin: 0;
padding-top: 0px ;
display: block;

}

#navigation li {
display: block;
float: left;
margin-right: 15px;
padding: 0 ;

}

#navigation li li a {
font-size: 13px;
padding:16px 0 0 0;
margin: 0;
color:#fff !important;

}

#navigation li li {
border-bottom: 1px solid #521e19;
margin:0;
padding:0 ;
height:45px;

}

#navigation li.active {
background: url(../images/menutop2.jpg) no-repeat 100% 0;
height:42px;

}

#navigation li.active span {
background: url(../images/menutop1.jpg) no-repeat 0 0;
height:42px;


}

#navigation li.active a {
color: #ffffff;
background: url(../images/menutop1.jpg) no-repeat 0 0;
height:42px;
color:#000;

}

.nav, .nav * {
margin:0;
padding:0;


}

.nav{
float:left;
position: relative;

}

.nav ul {
background:#672620 ;
 -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  z-index:100;
  
}

.nav li {
float:left;
list-style:none;
position:relative;
background:none;

}

.nav li li a {
text-decoration:none;
background: none;
float:none;
width:177px;

}

#navigation li:hover li,
#navigatin li.sfHover li,
#navigation li.active:hover li,
#navigation li.active.sfHover li,
#navigation li:hover li span,
#navigation li.sfHover li span {
background-image: none;

}

#navigation li:hover li a,
#navigation li.sfHover li a,
#navigation li.active:hover li a,
#navigation li.active.sfHover li a {
background-image: none;

}

.nav li ul {
float:none;
left:-999em;
position:absolute;
width: 177px;

}

.nav li:hover ul,
.nav li.sfHover ul {
left:0px;
top: 63px;
z-index:100;

}

.navli:hover li ul,
.nav li.sfHover li ul,
.nav li li:hover li ul,
.nav li li.sfHover li ul,
.nav li li li:hover li ul,
.nav li li li.sfHover li ul {
top:-999em;
z-index:100;

}

.nav li li:hover ul,
.nav li li.sfHover ul,
.nav li li li:hover ul,
.nav li li li.sfHover ul,
.nav li li li li:hover ul,
.nav li li li li.sfHover ul {
left: 177px;
top:0px;
width: 177px;

}

.nav li li {
position: relative;
float:none;
width: 177px;

}

/* slideshow gallery */
#slideshow {
float:left;
width:495px ;
height:240px !important;
background:#fff;
border:1px solid #eaeae9;
margin: 25px 0 0 0;
position:relative;
z-index:1;

}

.slideshowlite {
width: 485px;
height: 233px;
background:transparent;
padding:4px 0px 0px 0px;
z-index:2;

}

.slideshowlite a {
position:absolute;
left:0;
text-align:left;

}

.slideshowlite img {
border: none;
height: 226px;
width: 485px;
z-index:3;

}

/* pagination control*/
.slideshowlite ul,
.slideshowlite ol {
 position: absolute;
margin-top: 245px;
left:50px !important;
list-style-type:none;

}

@media screen and (-webkit-min-device-pixel-ratio:0) {
 .slideshowlite ul,
.slideshowlite ol  {
  position: absolute;
margin-top: 249px;
left:50px !important;
list-style-type:none;
  }
}

.slideshowlite ul li,
.slideshowlite ol li {
float: left;
width: 34px;
padding: 0 4px 0 0;
list-style-type:none;

}

.slideshowlite ul li a {
background:#ffffff;
border:1px solid #eaeae9;
position: relative;
display: block;
width: 36px;
height: 27px;
float: left;
line-height: 23px;
text-decoration: none;
text-align: center !important;
font-size: 12px;
font-weight: bold;
color: #000 !important;

}

@media screen and (-webkit-min-device-pixel-ratio:0) {
 .slideshowlite ul li a {
background:#fff;
border:1px solid #eaeae9;
position: relative;
display: block;
width: 36px;
height: 27px;
float: left;
line-height: 25px;
text-decoration: none;
text-align: center !important;
font-size: 12px;
font-weight: bold;
color: #000 !important;

  }
}

.slideshowlite ul li a.current {
background: url(../images/page.jpg) no-repeat 0% 0%;
color: #ffffff !important;

}

.slideshowlite ul li a:hover {
background:url(../images/page-act.jpg) no-repeat 0% 0%;
color: #ffffff;

}

.slideshowlite ol {
display: none;

}

/*****neuwflash(top)****/
#newsflash {
float:left;
width:425px;
height:260px;
margin:25px 0 0 30px;
background:transparent;

}

#newsflash .moduletable,
#newsflash .moduletable_menu{
text-align:left;
font-size:18px ;
  
}

#newsflash .moduletable h3,
#newsflash .moduletable_menu h3,
#newsflash  .contentheading {
text-align:left;
font-size:24px;
color:#000000;
padding-left:40px;
background: url(../images/bg-h3.png) 0 0 no-repeat;
 
}

/********pathway*****/

#pathway {
float:left;
width:930px;
height:45px;
margin:40px 0 0 0 ;
padding:0 0 0 25px ;
text-align:left;
background:#ffffff;
border:1px solid #eaeae9;

}

#pathway p {
font-weight:bold;
padding: 0 ;
margin:12px 0 0 0;

}


/******left******/
#left {
float:left;
width:222px;
background:transparent;
margin:20px 25px 0 0;
text-align:left;

}

#right {
float:left;
width:222px;
background:transparent;
margin:20px 0 0 25px;
text-align:left;


}

 div.module,
 div.module_menu ,
 div.module_text  {
width:200px;
background:#ffffff;
border:1px solid #eaeae9;
margin-bottom:30px;
padding-bottom:20px;
padding-left:20px;

}


 div.module h3,
 div.module_menu h3,
 div.module_text h3 {
font-size:20px;
width:200px;
font-weight:normal;
padding-bottom:5px;
padding-left:35px;
color:#000000;
text-align:left;
font-variant: small-caps;
background: url(../images/bg-h3-menu.png) 0 0 no-repeat;

}

/*****************************/
/********MAIN*****************/
/****************************/

#main {
float:left;
width:440px;
margin-top:0px;
text-align: left;
margin:20px 0 20px 0;
background:#ffffff;
border:1px solid #eaeae9;
padding:10px;

}

#main-mid {
float:left;
width:690px;
text-align: left;
margin:20px 0 20px 0;
background:#ffffff;
border:1px solid #eaeae9;
padding:10px;

}

#main-full {
float:left;
width:935px;
text-align: left ;
margin:20px 0 20px 0;
background:#ffffff;
border:1px solid #eaeae9;
padding:10px;

}

/****style main****/

.contentheading,a.contentpagetitle {
font-size:20px;
padding-top:0px;
margin-bottom:10px;
font-weight:bold;
color:#000000;

}

a.contentpagetitle:hover,
a.contentpagetitle:active {
color:#672620;

}

div .componentheading {
font-size:18px;

}

/******CALENDAR*******/
.calendar {
display:block ;
padding:5px 0px;
background:#672620 ;
width:70px ;
height:20px;
text-align:center;

}

.day {
color: #fff;
font-weight:bold;
margin: 0;
padding:0 ;
font-size:17px;
background:transparent;
font-weight: bold;
display:inline;

}

.month {
color: #fff;
font-weight: bold;
margin: 0;
padding:0 ;
font-size:17px;
background:transparent;
display:inline;

}

.contentinfo {
background:transparent;
font-weight:normal;


}

table.contentpaneopen, .contentpane {
background:transparent;

}

table.contentpaneopen img {
margin:3px 7px;

}

a.readon {
float:right;
background:#000;
font-weight: bold;
padding:5px;
margin-right:15px;
color:#fff;
margin-top:5px;
font-weight:normal;

}

.blog_more {
margin-bottom:25px;

}

.blog_more strong {
letter-spacing:1px;
font-size:14px;
text-transform:uppercase;
font-weight:bold;
padding-left:35px;
background: url(../images/lplc.png) 0 0 no-repeat;

}

.blog_more li {
margin:5px 25px;

}

.modifydate {
margin-top:10px;
text-decoration:underline;

}

.article_separator, .article_seperator{
height:35px;
width:100%;
display:block;

}

/*****POOL****/
table.poll td{
text-align:left;
font-size:12px;
margin:0 !important;
padding:0;

}

table.poll thead td {
font-size:15px;
padding-left:14px;
font-weight:bold;

}

table.poll div  {
text-align:left;
padding:3px !important;

}

table.poll .button{
font-size:12px;
margin:5px 0px 0 8px;
padding:6px;
font-weight:bold;

}

table.pollstableborder td.sectiontableentry1,
table.pollstableborder td.sectiontableentry2 {
background:transparent;
margin:0;
padding:3px ;
font-style:italic;

}

/*table*/
.sectiontableheader {
padding:5px;

}

td.contentdescription {
padding:5px;

}

tr.sectiontableentry1 td,
tr.sectiontableentry2 td {
padding:5px;

}

table.contenttoc {
margin: 5px;
border: 1px solid #eaeae9;
padding: 5px;
float: right;
color:#000;

}

table.contenttoc td {
padding: 0 5px;

}

/**publicité****/
div.bannergroup_text {
padding-bottom:10px;

}

div.bannerfooter {
padding:10px;

}

div.banneritem_text  {
padding-top:10px;
margin:0;

}

div.bannerheader {
padding-left:20px !important;
padding-right:20px !important;
font-size:14px;
font-weight:bold;

}

/******FOOTER******/
#footer {
float:left;
width:100%;
height:180px;
background:#fff;
border-top: 1px solid #eaeae9;

}

#users-box {
float:left;
width:980px;
height:180px;
background:transparent;

}

.box {
float:left;
width:245px;
height:180px;
text-align:left;

}

#users-box  .moduletable ,
#users-box  .moduletable_menu ,
#users-box  .moduletable_text {
background:transparent;
margin:0;
padding:5px 0 0 33px;

}

#users-box  .moduletable  h3,
#users-box .moduletable_menu h3 ,
#users-box .moduletable_text h3{
font-size:13px;
background: url(../images/bg-h3-menu.png) 0 0 no-repeat;
padding:4px 10px 4px 25px;
margin:12px 0 12px 0;
letter-spacing:1px;
text-transform:uppercase;

}

div .moduletable a,
div .moduletable_menu a ,
div .moduletable_text a {
font-weight:normal;
font-style:italic;

}

div .moduletable a:hover,
div .moduletable_menu a:hover ,
div .moduletable_text a:hover {
font-weight:normal;
font-style:italic;

}

#footer_tm {
float:left;
width:100%;
height:45px;
background:#672620;
border-top: 5px solid #eaeae9;

}


.ftb {
float:left;
margin-top:15px;
text-align:center;
font-weight:normal;
font-size:12px;
width:900px;
color:#ffffff;

}

.ftb a{
padding:0 !important;
border:none !important;
color:#ffffff;
font-weight:normal;

}

 .ftb a:hover{
padding:0 !important;
border:none !important;
color:#000000;
font-weight:normal;

}

#top {
float:left;
width:30px;
height:30px;
margin-top:8px;
padding:0 !important;
border:none !important;
background:transparent;

}

.top_button {
padding:0 !important;
border:none !important;

}

/**end file***/
Очень прошу помочь! Так как форум очень нужен, а шаблон менять нельзя. Если нужно выложить что-то еще - напишите что.

« Последнее редактирование: 22.01.2012, 09:39:24 от tkulneva »
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #1 : 21.01.2012, 12:17:17 »
Люди, ау! Неужели никто не в силах помочь девушке?
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #2 : 21.01.2012, 12:35:01 »
Если это делается не в CSS тогда вот есть index.php

Код
<?php
// SUCKERFISH   //
$menu_name = $this->params->get("menuName", "mainmenu");
/*
*Marhance TEMPLATE*
 * @copyright 2009 template design by globbers for globbersthemes Copyright (C).All rights reserved.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

?>

<!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" lang="<?php echo _LANGUAGE; ?>" xml:lang="<?php echo _LANGUAGE; ?>">

<head>
<?php
define( 'TEMPLATEPATH', dirname(__FILE__) );
include( TEMPLATEPATH.DS."suckerfish.php");
?>

<?php JHTML::_('behavior.mootools'); ?>

<jdoc:include type="head" />
<?php if($my->id) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/marhance/css/tdefaut.css" type="text/css" media="all" />
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/cufon-yui.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/cufon-replace.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/Seminaria_400.font.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/scroll.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/script.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/mouseover.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/jquery.js"></script>
<script type="text/javascript" src="templates/<?php echo $this->template ?>/js/slideshow.js"></script>
<link rel="icon" type="image/gif" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif" />

<!--[if IE 6]>
<link href="templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<style type="text/css">
img,h3,#newsflash .moduletable h3,#newsflash .moduletable_menu h3,#newsflash .contentheading,.blog_more strong { behavior: url(<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/scripts/iepngfix.htc); }
</style>
<![endif]-->

<!--[if IE 7]>
<link href="templates/<?php echo $this->template ?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<?php   //main width
$mod_left = $this->countModules( 'left' );
$mod_right = $this->countModules( 'right' );
if ( $mod_left && $mod_right ) {
 
$width = '';
} elseif ( ($mod_left || $mod_right) ) {
 
$width = '-mid';
} else {
  
$width = '-full';
}
?>

</head>
<body>
    <div id="header">
        <div class="pagewidth">
<div id="header-top">
   <div id="tool"><!--mod_login-form-->
       <jdoc:include type="modules" name="login" />
       <!--module search-->
        <?php if($this->countModules('user4')) : ?>
         <jdoc:include type="modules" name="user4" />
         <?php endif; ?>
   </div>
            </div>
        </div>
   <div id="header-center">
   <div class="pagewidth">
   <div id="sitename">
                        <a href="index.php"><img src="templates/<?php echo $this->template ?>/images/logo.png" width="397" height="73" alt="logotype" /></a>
</div>
</div>
</div>
   <div class="pagewidth">
<div id="topmenu">
   <div id="navigation">
                            <?php TopMenu($menu_name); ?>
                        </div>
</div>
</div>
</div>
   <div class="pagewidth">
                        <div id="slideshow">
   <img src="templates/<?php echo $this->template ?>/images/slide1.jpg" alt="image1" />
<img src="templates/<?php echo $this->template ?>/images/slide2.jpg" alt="image2" />
<img src="templates/<?php echo $this->template ?>/images/slide3.jpg" alt="image3" />
<img src="templates/<?php echo $this->template ?>/images/slide4.jpg" alt="image4" />
<img src="templates/<?php echo $this->template ?>/images/slide5.jpg" alt="image5" />
</div>

<script type="text/javascript" charset="utf-8">
   var $j = jQuery.noConflict();
       $j(document).ready(function(){
               $j("#slideshow").slideshow({
                               pauseSeconds: 5,
                               height: 230,
                               caption: false
                               });
                           });
        </script>
<div id="newsflash">
               <jdoc:include type="modules" name="top" style="xhtml" />
                            </div>
</div>
    <div class="pagewidth">
               <div id="pathway"><p>                <jdoc:include type="modules" name="breadcrumb" /></p>
               </div>
</div>
   <div class="pagewidth">
       <?php if($this->countModules('left')) : ?>
                       <div id="left">
                   <jdoc:include type="modules" name="left" style="rounded" />
                   </div>
               <?php endif; ?>

<div id="main<?php echo $width; ?>">
                   <jdoc:include type="component" />
               </div>

<?php if($this->countModules('right')) : ?>
                       <div id="right">
                   <jdoc:include type="modules" name="right" style="rounded" />
                   </div>
               <?php endif; ?>
</div>

<div id="footer">
   <div class="pagewidth">
           <div id="users-box">
                           <div class="box">
                       <jdoc:include type="modules" name="user1" style="xhtml" />
                       </div>
                       <div class="box">
                       <jdoc:include type="modules" name="user2" style="xhtml" />
                       </div>
                       <div class="box">
                       <jdoc:include type="modules" name="user3" style="xhtml" />
                       </div>
   <div class="box">
                       <jdoc:include type="modules" name="user5" style="xhtml" />
                       </div>
                       </div>
   </div>
</div>
   <div id="footer_tm">
   <div class="pagewidth">
                                            <div class="ftb">
                                                Copyright&copy; <?php echo date( '2010 - Y' ); ?> <?php echo $mainframe->getCfg('sitename');?> .&nbsp;
                                                <?php if ($this->params->get('show_footertext')) : ?>
                                                <?php echo $this->params->get("footertext"); ?>
                                                <?php endif; ?>
                                            </div>
                                                <div id="top">
                                                    <div class="top-button">
                                                        <a href="#" onclick="scrollToTop();return false;"><img src="templates/<?php echo $this->template ?>/images/top.png" width="30" height="30" alt="top" /></a>
                                                    </div>
                               </div>
</div>
                       </div>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-4636970-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<!-- Yandex.Metrika counter -->
<div style="display:none;"><script type="text/javascript">
(function(w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter6271645 = new Ya.Metrika({id:6271645,
                    clickmap:true,
                    trackLinks:true});
        }
        catch(e) { }
    });
})(window, 'yandex_metrika_callbacks');
</script></div>
<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
<noscript><div><img src="//mc.yandex.ru/watch/6271645" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter --></body>
</html>
Подскажите, очень прошу!
« Последнее редактирование: 22.01.2012, 09:38:11 от tkulneva »
*

ChaosHead

  • Гуру
  • 5242
  • 451 / 13
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #3 : 21.01.2012, 20:44:45 »
Всё это конечно круто, но лично я не могу у себя в голове прорисовать шаблон из CSS.
Юзайте Firefox с плагином FireBug, он интерактивно покажет все свойства всех элементов и позволит их редактировать, чтобы прикинуть что будет если их изменить.

Впринципе в шаблоне уже прописано, что если есть модуль или справа или слева, то одни свойства выводятся, а если нет ни слева ни справа, то другие. Т.е. как я понял нужно выводить модули и справа и слева, либо нигде.
Код
<?php   //main width
$mod_left = $this->countModules( 'left' );
$mod_right = $this->countModules( 'right' );
if ( $mod_left && $mod_right ) {
 
   $width = '';
} elseif ( ($mod_left || $mod_right) ) {
 
   $width = '-mid';
} else {
 
   $width = '-full';
}
?>

И в CSS эти свойства
Код
#main-mid {
float:left;
width:690px;
text-align: left;
margin:20px 0 20px 0;
background:#ffffff;
border:1px solid #eaeae9;
padding:10px;

}

#main-full {
float:left;
width:935px;
text-align: left ;
margin:20px 0 20px 0;
background:#ffffff;
border:1px solid #eaeae9;
padding:10px;

}

Возможно поможет заменить width:935px; на width:auto;

Но как я уже сказал, я так не могу просчитывать в голове.

Вот аналогичная тема http://joomlaforum.ru/index.php/topic,196623.0.html
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #4 : 21.01.2012, 22:23:13 »
Спасибо за ответ! А то я уже отчаялась...Я пробовала менять значения #main-mid на %, указывала и максимальную и минимальную ширину. Форум вставал хорошо, по ширине, а вот остальной контент сайта "слетал". То есть укладывался вниз под колонки.

Я попробую изменить значение #main-full на auto  - может чего и выйдет.

Тему аналогичную я читала до этого, мне это не помогло :(

Сайт www.ya-matushka.ru
шаблон marhance

*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #5 : 21.01.2012, 22:28:05 »
Изменила #main-full на auto  - не помогло :( эх...
*

NightGuard

  • Живу я здесь
  • 2927
  • 378 / 7
  • вжжж-вжжж
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #6 : 21.01.2012, 23:34:21 »
В левой колонке на этой странице точно никаких модулей нет?
Идеология сверхпотребления более опасна для человечества, чем идеология гитлеровского тоталитаризма
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #7 : 21.01.2012, 23:37:00 »
На странице с Форумом я все модули отключала, там точно ничего не было, но Форум по ширине не растягивался
*

NightGuard

  • Живу я здесь
  • 2927
  • 378 / 7
  • вжжж-вжжж
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #8 : 21.01.2012, 23:44:59 »
Код: html4strict
<div id="left">
                    <div class="module_none">
<div>
<div>
<div>

<script type="text/javascript">
var snowStorm = null;
snowStorm = new SnowStorm('http://www.ya-matushka.ru/modules/mod_snowfalling/image-snow/', '5', '5', '128', '64', '8', '4', '', '1', '1', '', '1', '', '3', '5','0', '1', '6');
</script> </div>
</div>
</div>
</div>

                    </div>
Не все. И спрячьте простыни, которые выше, под спойлеры.
Идеология сверхпотребления более опасна для человечества, чем идеология гитлеровского тоталитаризма
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #9 : 21.01.2012, 23:46:43 »
"Простыни под спойлеры" - это....как?
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #10 : 21.01.2012, 23:48:30 »
Ой....*краснею*....спрятала модуль со снегом и все нормально стало...
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #11 : 21.01.2012, 23:49:24 »
Спасибо огромное! Но вот про спойлеры я не очень поняла :(
*

NightGuard

  • Живу я здесь
  • 2927
  • 378 / 7
  • вжжж-вжжж
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #12 : 21.01.2012, 23:57:14 »
Вы выше выложили CSS и HTML шаблона, в след. раз прячьте эти "простыни" под спойлеры, кнопочка в редакторе на форуме со значком "+", между кнопками "Цитата" и "Список", чтобы не приходилось много листать, кому надо, тот и спойлер развернет.
Идеология сверхпотребления более опасна для человечества, чем идеология гитлеровского тоталитаризма
*

tkulneva

  • Захожу иногда
  • 181
  • 4 / 0
  • Танюшка
Re: Как сделать шаблон Marhance под Kunena?
« Ответ #13 : 22.01.2012, 00:01:52 »
А, да. Мне уже сегодня делали замечание по этому поводу. Но это было уже после того, как я выложила эту тему. Я больше так не буду!

Спасибо Вам больше всего за терпение  :)

Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как сделать?

Автор Twins

Ответов: 3
Просмотров: 1907
Последний ответ 01.07.2021, 13:11:51
от xpank
Как сделать кнопку формы аккаунта?

Автор Evgen Kulibin

Ответов: 0
Просмотров: 1076
Последний ответ 22.04.2021, 22:15:06
от Evgen Kulibin
Как сделать плавающий модуль?

Автор THeCMeX

Ответов: 2
Просмотров: 1233
Последний ответ 08.03.2021, 22:21:01
от Flexderection
[Решено] Как сделать чтобы фотография открылась в отдельном окне?

Автор a-two

Ответов: 11
Просмотров: 2189
Последний ответ 03.11.2020, 16:57:40
от Nikolay89
Как сделать плавающий блок/модуль. Пример есть!

Автор Good_user

Ответов: 8
Просмотров: 12522
Последний ответ 04.04.2020, 13:49:11
от jan_dax