Back to top

Autore Topic: Problemi con template A4 Joomla Free  (Letto 2017 volte)

Offline Vulpiani

  • Appassionato
  • ***
  • Post: 360
  • Sesso: Maschio
  • Il mio messaggio è troppo lungo!
    • Mostra profilo
Problemi con template A4 Joomla Free
« il: 23 Set 2010, 11:00:04 »
Salve, ho l'ennesimo problema con questo template :D

Ho aggiunto uno scroller verticale (grazie alle istruzioni già trovate qui), e l'aggiunta ha purtroppo portato ad un restringimento della barra inferiore e di quella superiore (per chi vuole, concedo un account per poter vedere) mentre in internet explorer, la barra inferiore va addirittura del tutto a destra, e non capisco perchè! Da cosa potrebbe dipendere?

Posto qui il codice

INDEX.PHP
Codice: [Seleziona]
<?php // no direct access 
defined'_JEXEC' ) or die( 'Restricted access' ); 
$showLeftColumn = (bool) $this->countModules('left');
$showRightColumn = (bool) $this->countModules('right');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit';
$margin 30;
$outermargin 44;
$logoText    $this->params->get("logoText");
$slogan    $this->params->get("slogan");
$pageWidth    980;
$pageWidth    $pageWidth $outermargin;
$rightColumnWidth    $this->params->get("rightColumnWidth""100");
$leftColumnWidth    $this->params->get("leftColumnWidth""100");
$logoWidth    $this->params->get("logoWidth""330");
$logoHeight    70;
if(
$this->countModules('user4')){
$searchWidth 240;
$sloganWidth $pageWidth $outermargin $logoWidth $searchWidth 3*$margin;
} else {
$searchWidth 0;
$sloganWidth $pageWidth $outermargin $logoWidth 2*$margin;
}
$headerHeight $logoHeight;
$headerrightWidth $pageWidth $outermargin $logoWidth $margin;
$searchHeight $logoHeight;
$sloganHeight $searchHeight;
if (
$showLeftColumn && $showRightColumn) {
   
$contentWidth $pageWidth $leftColumnWidth $rightColumnWidth 3*$margin;
} elseif (!
$showLeftColumn && $showRightColumn) {
   
$contentWidth $pageWidth $rightColumnWidth 2*$margin ;
} elseif (
$showLeftColumn && !$showRightColumn) {
   
$contentWidth $pageWidth $leftColumnWidth 2*$margin ;
} else {
   
$contentWidth $pageWidth $margin ;
}
?>

<!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?>" >

<head>
<?php
    $menu 
= &JSite::getMenu();
    
$view JRequest::getVar('view');
    
$homepage = ($menu->getActive() == $menu->getDefault() && $view == 'frontpage');
    
$user =& JFactory::getUser();
    
$head $this->getHeadData();
    if ((
$homepage || ($view == 'category')) && ($user->get('guest') == || $user->usertype == 'Registered')){
        foreach(
$head['scripts'] as $key => $value){
            if(
preg_match('/mootools/'$key)) unset($head['scripts'][$key]);
            if(
preg_match('/caption/'$key)) unset($head['scripts'][$key]);
        }
    }
    
$this->setHeadData($head);
?>


<jdoc:include type="head" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/grey.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<style type="text/css">
img, div, a, input { behavior: url(templates/<?php echo $this->template ?>/iepngfix.htc) }
</style>
<script src="templates/<?php echo $this->template ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie67.css" type="text/css" />
<![endif]-->


</head>
<body>
<div id="headerwrap" class="gainlayout">


        <div class="clr"></div>
      </div>
      <div class="clr"></div>
  </div>     
  <div class="clr"></div>
</div>
<div id="allwrap" class="gainlayout" style="width:<?php echo $pageWidth $outermargin?>px;">

<div id="topmenuwrap" class="gainlayout">
</div>
<div id="wrap" class="gainlayout">
  <?php if($this->countModules('breadcrumb')) : ?>
      <div id="pathway" class="gainlayout">
        <jdoc:include type="module" name="breadcrumbs" style="none" />
      </div>
  <?php endif; ?>

  <div id="cbody" class="gainlayout">
  <?php if($showLeftColumn) : ?>
  <div id="sidebar" style="width:100px;">     
      <jdoc:include type="modules" name="left" style="xhtml" />   
  </div>
  <?php endif; ?>
  <div id="content60" style="width:496px;"> 
    <?php if($this->countModules('user1')) : ?>
         <div id="topmenu" class="gainlayout">
           <jdoc:include type="modules" name="user1" style="xhtml" />
           <div class="clr"></div>
         </div>
         <div class="clr"></div>
  <?php endif; ?> 

      <?php if ($this->getBuffer('message')) : ?>
                <div class="error">
                    <h2>
                        <?php echo JText::_('Message'); ?>
                    </h2>
                    <jdoc:include type="message" />
                </div>
            <?php endif; ?>
      <div id="content"><div style="width:536px;height:288px;overflow-y: scroll; border:1px solid #A10F15; margin: 0 0 30">
      <jdoc:include type="component" /></div>

       
      </div>   
  </div>
  <?php if($showRightColumn) : ?>
  <div id="sidebar-2" style="width:100px;">     
      <jdoc:include type="modules" name="right" style="xhtml" />     
  </div>
  <?php endif; ?>
  <div class="clr"></div>
  </div>
<!--end of wrap-->
</div>
          <?php if($this->countModules('user2')) : ?>
         <div id="topmenu1" class="gainlayout">
           <jdoc:include type="modules" name="user2" style="xhtml" />
           <div class="clr"></div>
         </div>
         <div class="clr"></div>
  <?php endif; ?>
<div id="footer" class="gainlayout"> 
       <?php if($this->countModules('footer')) : ?>   
         <jdoc:include type="modules" name="footer" style="xhtml" />   
       <?php endif; ?>
    </div>
<!--end of allwrap-->
</div>
<div id="footerwrap" class="gainlayout" style="width:<?php echo $pageWidth $outermargin?>px;">
  <div id="a4j"><a href="http://#######.it/">Created by ## ######</a></div>
</div>

</body>
</html>

TEMPLATE.CSS
Codice: [Seleziona]
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
/*    background: transparent; */
}
/*
body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}
*/
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* remember to define focus styles! */
:focus {
    outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
    text-decoration: none;
}
del {
    text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}
html body span.clr,
html body div.clr,
html body li.clr,
html body dd.clr {background: none;border: 0;clear: both;display: block;float: none;font-size: 0;list-style: none;margin: 0;padding: 0;overflow: hidden;visibility: hidden;width: 0;height: 0;}
/*----------------------------------------------------- */
body {
    text-align:center;
    font-size:76%;
    font-family: Arial, Trebuchet MS, sans-serif;
    line-height:1.4;
    margin:0;
    padding:0;
}
#allwrap {
margin-bottom:0;
margin-left:auto;
margin-right:auto;
margin-top:20px !important;
padding-bottom:0;
padding-left:0;
padding-right:0;
padding-top:0;
}
#footerwrap {
    margin: 0 auto;
    padding: 0;
}
#topmenuwrap {
    margin: 2px 64px 0 64px;
    padding: 0px 0 0 0;
    position: relative;
    height:60px;
}
#topmenu {
font-family:Century Gothic,Verdana,Arial,sans-serif;
font-size:16px;
font-weight:normal;
height:32px;
margin-bottom:0;
margin-left:0px;
margin-right:0px;
margin-top:7px;
padding-bottom:0;
padding-left:0;
padding-right:0;
padding-top:0;
position:relative;
text-align:left;
text-transform:lowercase;
}
#headerwrap {
    margin:0;
    padding: 0;
}
#header {
    margin: 0 auto;
    padding: 0;
}
#logo {
  text-align: left;
  float: left;
  display: inline;
  height: 50px;
    width: 250px;
    margin: 0 15px;
    padding: 0px;
}
#headerright {
  float: right;
  display: inline;
  width: 670px;
  height: 50px;
  margin: 0;
  padding: 0;
}
#slogan {
  float: left;
  display: inline;
    width: 420px;
    height: 100px;
    margin: 0 15px 0 15px;
  padding: 0;
}
#search {
  float: right;
  display: inline;
    width: 200px;
    height: 100px;
    margin: 0 15px 0 15px;
    padding: 0;
}
#search input.button {
margin:  0 8px;
}
#search input.inputbox {
    padding: 0 0 0 5px;
    height: 20px;
    width: 160px;
    font-size: 15px;
    line-height: 20px;
}
#search div.search {
  background: none;
  padding: 0;
}
#wrap {
    text-align:left;
    margin-top:60px;
    padding: 0px 6px;
}
#cbody {
background-image:url('..images/stories/background.jpg');
margin: 0;
padding: 10px 0 0 0;
}
#content60 {
float:left;
display: inline;
width:560px;
padding: 0;
margin: 3px 0px 10px 0px;

}
#pathway {
text-align: left;
height: 10px;
margin: 0px 15px 0px 15px;
padding: 10px 0px 5px 0px;
font-size: 10px;
line-height: 1;
}
#content {
    padding-bottom:10px;
padding-left:0;
padding-right:0;
padding-top:10px;
    border-left: 0px solid #ddd;
  border-right: 0px solid #ddd;
}
#footer {
-x-system-font:none;
font-family:Arial,Helvetica,sans-serif;
font-size:0.9em;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
margin-top:-50px !important; <----
padding-bottom:10px;
padding-left:16px;
padding-right:16px;
padding-top:10px;
text-align:center;
}
#sidebar {
display:inline;
float:left;
margin-bottom:47;
margin-left:105px !important;
margin-right:15px;
margin-top:10px;
padding-bottom:0;
padding-left:0;
padding-right:0;
padding-top:0;
width:200px;
}
#sidebar-2 {
display:inline;
float:left;
margin-bottom:47;
margin-left:45px;
margin-right:0px;
margin-top:10px;
padding-bottom:0;
padding-left:0;
padding-right:0;
padding-top:0;
width:200px;
}
h1,h2,h3,h4,h5,h6,p,blockquote,dl,address {
margin:0.5em 0;
}
fieldset{
margin: 0.5em 0;
padding: 0.5em 10px;
}
form{
margin: 0;
}
ul, ol {
margin: 0 0 0 1em;
padding: 0 0 0 1em;
list-style-position: outside;
}
li,dd {
margin-left:0em;
padding-left:0;
}
a {
text-decoration:none;
}
a:hover {
text-decoration:underline;
}
.componentheading {
    font-size:1.5em;
    font-family: Times New Roman, serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-align: left;
}
h1 {
font-size:1.3em;
font-weight: bold;
font-family: Arial, sans-serif;
text-align: left;
}
#logo h1 {
  line-height: 1.3;
    font-size: 40px;
    font-family: Times New Roman, Arial Black, Arial, Verdana, sans-serif;
    font-weight: bold;
    letter-spacing: 0px;
    margin: 8px 0 0 0;
    padding: 0;
}
#slogan h2 {
    font-size: 16px;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    margin: 31px 0 0 0;
    padding: 0;
}
h2,.contentheading {
font-size:1.2em;
line-height: 1.3;
font-family: Arial, sans-serif;
letter-spacing: 0px;
font-weight: bold;
text-align: left;
}
h3 {
font-size:1.2em;
font-weight: normal;
font-family: Arial, sans-serif;
text-align: left;
}
h4 {
font-size:1.1em;
font-weight: bold;
font-family: Arial, sans-serif;
text-align: left;
}
h5 {
font-size:1.1em;
font-weight: normal;
font-family: Arial, sans-serif;
text-align: left;
}
h6 {
font-size:1em;
font-weight: normal;
font-family: Arial, sans-serif;
text-align: left;
}
#footer .moduletable {
padding: 0 0 5px 0;
margin-bottom: 0;
}
.mosimage_caption {
font:0.8em Arial,Helvetica,sans-serif;
}
input#modlgn_passwd, input#modlgn_username {
width: 130px;
}
#a4j {
    margin: 0 15px;
    text-align:center;
    font-size: 0.9em;
    padding: 5px 0;
}
/* ==== MODULES =======================================  */
.moduletable {
margin-bottom:15px;
border:0px #CCC solid;
padding: 0px 0px 0px 0px;
}
.moduletable h3 {
font-family: Times New Roman, Arial, Verdana, Helvetica, sans-serif;
text-align:left;
font-size:1.4em;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 2px;
margin:0 0 0.5em 0;
padding: 0.1em 0;
}
/* ==== TEXT MODULES =======================================  */
.moduletable_text {
margin-bottom:15px;
padding: 0px 0px 0px 0px;
border:0px #CCC solid;
}
.moduletable_text h3 {
font-family: Times New Roman, Arial, Verdana, Helvetica, sans-serif;
text-align:left;
font-size:1.4em;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 2px;
margin:0 0 0.5em 0;
padding: 0.1em 0;
}
/* ==== SIDEBAR MODULES =======================================  */
#sidebar .moduletable {
margin-bottom:15px;
padding: 0px 0px 0px 0px;
}
#sidebar .moduletable h3 {
font-family: Times New Roman, Arial, Verdana, Helvetica, sans-serif;
text-align:left;
font-size:1.4em;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 20px;
margin:0 0 0.5em 0;
padding: 0.1em 0;
}
/* ==== SIDEBAR2 MODULES =======================================  */
#sidebar-2 .moduletable {
margin-bottom:15px;
padding: 0px 0px 0px 0px;
}
#sidebar-2 .moduletable h3 {
font-family: Times New Roman, Arial, Verdana, Helvetica, sans-serif;
text-align:left;
font-size:1.4em;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 2px;
margin:0 0 0.5em 0;
padding: 0.1em 0;
}
/* ======= SEARCH =======================  */
#search .moduletable {
  margin: 27px 0 0 0;
  padding: 0;
  float: right;
}
#search .moduletable h3{
    text-align:center;
    font-size:1.1em;
    margin:0;
    padding:0.2em 0;
}
/* ========== TOPMENU =====================================*/
#topmenu .moduletable {
margin: 0;
padding: 0;
border: 0;
float: left;
}
#topmenu .moduletable ul {
list-style: none;
margin: 0;
padding: 0;
}
#topmenu .moduletable ul li{
margin: 0;
padding: 0;
position: relative;
float: left;
}
#topmenu .moduletable ul li a {
  display:block;
    padding: 0px 18px;
    margin: 0 0px;
    text-decoration: none;
    text-align: center;
    border: 0px none #000;
    font-size: 16px;
    font-weight: normal;
    line-height: 32px;
    height: 32px;
}

#topmenu .moduletable ul li a:hover {

}
#topmenu .moduletable ul li.active a {

}
/* ======= SIDE MENUS ================================  */
.moduletable_menu {
padding: 0px 0px 5px 0px;
margin-bottom:15px;
}
.moduletable_menu h3 {
font-family: Times New Roman, Arial, Verdana, Helvetica, sans-serif;
text-align:left;
font-size:1.4em;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 2px;
margin:0 0 5px 0;
padding: 0.1em 0;
}
.moduletable_menu ul {
list-style:none;
margin:0;
padding:0;
}
.moduletable_menu li {
border-bottom:0px solid #ccc;
padding: 3px 0 3px 1em;
margin:0;
}
.moduletable_menu li a {
    display:inline;
    text-decoration:none;
    padding: 0;
}
html>body .moduletable_menu li a {
width:auto;
}
.moduletable_menu li ul {
list-style-type: square;
list-style-position: inside;
}
.moduletable_menu li ul li {
    border-bottom:0px solid #ccc;
    border-top:0px solid #ccc;
    padding: 4px 0 2px 1em;
}
.moduletable_menu li ul li a {
    display:inline;
    text-decoration:none;
    padding: 0;
}
html>body .moduletable_menu li ul li a {
width:auto;
}
.moduletable_menu li a:hover {

}
.moduletable_menu li#current>a {

}
/* ========== content ======================*/
span.article_separator {
    display: block;
}
.article_column{padding-right:15px;}
.column_separator {padding-left:15px; padding-right: 0;}
td.buttonheading img {
    border:none;
}
.contentpaneopen ul {margin:10px 0px 10px 20px;}
.contentpaneopen p img{margin:0 10px;}

.contentpaneopen p {text-align: justify;}
.contentpaneopen li {
    margin-bottom: 5px;
}
/*
.contentpaneopen td {text-align: justify;}
.contentpaneopen td.contentheading{text-align: left;}
.contentpaneopen td h1{text-align: left;}
.contentpaneopen td h2{text-align: left;}
.contentpaneopen td h3{text-align: left;}
.contentpaneopen td h4{text-align: left;}
.contentpaneopen td h5{text-align: left;}
.contentpaneopen td h6{text-align: left;}
#component-contact td{text-align: left;}
*/
.contentdescription {
text-align: justify;
padding:5px 0;
}
.contentdescription img{
margin: 0 10px;
}
.contenttoc th{
padding-bottom:5px;
}
.contenttoc{
margin:10px 0;
padding:10px;
border:0px solid #999;
}
.blog_more{
padding-bottom:10px;
}
.small{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
line-height:1.2;
}
.createdate{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
line-height:1.2;
}
.modifydate{
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
line-height:1.3;
padding-top: 4px;
}
a img {border: 0;}
.banneritem_text{
padding:5px 0;
}
.bannergroup_text {
padding-top: 5px;
font-size: 1em;
}

td.sectiontableentry1, td.sectiontableentry2{padding: 2px 5px; text-align:left;}
tr.sectiontableentry1 { text-align: left;}
tr.sectiontableentry2 {text-align: left;}
td.sectiontableheader {text-align: left;}
form table tr td {text-align: left; padding-bottom: 5px;}
/** overlib **/

.ol-foreground {
    background-color: #f6f6f6;
}

.ol-background {
    background-color: #666;
}

.ol-textfont {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
}

.ol-captionfont {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #f6f6f6;
    font-weight: bold;
}
.ol-captionfont a {
    color: #0B55C4;
    text-decoration: none;
    font-size: 12px;
}

.ol-closefont {}

Spero che qualcuno di voi riesca ad aiutarm...mai avuto così tanti problemi con un template!!!!  :'( :'( :'(
Quando tutto salta
Bisogna fermarlo
con una morsa (mia)

 



Web Design Bolzano Kreatif