Błędy w walidatorach
Wyniki 1 do 5 z 5

Temat: Błędy w walidatorach

  1. #1
    Nowicjusz
    Dołączył
    27-05-2012
    Wpisy
    14
    Punkty
    2

    Domyślny Błędy w walidatorach

    Witam
    Posiadam stronę wizytówkową www.instalacje-serwis.pl
    W walidatorach http://validator.w3.org/ mam na stronie 6 błędów i jedno ostrzeżeni. Czy mugłby mnie ktoś pokierowac jak to usunać ?
    Stronę zbudowałem sam w oparciu o cms joomla.
    Wykonuje instalacje elektryczne oraz systemy alarmowe i monitoring. Zapraszam na www.instalacje-serwis.pl

  2. Pani Reklamowa
    Pani Reklamowa jest aktywna
    Avatar Panny Google

    Dołączył
    19-08-2010
    Skąd
    Internet
    Postów
    milion
    Pochwał
    setki
  3. #2
    Bywalec
    Dołączył
    27-02-2008
    Skąd
    Wrocław
    Wpisy
    493
    Punkty
    74

    Domyślny

    zaczn ij od tego:
    Kod PHP:
    …googleapis.com/css?family=Terminal+Dosis:600' rel='stylesheet' type='text/css'>

    zmień na:

    …googleapis.com/css?family=Terminal+Dosis:600' 
    rel='stylesheet' type='text/css' /> 
    identycznie obrazek

    Kod PHP:
    …stalacje-serwis/images/logo.png" border="0" class="logo" alt="montaż systemów">

    na:

    …stalacje-serwis/images/logo.png" 
    border="0" class="logo" alt="montaż systemów" /> 
    dwa razy jest zamkniety blok div a nie ma znacznika otwarcia
    Pozdrawiam

  4. #3
    Nowicjusz
    Dołączył
    27-05-2012
    Wpisy
    14
    Punkty
    2

    Domyślny

    Dzięki kolego za odpowiedz udało mi się odszukać dwa wpisy co mi podałeś i poprawić. Obecnie jest 4 błędy i ostrzeżeni. Czu mógłbyś mnie poinstruować dalej ?
    Ostanio edytowane przez Daro1003 : 16-10-2013 19:35
    Wykonuje instalacje elektryczne oraz systemy alarmowe i monitoring. Zapraszam na www.instalacje-serwis.pl

  5. #4
    Bywalec
    Dołączył
    27-02-2008
    Skąd
    Wrocław
    Wpisy
    493
    Punkty
    74

    Domyślny

    Usuń ten wpis jezeli jest w pliku index.php szablonu
    Kod PHP:
    <!--- This file contains the functions of the template. DO NOT MODIFY ITotherwise the template will break !---> 
    Jezeli go nie ma w pliku index.php to trzeba znaleźć co go generuje i tak jak pisałem wcześniej znajdź zbędne zamkniecia znacznika
    Kod PHP:
    </div
    Jeżeli to zrobisz nie bedzie błedów walidacji
    Pozdrawiam

  6. #5
    Nowicjusz
    Dołączył
    27-05-2012
    Wpisy
    14
    Punkty
    2

    Domyślny

    Udało mi się usunąć chyba zbędne zamknięcia. Obecnie mam 2 błędy i jedno ostrzeżenie. Poniżej przesyłam plik PHP ponieważ nie mogę zlokalizować wpisu


    Kod PHP:
    <?php /**  * @copyright  Copyright (C) 2011 JoomlaThemes.co - All Rights Reserved. **/
    defined'_JEXEC' ) or die( 'Restricted access' );
    define'YOURBASEPATH'dirname(__FILE__) );
    ?>
    <?php 
    // no direct access 
    defined'_JEXEC' ) or die( 'Restricted access' ); 
    $slogan  $this->params->get("slogan");
    $slogandisable  $this->params->get("slogandisable");
    $addthis  $this->params->get("addthis");
    $footertext  $this->params->get("footertext");
    $footerdisable  $this->params->get("footerdisable");
    $googleanalytics  $this->params->get("googleanalytics");
    $analyticsdisable  $this->params->get("analyticsdisable");
    $socialbuttons  $this->params->get("socialbuttons");
    $slidedisable  $this->params->get("slidedisable");
    $slidedesc1  $this->params->get("slidedesc1");
    $url1  $this->params->get("url1");
    $slidedesc2  $this->params->get("slidedesc2");
    $url2  $this->params->get("url2");
    $slidedesc3  $this->params->get("slidedesc3");
    $url3  $this->params->get("url3");
    $slidedesc4  $this->params->get("slidedesc4");
    $url4  $this->params->get("url4");
    JHTML::_('behavior.framework'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>
      <link href='http://fonts.googleapis.com/css?family=Terminal+Dosis:600' rel='stylesheet' type='text/css' />
    <jdoc:include type="head" />
    <?php require(YOURBASEPATH DS "functions.php"); ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />
    <?php if ($this->params->get'analyticsdisable' )) : ?>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '<?php echo ($googleanalytics); ?>']);
      _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>
    <?php endif; ?>
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/NivooSlider.css" type="text/css" />
    <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/NivooSlider.js"></script>
        <script type="text/javascript">
            window.addEvent('domready', function () {
                // initialize Nivoo-Slider
                new NivooSlider($('Slider'), {
            effect: 'random',
            interval: 5000,
            orientation: 'random'
          });
            }); 
        </script>
    </head>

    <body class="background">
    <div id="main">
    <div id="header-w">
          <div id="header">
                  <div id="navr">
          <div class="tguser"><jdoc:include type="modules" name="position-0" style="none" /></div>
        <div id="navl">
        <div id="nav">
            <div id="nav-left">
    <jdoc:include type="modules" name="menuload" style="none" /></div>
      <div id="nav-right">
      </div></div></div></div>
        <div class="topmenu">
    <!-- MODIFY social buttons here (add yours from addthis.com) -->
    <?php if ($this->params->get'socialbuttons' )) : ?>   
    <div id="bookmark"><div id="addthis">
    <div class="addthis_toolbox addthis_default_style addthis_16x16_style">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    <a class="addthis_button_preferred_3"></a>
    <a class="addthis_button_preferred_4"></a>
    <a class="addthis_button_compact"></a>
    </div>
    <script type="text/javascript" src="<?php echo ($addthis); ?>"></script>
    </div></div>
    <?php endif; ?>
    <!-- END of social script -->
        </div>
              <?php if ($this->countModules('logo')) : ?>
                    <div class="logo">
                      <jdoc:include type="modules" name="logo" style="none" />
                    </div>
                <?php else : ?>        
                  <a href="<?php echo $this->baseurl ?>/">
                    <img src="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/images/logo.png" border="0" class="logo" alt="montaż systemów" />
          </a>
                <?php endif; ?>
        <div class="slogan"><?php if ($this->params->get'slogandisable' )) : ?><?php echo ($slogan); ?><?php endif; ?></div>
                <?php if ($this->countModules('top')) : ?> 
                    <div class="top">
                        <jdoc:include type="modules" name="top" style="none"/>
                    </div>
                <?php endif; ?>                         
      </div>        
    </div>
    <div id="wrapper">

      <div id="main-content">
      <?php include "html/com_content/archive/component.php"?>
      <?php if ($this->countModules('breadcrumb')) : ?>
              <jdoc:include type="modules" name="breadcrumb"  style="none"/>
            <?php endif; ?>
      <div class="clearpad"></div>
      <div id="message">
          <jdoc:include type="message" />
      </div>    
                <?php if($this->countModules('left')) : ?>
    <div id="leftbar-w">
        <div id="sidebar">
            <jdoc:include type="modules" name="left" style="jaw" /></div>
    </div>
        <?php endif; ?>
        <?php if($this->countModules('left') xor $this->countModules('right')) $maincol_sufix '_md';
        elseif(!
    $this->countModules('left') and !$this->countModules('right'))$maincol_sufix '_bg';
        else 
    $maincol_sufix ''?>  
    <div id="centercontent<?php echo $maincol_sufix?>">
    <!-- Slideshow -->
    <?php $menu JSite::getMenu(); ?>
    <?php $lang 
    JFactory::getLanguage(); ?>
    <?php 
    if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?>
    <?php 
    if ($this->params->get'slidedisable' )) : ?>   
        <div id="Slider" class="nivoo-slider">
        <a href="<?php if ($this->params->get'url1' )) : ?><?php echo ($url1); ?><?php endif; ?>">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/1.jpg" title="<?php if ($this->params->get'slidedesc1' )) : ?><?php echo ($slidedesc1); ?><?php endif; ?>" height="250" width="500" /></a>
        <a href="<?php if ($this->params->get'url2' )) : ?><?php echo ($url2); ?><?php endif; ?>">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/2.jpg" title="<?php if ($this->params->get'slidedesc2' )) : ?><?php echo ($slidedesc2); ?><?php endif; ?>" height="250" width="500" /></a>
        <a href="<?php if ($this->params->get'url3' )) : ?><?php echo ($url3); ?><?php endif; ?>">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/3.jpg" title="<?php if ($this->params->get'slidedesc3' )) : ?><?php echo ($slidedesc3); ?><?php endif; ?>" height="250" width="500" /></a>
        <a href="<?php if ($this->params->get'url4' )) : ?><?php echo ($url4); ?><?php endif; ?>">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/4.jpg" title="<?php if ($this->params->get'slidedesc4' )) : ?><?php echo ($slidedesc4); ?><?php endif; ?>" height="250" width="500" /></a>
        </div>
    <?php endif; ?>
    <?php 
    ?>    
    <!-- END Slideshow -->
    <div class="clearpad"><jdoc:include type="component" /> </div> 
        <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
    <div id="rightbar-w">
        <div id="sidebar">
             <jdoc:include type="modules" name="right" style="jaw" />
        </div>
        </div>
        <?php endif; ?>
    <div class="clr"></div>
            </div>       
            </div>     
      </div>
    </div>
    <div id="user-bottom">
    <div class="user1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
    <div class="user2"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
    <div class="user3"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
    </div>
    <?php if ($this->countModules('user7 or user8 or user9 or user10')) : ?>
    <div id="footer">
    <div class="footer-pad">
          <div class="top1"><div class="top2"><div class="top3"></div></div></div>
            <div class="bot1"><div class="bot2"><div class="bot3"></div></div></div> 
      
      </div>
    </div>  
    <?php endif; ?>
    <div id="bottom">
      <div class="tg">
                <jdoc:include type="modules" name="copyright"/><?php if ($this->params->get'footerdisable' )) : ?><?php echo ($footertext); ?><?php endif; ?></div>

    </div>
    </body>
    </html>
    Ostanio edytowane przez Daro1003 : 16-10-2013 21:45
    Wykonuje instalacje elektryczne oraz systemy alarmowe i monitoring. Zapraszam na www.instalacje-serwis.pl

Podobne tematy

  1. 2 Błędy
    przez michaldaro na forum Administracja - ogólnie
    Odpowiedzi: 0
    Ostatni post/autor: 28-05-2012, 21:04
  2. Błagam o konkretną pomoc!Ciągle są błędy przy wyświetlaniu strony!
    przez marekbroclawik na forum Problemy z przeglądarką Internet Explorer
    Odpowiedzi: 16
    Ostatni post/autor: 02-02-2009, 23:05
  3. Błędy
    przez ppx na forum Administracja Joomla!
    Odpowiedzi: 5
    Ostatni post/autor: 14-01-2008, 02:41
  4. Odpowiedzi: 0
    Ostatni post/autor: 15-11-2007, 16:49
  5. Błędy i ich oznaczenia Kod błędu
    przez jerry_pogromca na forum Różne
    Odpowiedzi: 0
    Ostatni post/autor: 12-07-2007, 01:43

Reguły pisania

  • Nie możesz zakładać nowych tematów
  • Nie możesz dodawać wypowiedzi
  • Nie możesz dodawać załączników
  • Nie możesz poprawiać swoich postów
  •