Pasul 1: Panoul de Control - Unelte - Informatori - creați un informator cu următoarele date:
[ Denumire informator: Ultimile Comentarii · Secţiune: Comentarii · Modul: Toate modulele · Intrări: 4 · Coloane: 1 ]
în șablonul informatorului adăugați aceste coduri:
Code
<div class="uzer_coment_v">
<div class="uzer_name">
<?if($USERNAME$)?> <a href="$PROFILE_URL$" target="_blank">$USERNAME$</a><?else?>$NAME$<?endif?>
</div>
<div class="uzer_data">$DATE$</div>
</div>
<div class="uzer_massage">
<a href="$ENTRY_URL$" target="_blank">
<?if($USER_AVATAR_URL$)?>
<img class="coment_avatar" src="$USER_AVATAR_URL$" /><?else?><img class="coment_avatar" src="http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Fara_avatar.jpg" alt="no" /><?endif?>
$MESSAGE$
</a>
</div>
Pasul 2: Panoul de Control - Design - Administrarea design-ului (CSS) - pentru aspect deschis adăugați aceste stiluri:
Code
/* Ultimile comentarii */
.uzer_coment {
overflow: hidden;
width:230px;
background: #fff;
border:1px solid #D6D6D6;
border-bottom:none;
}
.uzer_coment_v {
float:left;
width:230px;
height:27px;
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_deschis_2.png') repeat-x top;
border-top: 1px solid #fff;
}
.uzer_coment_v a:link,
.uzer_coment_v a:visited {color:#888;}
.uzer_coment_v a:hover {color:#333;}
.uzer_coment_v a:link,
.uzer_coment_v a:visited,
.uzer_coment_v a:hover {
text-decoration:none;
font:11px Verdana,Arial,Helvetica, sans-serif;
font-weight: bold;
text-shadow: 1px 1px 1px #fff;
}
.uzer_name {
float:left;
padding: 6px 0px 0px 10px;
}
.uzer_data {
float:right;
font:11px Verdana,Arial,Helvetica, sans-serif;
font-weight: bold;
color:#888;
text-shadow: 1px 1px 1px #fff;
padding: 6px 10px 0px 0px;
}
.uzer_massage {
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_deschis.png') repeat-x top;
width:230px;
float:left;
overflow: hidden;
padding: 10px 5px 10px 5px;
border-bottom: 1px solid #D6D6D6;
}
.uzer_massage :link,
.uzer_massage :visited {
display: block;
text-decoration: none;
color:#555;
}
.uzer_massage:hover {
color:#555;
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_deschis.png') repeat-x top #F3F3F3;
}
.coment_avatar {
width:45px;
height:45px;
float:right;
background: #F3F3F3;
padding: 3px;
margin-left: 3px;
border:1px solid #D6D6D6;
}
/* ------------------------ */
pentru aspect întunecat:
Code
/* Ultimile comentarii */
.uzer_coment {
overflow: hidden;
width:230px;
background: #fff;
border:1px solid #D6D6D6;
border-bottom:none;
}
.uzer_coment_v {
float:left;
width:230px;
height:27px;
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_inchis_2.png') repeat-x top;
border-top: 1px solid #fff;
}
.uzer_coment_v a:link,
.uzer_coment_v a:visited {color:#888;}
.uzer_coment_v a:hover {color:#333;}
.uzer_coment_v a:link,
.uzer_coment_v a:visited,
.uzer_coment_v a:hover {
text-decoration:none;
font:11px Verdana,Arial,Helvetica, sans-serif;
font-weight: bold;
text-shadow: 1px 1px 1px #fff;
}
.uzer_name {
float:left;
padding: 6px 0px 0px 10px;
}
.uzer_data {
float:right;
font:11px Verdana,Arial,Helvetica, sans-serif;
font-weight: bold;
color:#888;
text-shadow: 1px 1px 1px #fff;
padding: 6px 10px 0px 0px;
}
.uzer_massage {
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_inchis.png') repeat-x top;
width:230px;
float:left;
overflow: hidden;
padding: 10px 5px 10px 5px;
border-bottom: 1px solid #D6D6D6;
}
.uzer_massage :link,
.uzer_massage :visited {
display: block;
text-decoration: none;
color:#555;
}
.uzer_massage:hover {
color:#555;
background: url('http://fierbinte.ucoz.ro/Forum/Diverse/Casute_Block/Comentarii_inchis.png') repeat-x top #F3F3F3;
}
.coment_avatar {
width:45px;
height:45px;
float:right;
background: #F3F3F3;
padding: 3px;
margin-left: 3px;
border:1px solid #D6D6D6;
}
/* ------------------------ */
* Pentru a edita mărimea căsuței, modificați aceste stiluri: width:230px;
Rezultatul: