News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Modifikasyonlardan kaynaklı xhtml hatalarının düzeltilmesi (SMF)

Started by bolubeyi61, September 17, 2016, 05:38:03 AM

Previous topic - Next topic

bolubeyi61


Bu başlık altında fırsat buldukça modifikasyonlardan kaynaklı xhtml hatalarını listeleyip nasıl düzeltileceğini anlatacağım.


Hata 1: <ul id="breadcrumb">


Hataya neden olan modifikasyon: Link ağacı edit


Hatanın görüldüğü yerler: Forum anasayfa hariç tüm sayfalar


Çözüm:
Index.template.php
Bul:
<ul id="breadcrumb">';


Değiştir:
<ul class="breadcrumb">';   


Index.css
Bul:
#breadcrumb {
    background: url(../images/bc_bg.gif) repeat-x;
    height:30px;
    line-height:30px;
    font-size: 12px;
    border:solid 1px #cacaca;
    width:100%;
    overflow:hidden;
    margin:0px;
    padding:0px;
}


#breadcrumb li {
    list-style-type:none;
    padding-left:10px;
    display:inline-block;
    float:left;
}


#breadcrumb a {
    display:inline-block;
    background: url(../images/bc_separator.gif) no-repeat;
    background-position: right;
    padding-right: 15px;
    text-decoration: none;
    outline:none;
}



Değiştir:
.breadcrumb {
    background: url(../images/bc_bg.gif) repeat-x;
    height:13px;
    line-height:13px;
    font-size: 12px;
    border:solid 1px #cacaca;
    width:100%;
    overflow:hidden;
    margin:0px;
    padding:0px;
}


.breadcrumb li {
    list-style-type:none;
    padding-left:10px;
    display:inline-block;
    float:left;
}


.breadcrumb a {
    display:inline-block;
    background: url(../images/bc_separator.gif) no-repeat;
    background-position: right;
    padding-right: 15px;
    text-decoration: none;
    outline:none;
}



Hata 2:  required attribute "alt" not specified
...hemes/default/images/abm_avatar.gif" /><a href="http:



Hataya neden modifikasyon: Avatars on Board and/or MessageIndex


Hatanın görüldüğü yerler: Konu listesi sayfaları


Çözüm:
abm_code.php


Bul:
$avatar = preg_replace($find[2], ' src="'.$settings['images_url']. '/abm_avatar.gif"', $avatar);


Değiştir:
$avatar = preg_replace($find[2], ' src="'.$settings['images_url']. '/abm_avatar.gif" alt="avatar"', $avatar);


Hata 3: end tag for "tbody" omitted, but OMITTAG NO was specified
            </table>

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



Hataya neden olan modifikasyon: Benzer Konular - Related Topics


Hatanın görüldüğü  sayfalar: Konu içi


Çözüm:
Display.template.php
Bul:
      echo '
                  </tr>
               </thead>
               <tbody>';   



Değiştir:
      echo '
                  </tr>
               </thead>';



Hata 4: ID "skm_prof" already defined
                   <div id="skm_prof">



Hataya neden olan modifikasyon: mybb profil alanı


Çözüm:
Display.template.php
Bul:                   
<div',!empty($modSettings['enable_prof']) ? ' id="skm_prof"' : '','>   


Değiştir:
<div',!empty($modSettings['enable_prof']) ? ' class="skm_prof"' : '','>   


Index.css
Bul:
#skm_prof  li.linkname
{
    background: url(../images/camp_bg.png) repeat-x bottom left #FFF;
    border-radius: 5px;
    box-shadow: 0 0 6px #B6B6B6;
    -webkit-box-shadow: 0 0 6px #B6B6B6;
   font-size: 16px;
   font-weight: bold;
    margin-top: 5px;
    padding: 10px;
}
#skm_prof li.prf_mybb
{
    text-align: left;
}
#skm_prof li.prf_mybb ul li, .poster ul li.prf_mybb ul li
{
    display: block;
   margin: 0 !important;
   text-align: center;
}
#skm_prof li.profile, #skm_prof li.im_icons, #skm_prof li.prf_mybb, #skm_prof li.add_this_style
{
    background: url(../images/camp_bg.png) repeat-x bottom left #FFF;
    border-radius: 5px;
    box-shadow: 0 0 4px #B6B6B6;
    -webkit-box-shadow: 0 0 4px #B6B6B6;
    margin: 7px 0 !important;
    padding: 5px !important;
}


#skm_prof
{
    background: url(../images/bluebg.png) repeat-x top left #F9F9F9;
   box-shadow: 2px 2px 5px #888;
   -webkit-box-shadow: 2px 2px 5px #888;
   border-radius: 10px;
   margin: 0 auto;
   margin-top: 5px;
    padding: 5px 0;
    text-align: center;
   width: 95%;
   text-shadow: 1px 1px 0 #FFF;
}



Değiştir:
.skm_prof  li.linkname
{
    background: url(../images/camp_bg.png) repeat-x bottom left #FFF;
    border-radius: 5px;
    box-shadow: 0 0 6px #B6B6B6;
    -webkit-box-shadow: 0 0 6px #B6B6B6;
   font-size: 16px;
   font-weight: bold;
    margin-top: 5px;
    padding: 10px;
}
.skm_prof li.prf_mybb
{
    text-align: left;
}
.skm_prof li.prf_mybb ul li, .poster ul li.prf_mybb ul li
{
    display: block;
   margin: 0 !important;
   text-align: center;
}
.skm_prof li.profile, #skm_prof li.im_icons, #skm_prof li.prf_mybb, #skm_prof li.add_this_style
{
    background: url(../images/camp_bg.png) repeat-x bottom left #FFF;
    border-radius: 5px;
    box-shadow: 0 0 4px #B6B6B6;
    -webkit-box-shadow: 0 0 4px #B6B6B6;
    margin: 7px 0 !important;
    padding: 5px !important;
}


.skm_prof
{
    background: url(../images/bluebg.png) repeat-x top left #F9F9F9;
   box-shadow: 2px 2px 5px #888;
   -webkit-box-shadow: 2px 2px 5px #888;
   border-radius: 10px;
   margin: 0 auto;
   margin-top: 5px;
    padding: 5px 0;
    text-align: center;
   width: 95%;
   text-shadow: 1px 1px 0 #FFF;
}     

Advertisement: