+ Antworten
Seite 2 von 2 ErsteErste 1 2
Ergebnis 11 bis 19 von 19

Thema: Modul 'left' und 'right' ausblenden wenn leer

  1. #11
    Wohnt hier Avatar von Kubik-Rubik
    Registriert seit
    20.10.2005
    Ort
    Kubik-Rubik.de
    Beiträge
    2.737
    Bedankte sich
    177
    Erhielt 1.059 Danksagungen
    in 793 Beiträgen

    Standard

    Kannst du mir mal kurz den Namen deines Templates sagen oder einen Link.

    Ich schaue es mir mal an!

    Oder schau dir mal das an -> http://www.joomlaportal.de/geloeste-...tml#post658416
    Joomla! Extensions by Kubik-Rubik.de
    Keine Beantwortung von Supportanfragen per PN

    Joomla! braucht Dich!

  2. #12
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Hallo Kubik-Rubik,

    erst mal danke für Deine geduld. Das Template habe ich mir selber gemacht und immer mal wieder was eingefügt und verändert. Den Link zu meiner Seite habe ich in meiner Signatur.

    Leider habe ich nicht wirklich Ahnung von PHP/CSS. Das "gelöst" habe ich schon gelesen und versucht für mich anzuwenden, aber leider wird das Template dann immer unbrauchbar

    Im Moment habe ich mein Template wieder in den Ausgangszustand zurück versetzt.

    VG
    Jörn

  3. #13
    OpenSource Nutzer Avatar von blackice2999
    Registriert seit
    18.05.2006
    Ort
    Berlin
    Alter
    32
    Beiträge
    3.639
    Bedankte sich
    112
    Erhielt 935 Danksagungen
    in 711 Beiträgen

    Standard

    Hallo Jörn,

    dann poste doch mal den Inhalt deiner Template -> index.php

    Gruß Dennis
    Thread gelöst ? => Anleitung
    Wichtige Themen => Joomla FAQ | Flottes Sicherheitsliste
    Einfach nur so => Geiz ist doch geil oder?
    *dies ist ein Joomla Forum - Kein css / html Anfänger Forum...*

  4. #14
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    o.K., hier noch mal die ganze index.php:

    PHP-Code:
    <?php

    defined
    '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

    ?>


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd">

    <?php echo "<?xml version=\"1.0\"?>"?>

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <title><?php echo $mosConfig_sitename?></title>

    <meta **********="Content-Type" content= "text/html; <?php echo _ISO?>" />

    <?php

    if ($my->id) {

    include (
    "editor/editor.php");

    initEditor();

    }

    ?>

    <?php mosShowHead(); ?>

    <link href="<?php echo $mosConfig_live_site?>/templates/sharpei24/css/template_css.css" rel="stylesheet" type="text/css" />

    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />

    </head>
    <body>

    <center>

    <div id="komplett">


    <div id="header">

    <div id="search"><?php mosLoadModules "user1", -2); ?> </div>

    <div id="user2"><?php mosLoadModules "user2", -2); ?> </div>

    </div>

    <div id="top_div">

    <div id="top"><?php mosLoadModules "top", -2); ?> </div>

    </div>

    <div id="center_table">

    <div id="left" style="clear:right;">

    <?php mosLoadModules 'left' ); ?>

    </div>

    <div id="right">

    <?php mosLoadModules "right" ); ?>

    </div>

    <div id="content">

    <?php mosPathWay(); ?><br/><br/>

    <?php mosMainBody(); ?><br/><br/>

    </div>

    </div>

    <div id="footer"><div id="footer_text">

    Copyright ©

    <a href=" <?php echo $mosConfig_live_site;?>" accesskey="1">

    <?php echo $mosConfig_sitename?>

    </a>

    </div>

    </div>

    </div>

    </center>

    </body>

    </html>
    MFG
    Jörn

  5. #15
    OpenSource Nutzer Avatar von blackice2999
    Registriert seit
    18.05.2006
    Ort
    Berlin
    Alter
    32
    Beiträge
    3.639
    Bedankte sich
    112
    Erhielt 935 Danksagungen
    in 711 Beiträgen

    Standard

    Hab mal einen kleinen Ausschnitt gepostet.

    Wenn der nicht funktioniert, kann ich Dir nur anbieten, das Du dein Template mal packst und mir mal per Mail zusendest (mail addy kommt per pm), dann schaue ich mir das hier an. Denke es hängt mit den geFloateten divs zusammen.

    PHP-Code:
    <div id="center_table">

    <?php if (mosCountModules'left' )) { ?>

        <div id="left" style="clear:right;">

            <?php mosLoadModules 'left' ); ?>
        
        </div>
    <?php ?>

    <div id="right">
    Thread gelöst ? => Anleitung
    Wichtige Themen => Joomla FAQ | Flottes Sicherheitsliste
    Einfach nur so => Geiz ist doch geil oder?
    *dies ist ein Joomla Forum - Kein css / html Anfänger Forum...*

  6. #16
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    mit dem Schnipsel ist die Modulposition und der Div Container weg, Content wird zwar nicht breiter, liegt aber sicher an meiner CSS.

    Die normale Ansicht wenn alle Modulpositionen belegt sind paßt aber nicht mehr. Danke für Dein Angebot, ich sende Dir gleich das Template.

    ______
    Jörn

  7. #17
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    am Wochenende habe ich auf dieser Seite eine gute Anleitung für die Umsetzung meiner Wünsche bekommen.

    Leider wirft die Lösung des einen Problems wieder ein neues Problem auf. In der template_css.css datei stehen unter anderem unter table.modultable.th die Formatierungen für den Modultitel. Auf Grund der oben genannten Lösung greifen diese Formatierungen aber nicht mehr. Wie kann ich also in css z.B dem Menütitel (also z.B. Hauptmenü) einen eigenen Hintergrund oder einen eigenen Style verpassen?

    MFG
    Jörn

  8. #18
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Da ich die Formatierung für "table.moduletable th" noch immer nicht hinbekommen habe, poste ich mal die ganze css Datei:

    PHP-Code:
    /* Template Sharpei24 - CSS Datei */

      
    body backgroundrgb(5151153none repeat scroll 0%;
        
    text-aligncenter;
        
    font-familyVerdana;
        
    font-size11px;
        }

      
    h1 font-size1.1em;
        
    colorrgb(25500);
        
    margin-bottom0px;
        }

      
    h2 font-size1em;
        
    colorrgb(25500);
        }

      
    h3 font-size1em;
        
    colorrgb(25500);
        }

      
    a:linka:visited text-decorationnone;
        
    font-weightbold;
        
    font-size1em;
        
    colorrgb(255,255,255);
        }

      
    a:activea:hover text-decorationnone;
        
    font-weightbold;
        
    font-size1em;
        
    colorrgb(25500);
        }
        
      
    #komplett { margin: 10px auto;
        
    width95%;
        
    text-alignleft;
        }

      
    #header { background: rgb(153, 153, 238) url(../images/sharpei_sachsen_head.gif) top left no-repeat;
        
    border2px solid rgb(195195195);
        
    margin-bottom1%;
        
    height100px;
        }

      
    #search { float: right;
        
    width100%;
        
    text-align:right;
        }
     
      
    #search table.moduletable { border: 2px solid rgb(145, 181, 206);
        
    padding-left2px;
        
    background-colorrgb(245245245);
        }
     
      
    #search .inputbox { border: 0px none ;
        
    colorrgb(000);
        
    background-colorrgb(245245245);
        }
     
      
    #search .button { border: 1px solid rgb(216, 229, 235);
        
    colorrgb(000);
        
    background-colorrgb(245245245);
        }
     
      
    #user2 { 
        
    width100%;
        
    text-alignright;
        
    margin-top22px
        }

      
    #top_div { background: rgb(153, 153, 238);
        
    border2px solid rgb(195195195);
        
    padding2px;
        
    margin-bottom1%;
        
    height40px;
        
    aligncenter;
        }

      
    #top {align: center;
        
    hight40px;
        
    padding0 170 17%;
        }

      
    #center_table { padding: 2px;
        
    margin-top1%;
        }


      
    #modright { /*THIS IS MODULE RIGHT*/
        
    backgroundrgb(153153238);
        
    border2px solid rgb(195195195);
        
    float:right;
        
    width:14%;
        
    overflow:hidden;
        
    margin-left:-3px;
        
    margin-bottom1%;
        }
      
    #modleft {  /*THIS IS MODULE LEFT*/
        
    backgroundrgb(153153238);
        
    border2px solid rgb(195195195);
        
    float:left;
        
    width:19%;
        
    overflow:hidden;
        
    margin-right:-3px;
        
    margin-bottom1%;
        }

      .
    inside {  /*THIS IS CLASS TO PUSH THE MODULE TABLE OF THE EDGES A BIT*/
        
    padding:3px;
        }

    /*COLAPSE MODULES FUNCTIONS */

    /*LEFT AND RIGHT MODULES VISIBLE */
    #main-body { /*THIS IS MAIN DIV HOLDS THE CONTENT DIV*/
    float:left;
    width:83%;
    }
    #content { /*THIS IS CONTENT DIV AND YOUR MAINBODY IS INSIDE OF IT*/
    text-align:left;
    float:right;
    width:80%;
    }
    /*COLAPSE  LEFT MODULE ONLY*/
    #main-body-right {
    float:left;
    width:80%;
    }
    #content-right {
    text-align:left;
    float:left;
    width:100%;
    }
    /*COLAPSE RIGHT MODULE ONLY*/
    #main-body-left {
    float:left;
    width:100%;
    padding-right:10px;
    }
    #content-left {
    text-align:left;
    float:right;
    width:80%;
    overflow:hidden;
    }
    /*COLAPSE RIGHT AND LEFT MODULE */
    #main-body-full {
    float:left;
    width:100%;
    }
    #content-full {
    margin:0 auto;
    text-align:left;
    width:90%;
    }
    /*END COLAPSE MODULES FUNCTIONS */


      #content h1 { font-weight: bold;
        
    font-familyVerdana;
        
    font-size1.1em;
        
    colorrgb(25500);
        }

      
    #footer{clear:both;
        
    background-color:rgb(153153238);
        
    border2px solid rgb(195195195);
        
    height:34px;
        
    width95%;
        
    margin-top:1%;
        
    vertical-align:bottom;
        }
           
      
    #footer_text { padding: 7px;
        
    text-aligncenter;
        
    font-size0.9em;
        }

      
    table.moduletable border2px solid pink;
        
    width100%;
        
    text-alignleft;
        
    font-familyVerdana;
        
    font-size0.9em;
        
    margin30px 0;
        
    padding10px 1px 10px 1px;
        
    background-colorthistle;
        }

      
    table.moduletable th text-aligncenter;
        
    line-height200%;
        
    font-familyVerdana;
        
    font-variant:small-caps;
        
    font-size1.1em;
        
    colorrgb(153153238);
        
    background-colorrgb(5151153);
        }

      
    table.moduletable td text-alignleft;
        
    font-size1em;
        
    font-familyVerdana;
        }


      
    td font-familyVerdana;
        
    font-size1em;
        }

      
    th font-familyVerdana;
        
    font-size1em;
        }

      
    font-familyVerdana;
        
    font-size1em;
        }*/

      .
    contentheading, .componentheading font-weightbold;
        
    font-familyVerdana;
        
    font-size1.1em;
        
    colorrgb(25500);
        }

      .
    small font-familyVerdana;
        
    font-size0.8em;
        
    colorrgb(136136136);
        }

      .
    createdate font-familyVerdana;
        
    font-size0.9em;
        
    colorrgb(136136136);
        }
      .
    contentpaneopen {
        
    backgroundrgb(153153238);
        
    border2px solid rgb(195195195);   
       
    /*border: pink solid 2px;*/
       /*background-color: thistle;*/
       
    margin3px;
        }
      
    /*Navigationsmenü*/

    #mainlevel-nav, #active_menu-nav {
     
    list-stylenone;
     
    font-size1em;
     
    margin0;
     
    padding0;
     
    displayblock;
     
    width98%;
     
    white-space:nowrap;
    }
    ul#mainlevel-nav {
    }
    ul#mainlevel-nav li {
     
    margin0 0 1px 2px;
     
    padding1px 0 0 0;
    }
    ul#mainlevel-nav a, #active_menu-nav a {
     
    displayblock;
     
    padding1px;
     
    colorwhite;
     
    background-colorrgb(5151153);
     
    text-decorationnone;
    }
    ul#mainlevel-nav a:hover {
     
    colorwhite;
     
    background-colorred;
     
    text-decorationnone;
    }
    a.mainlevel-nav#active_menu-nav {
     
    colorwhite;
     
    background-colorred;
     
    text-decorationnone;
    }
    ul#mainlevel-nav ul li { 
     
    list-style:none;
     
    margin-left: -35px;
    }
    ul#mainlevel-nav ul a {
     
    colorwhite;
     
    background-colorrgb(123,104,238);
     
    text-decorationnone;
    }
    ul#mainlevel-nav ul a:hover {
     
    colorwhite;
     
    background-colorred;
     
    text-decorationnone;
    }
    a.sublevel-nav#active_menu-nav {
     
    colorwhite;
     
    background-colorred;
     
    text-decorationnone;
    }


      .
    button border1px solid rgb(216229235);
        
    background-colorrgb(98139177);
        
    colorrgb(255255255);
        
    font-size1em;
        
    font-familyVerdana;
        }

      .
    inputbox border1px solid rgb(195195195);
        } 
    ich weiß, sieht etwas wüßt aus aber ich bin noch nicht zum aufräumen gekommen

    Hat jemand eine Idee?

    Danke
    Jörn

  9. #19
    Neu an Board
    Registriert seit
    07.04.2008
    Ort
    zu Hause
    Beiträge
    86
    Bedankte sich
    14
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Eine Anfrage bei den Erstellern der Anleitung hat ergeben, das die Formatierung nicht mit mit

    table.modultable th erfolgt, sondern mit

    .modultable h3 (wenn Modul output -2 ist)

    oder

    .module h3 (wenn Modul output -3 ist)

    LG
    Jörn

+ Antworten
Seite 2 von 2 ErsteErste 1 2

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein