Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2005
    Messaggi
    149

    Sul monitor 16:9 perfetto,su quello 4:3 errori!

    Ciao ragazzi...si tratta di un template del popolare CMS joomla...
    Il problema sta nel fatto che sul mio monitr 16:9 visualizzo il sito in maniera impeccabile ma se si va a visualizzarlo su un monitor un pò datato 4:3 i menu vengono spostati e succedono casini...

    qui di seguito in file index.php
    mentre in allegato trovate il css

    grazie


    Codice PHP:

    <?php
    /**
    * @version $Id: index.php 10041 2008-02-15 21:48:13Z eddieajau $
    * @package Joomla
    * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
    * @license [url]http://www.gnu.org/copyleft/gpl.html[/url] 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.
    */

    // Set flag that this is a parent file
    define'_VALID_MOS');

    // checks for configuration file, if none found loads installation page
    if (!file_exists'configuration.php' ) || filesize'configuration.php' ) < 10) {
        
    $self rtrimdirname$_SERVER['PHP_SELF'] ), '/\\' ) . '/';
        
    header("Location: [url]http://[/url]" $_SERVER['HTTP_HOST'] . $self "installation/index.php" );
        exit();
    }

    require( 
    'globals.php' );
    require( 
    'configuration.php' );

    // SSL check - $http_host returns <live site url>:<port number if it is 443>
    $http_host explode(':'$_SERVER['HTTP_HOST'] );
    if( (!empty( 
    $_SERVER['HTTPS'] ) && strtolower$_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr$mosConfig_live_site0) != 'https://' ) {
        
    $mosConfig_live_site 'https://'.substr$mosConfig_live_site);
    }

    require_once( 
    'includes/joomla.php' );

    //Installation sub folder check, removed for work with SVN
    if (file_exists'installation/index.php' ) && $_VERSION->SVN == 0) {
        
    define'_INSTALL_CHECK');
        include ( 
    $mosConfig_absolute_path .'/offline.php');
        exit();
    }

    // displays offline/maintanance page or bar
    if ($mosConfig_offline == 1) {
        require( 
    $mosConfig_absolute_path .'/offline.php' );
    }

    // load system bot group
    $_MAMBOTS->loadBotGroup'system' );

    // trigger the onStart events
    $_MAMBOTS->trigger'onStart' );

    if (
    file_exists$mosConfig_absolute_path .'/components/com_sef/sef.php' )) {
        require_once( 
    $mosConfig_absolute_path .'/components/com_sef/sef.php' );
    } else {
        require_once( 
    $mosConfig_absolute_path .'/includes/sef.php' );
    }
    require_once( 
    $mosConfig_absolute_path .'/includes/frontend.php' );

    // retrieve some expected url (or form) arguments
    $option strvalstrtolowermosGetParam$_REQUEST'option' ) ) );
    $Itemid intvalmosGetParam$_REQUEST'Itemid'null ) );

    if (
    $option == '') {
        if (
    $Itemid) {
            
    $query "SELECT id, link"
            
    "\n FROM #__menu"
            
    "\n WHERE menutype = 'mainmenu'"
            
    "\n AND id = " . (int) $Itemid
            
    "\n AND published = 1"
            
    ;
            
    $database->setQuery$query );
        } else {
            
    $query "SELECT id, link"
            
    "\n FROM #__menu"
            
    "\n WHERE menutype = 'mainmenu'"
            
    "\n AND published = 1"
            
    "\n ORDER BY parent, ordering"
            
    ;
            
    $database->setQuery$query0);
        }
        
    $menu = new mosMenu$database );
        if (
    $database->loadObject$menu )) {
            
    $Itemid $menu->id;
        }
        
    $link $menu->link;
        if ((
    $pos strpos$link'?' )) !== false) {
            
    $link substr$link$pos+). '&Itemid='.$Itemid;
        }
        
    parse_str$link$temp );
        
    /** this is a patch, need to rework when globals are handled better */
        
    foreach ($temp as $k=>$v) {
            
    $GLOBALS[$k] = $v;
            
    $_REQUEST[$k] = $v;
            if (
    $k == 'option') {
                
    $option $v;
            }
        }
    }
    if ( !
    $Itemid ) {
    // when no Itemid give a default value
        
    $Itemid 99999999;
    }

    // mainframe is an API workhorse, lots of 'core' interaction routines
    $mainframe = new mosMainFrame$database$option'.' );
    $mainframe->initSession();

    // trigger the onAfterStart events
    $_MAMBOTS->trigger'onAfterStart' );

    // checking if we can find the Itemid thru the content
    if ( $option == 'com_content' && $Itemid === ) {
        
    $id     intvalmosGetParam$_REQUEST'id') );
        
    $Itemid $mainframe->getItemid$id );
    }

    /** do we have a valid Itemid yet?? */
    if ( $Itemid === ) {
        
    /** Nope, just use the homepage then. */
        
    $query "SELECT id"
        
    "\n FROM #__menu"
        
    "\n WHERE menutype = 'mainmenu'"
        
    "\n AND published = 1"
        
    "\n ORDER BY parent, ordering"
        
    ;
        
    $database->setQuery$query0);
        
    $Itemid $database->loadResult();
    }

    // patch to lessen the impact on templates
    if ($option == 'search') {
        
    $option 'com_search';
    }

    // loads english language file by default
    if ($mosConfig_lang=='') {
        
    $mosConfig_lang 'english';
    }
    include_once( 
    $mosConfig_absolute_path .'/language/' $mosConfig_lang '.php' );

    // frontend login & logout controls
    $return     strvalmosGetParam$_REQUEST'return'NULL ) );
    $message     intvalmosGetParam$_POST'message') );

    // Get the information about the current user from the sessions table
    $my $mainframe->getUser();

    if (
    $option == 'login') {
        
    $mainframe->login();

        
    // JS Popup message
        
    if ( $message ) {
            
    ?>
            <script language="javascript" type="text/javascript">
            <!--//
            alert( "<?php echo addslashes_LOGIN_SUCCESS ); ?>" );
            //-->
            </script>
            <?php
        
    }

        if ( 
    $return && !( strpos$return'com_registration' ) || strpos$return'com_login' ) ) ) {
        
    // checks for the presence of a return url
        // and ensures that this url is not the registration or login pages
            // If a sessioncookie exists, redirect to the given page. Otherwise, take an extra round for a cookiecheck
            
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
                
    mosRedirect$return );
            } else {
                
    mosRedirect$mosConfig_live_site .'/index.php?option=cookiecheck&return=' urlencode$return ) );
            }
        } else {
            
    // If a sessioncookie exists, redirect to the start page. Otherwise, take an extra round for a cookiecheck
            
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
                
    mosRedirect$mosConfig_live_site .'/index.php' );
            } else {
                
    mosRedirect$mosConfig_live_site .'/index.php?option=cookiecheck&return=' urlencode$mosConfig_live_site .'/index.php' ) );
            }
        }

    } else if (
    $option == 'logout') {
        
    $mainframe->logout();

        
    // JS Popup message
        
    if ( $message ) {
            
    ?>
            <script language="javascript" type="text/javascript">
            <!--//
            alert( "<?php echo addslashes_LOGOUT_SUCCESS ); ?>" );
            //-->
            </script>
            <?php
        
    }

        if ( 
    $return && !( strpos$return'com_registration' ) || strpos$return'com_login' ) ) ) {
        
    // checks for the presence of a return url
        // and ensures that this url is not the registration or logout pages
            
    mosRedirect$return );
        } else {
            
    mosRedirect$mosConfig_live_site.'/index.php' );
        }
    } else if (
    $option == 'cookiecheck') {
        
    // No cookie was set upon login. If it is set now, redirect to the given page. Otherwise, show error message.
        
    if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) {
            
    mosRedirect$return );
        } else {
            
    mosErrorAlert_ALERT_ENABLED );
        }
    }

    // detect first visit
    $mainframe->detect();

    // set for overlib check
    $mainframe->set'loadOverlib'false );

    $gid intval$my->gid );

    // gets template for page
    $cur_template $mainframe->getTemplate();
    /** temp fix - this feature is currently disabled */

    /** @global A places to store information from processing of the component */
    $_MOS_OPTION = array();

    // precapture the output of the component
    require_once( $mosConfig_absolute_path '/editor/editor.php' );

    ob_start();

    if (
    $path $mainframe->getPath'front' )) {
        
    $task     strvalmosGetParam$_REQUEST'task''' ) );
        
    $ret     mosMenuCheck$Itemid$option$task$gid );

        if (
    $ret) {
            require_once( 
    $path );
        } else {
            
    mosNotAuth();
        }
    } else {
        
    header'HTTP/1.0 404 Not Found' );
        echo 
    _NOT_EXIST;
    }

    $_MOS_OPTION['buffer'] = ob_get_contents();

    ob_end_clean();

    initGzip();

    header'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
    header'Last-Modified: ' gmdate'D, d M Y H:i:s' ) . ' GMT' );
    header'Cache-Control: no-store, no-cache, must-revalidate' );
    header'Cache-Control: post-check=0, pre-check=0'false );
    header'Pragma: no-cache' );

    // display the offline alert if an admin is logged in
    if (defined'_ADMIN_OFFLINE' )) {
        include( 
    $mosConfig_absolute_path .'/offlinebar.php' );
    }

    // loads template file
    if ( !file_exists$mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' ) ) {
        echo 
    _TEMPLATE_WARN $cur_template;
    } else {
        require_once( 
    $mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' );
        echo 
    '';
    }

    // displays queries performed for page
    if ($mosConfig_debug) {
        echo 
    $database->_ticker ' queries executed';
        echo 
    '<pre>';
         foreach (
    $database->_log as $k=>$sql) {
             echo 
    $k+"\n" $sql '<hr />';
        }
        echo 
    '</pre>';
    }

    doGzip();
    ?>

  2. #2
    Non è che il template è fatto per andare bene con una risoluzione che abbia una larghezza maggiore di quella del tuo monitor 4:3?

  3. #3
    Frontend samurai L'avatar di fcaldera
    Registrato dal
    Feb 2003
    Messaggi
    12,924
    nei forum lato client (css, html, javascript) va sempre postato il codice che riceve il browser
    il codice php che hai postato non serve a capire nulla del problema

    quindi, carica la pagina che ha problemi, tasto destro > visualizza sorgente
    e posta quel codice.

    ovviamente dovrai anche postare il css, probabilmente è un layout fatto con posizionamenti assoluti
    Vuoi aiutare la riforestazione responsabile?

    Iscriviti a Ecologi e inizia a rimuovere la tua impronta ecologica (30 alberi extra usando il referral)

  4. #4
    Utente di HTML.it
    Registrato dal
    May 2005
    Messaggi
    149
    certo...hai ragione...scusami....

    allora il codice css è il seguente e genera u seguenti errori
    sui monitor 4:3 si sfasa completamente e sui pc con explorer precedenti al 7 stessa cosa...

    Codice PHP:
    #container {

          
    margin:0 auto;

          
    background:#ffffff url(../images/bg2.gif) repeat-y;

          
    width:830px;

          
    height:auto;

          
    height:100%;

          
    padding:10px 13px;

          
    font:11px arial,helvetica,sans-serif;

          
    color:#333;

          
    border-top3px solid #558C99;

          
    border-bottom3px solid #558C99;
          
    margin-left:285;
          
    padding-left:285;

    }

    #left {
       
    width:600px;
       
    padding-right:10px;
       
    margin-right:10px;
       
    float:left;
       
    border-right-width1px;
       
    border-right-styledotted;
       
    border-right-color#808080;
    }

    #header {

          
    padding-top:10px;

          
    width:600px;

          
    height:209px;

          
    background:#000 url(../images/nav.jpg) no-repeat;

          
    margin-bottom:10px;

    }

    #nav {

          
    padding-top:10px;

          
    width:300px;

          
    padding:5px 0 0 300px;

          

    }
    /* Gilt nicht für IE */

    html >#navBar {  

          
    padding:0 0 0 70px;

          list-
    style:none;

           } 

    /* Gilt nur für IE */

    html #navBar {  

          
    padding:0 0 0 50px;

          list-
    style:none;

    }

    #navBar li {

          
    margin-bottom:4px;

          list-
    style:none;

    }

    #navBar a {

          
    height:14px;

          
    color:#ffffff;

          
    background-color:#cba228;

          
    text-decoration:none;

          
    display:block;

          
    filter:alpha(opacity=80);

          
    opacity0.8;

          -
    moz-opacity:0.8;

          
    padding:0 4px;

    }

    #navBar a:hover {

          
    background-color:#558C99;

          
    display:block;

    }

    #right {

          
    width:209px;

          
    float:left;

    }

    {

          
    line-height:1.5em;

          
    margin:8px 0;

    }

    h1 {

          
    color:#558C99;

          
    font-size:22px;

          
    margin:0;

    }

    h2 {

          
    font-size:13px;

          
    color:#558C99;

          
    margin:5px 0;

    }

    h3 {

          
    color:#558C99;

          
    font-size:10px;

          
    margin:0;

          
    font-weight:normal;

    }

    .
    divider {

          
    margin:10px 0;

          
    border-bottom:1px solid #EAEAEA;

          
    padding:0;

          
    display:block;

    }

    #clear {

          
    clear:both;

          
    height:10px;

          
    margin-top:10px;

          
    padding-top:10px;

          
    background:#FFF url(../images/bg3.gif) no-repeat;

          
    text-align:center;

          
    color:#999;

    }

    #clear a {

          
    text-decoration:none;

          
    color:#999;

    }

    #clear a:hover {

          
    color:#FC3;



    }

    a:link {

       
    color#cba228; 

       
    text-decorationnone

    }   

    a:hover {

       
    color#558C99; 

       
    text-decorationnone

    }

    a.mainlevel:linka.mainlevel:visited {

       
    displayblock

       
    font-size1em

       
    padding-bottom2px

       
    width170px

       
    color#123456; 

       
    line-height16px

       
    padding-top2px

       
    border-bottom#4c514d 1px solid; 

       
    letter-spacing0px

       
    text-alignleft

       
    text-decorationnone

    }

    a.mainlevel:hover {

       
    color#ffffff; 

       
    background-color#4c514d

    }

    a.mainlevel_active-top:hover {

       
    color#123456; 

       
    background-color#fafafa

    }

    a.mainlevel-top#active_menu-top {

       
    border-right#ededed 1px solid; 

       
    padding-right8pxdisplayblock

       
    padding-left8px

       
    font-weightnormal

       
    font-size11px

       
    margin-bottom0px

       
    width80pxcolor#123456; 

       
    line-height59px

       
    height59px

       
    background-color#f8fcfd; 

       
    text-aligncenter

       
    text-decorationnone

    }

    a.mainlevel-top:linka.mainlevel-top:visited {

       
    border-right#ededed 1px solid; 

       
    padding-right8px

       
    displayinline

       
    padding-left8px

       
    font-weightnormal

       
    font-size11px

       
    floatleft

       
    margin-bottom0px

       
    width80px

       
    color#666666; 

       
    line-height59px

       
    height59px

       
    background-colortransparent

       
    text-aligncenter

       
    text-decorationnone

    }

    a.mainlevel-top:hover {

       
    color#123456; 

       
    background-color#f8fcfd;

    }

    a.readon:linka.readon:visited {

       
    clearright

       
    displayblock

       
    font-size11px

       
    floatnone

       
    color#cba228;

       
    text-decorationnone;

       
    font-weight:bold;

       

    }

    a.readon:hover, .comment:hover {

       
    color#898E79; 

       
    background-colortransparent

       
    text-decorationnone;

       
    font-weight:bold;

    }

    a.sublevel:linka.sublevel:visited  {

       
    background-positionleft 50%; 

       
    displayblock

       
    font-size11px

       
    background-imageurl(../images/pfeil.png); 

       
    padding-bottom2px

       
    width170px

       
    color#fb7000; 

       
    text-indent20px

       
    line-height16px

       
    padding-top2px

       
    border-bottom#4c514d 1px solid; 

       
    background-repeatno-repeat

       
    letter-spacing0px

       
    text-alignleft

       
    text-decorationnone

    }

    a.sublevel:hover {

       
    color#c0c0c0; 

       
    text-decorationnone

    }

    a.weblinks:linka.weblinks:visited {

       
    font-weightnormal

       
    color#ff9900; 

       
    text-decorationnone

    }

    a.weblinks:hover {

       
    color#999999; 

       
    text-decorationunderline

    }

    fieldset {

       
    border-right#fafafa 0px solid; 

       
    border-top#fafafa 0px solid; 

       
    border-left#fafafa 1px solid; 

       
    border-bottom#fafafa 1px solid

    }

    .
    button {

       
    font-size11px;

       
    border-right#4c514d 1px solid; 

       
    border-top#4c514d 1px solid; 

       
    border-left#4c514d 1px solid;

       
    border-bottom#4c514d 1px solid; 

       
    color#000000; 

       
    background-color#cccccc

    }

    .
    button:hover {

       
    color#ff8c00

    }

    .
    smartinhalt {

       
    padding-top20px;

       
    padding-bottom5px;

       
    position:relative;

       
    text-align:left;



    }

    .
    linkespalte {

       
    floatleft

       
    padding-top20px;

       
    padding-bottom20px;

       
    padding-left20px

       
    width200px;

       
    text-alignleft

    }   

    .
    mainbody {

       
    border-left#4c514d 1px solid; 

       
    border-right#4c514d 1px solid; 

       
    text-alignleft;

       
    font:10px arial,helvetica,sans-serif;

    }

    #mainbody li {

       
    list-style-positioninside

       
    line-height20px

       list-
    style-typesquare;

       
    font:10px arial,helvetica,sans-serif;

    }

    img {

       
    border-right0px

       
    border-top0px

       
    border-left0px

       
    border-bottom0px

    }

    input.inputboxinput.inputbox#mod_login_password {

       
    background-color#f1efe8;

       
    font-size11px

       
    color#666666; 

       
    border-right#999999 1px solid; 

       
    border-top#999999 1px solid; 

       
    border-left#999999 1px solid; 

       
    border-bottom#999999 1px solid

    }

    .
    componentheading {

       
    line-height:1em;

       
    color:#123456;

    /* Format des Titel der Komponente */

    .contentheading{

       
    font-size:15px;

       
    font-weight:bold;

       
    color:#558C99;

       
    padding-left:20px;

       
    background:url(../images/icon-1.pngleft no-repeat;

    /* Format des Titel des Inhalts*/

    .contentpane {

       
    font-weight:normal

       
    padding:5px

    }

    .
    contentpaneopen {

       
    border-bottom:1px dotted

       
    border-color:#A69D95;

       
    margin:5px 10px 5px 5px

    /* Tabelle die den aktuellen Text eines Artikels hat */

    .contentpagetitlea.contentpagetitle:hovera.contentpagetitle:linka.contentpagetitle:visited, .contentdescription  {

       
    padding:5px

       
    background#EDEDED

    /*Titel eines Artikel */

    table.contenttoctable.contenttoc tdtable.contenttoc thtable.contenttoc td.toclinka.toclink:linka.toclink:visiteda.toclink:hover {

       
    padding:5px

       
    background#EDEDED

    /* Format für die Tabelle einer Tabelle mit mehreren Inhalten oder Artikel */

    /* JOOMLA! SEKTION LISTE EINSTELLUNG*/

    .sectiontableheader, .sectiontableentry1, .sectiontableentry2 {

       
    padding:5px

    /* Format für die Liste der Sektione */

    .createdate, .modifydate {

       
    font-size1.4em

    /*Format für Datum und Autor */

    .small {

       
    font-size:10px;color:#123456



    .
    smalldark {

       
    font-size:10px;color:#B60000

    /* Format für Umfrageergebnisseite, für " Number of Voters" */

    /* Umfrage */

    .poll {

       
    font-weight:normal

       
    padding:5px

       
    background#EDEDED

    /* Format für td der Umfragetabelle */

    .pollstableborder {

       
    font-weight:normal

       
    padding:5px

       
    background#EDEDED

    /* Eigenschaften der Umfragetabelle */

    /* Weblinks */

    .weblinksa.weblinks:hover{

       
    font-weight:normal

       
    padding:5px

       
    background#EDEDED

    }

    /* Newsfeeds */

    .newsfeedheading, .newsfeeddate  {

       
    font-weight:normal

       
    padding:5px

       
    background#EDEDED

    /* Format des Newsfeed Titels */

    /* Suche */

    table.searchintro {

       
    text-align:left;

       
    font-size1.4em;

       
    line-height:1em;

       
    color:#123456;

       
    line-height1.5 

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.