Comments >> Appearance of comments
Liekam kur vēlamies lai ir poga Online Offline (lai man kā labajā malā ieliekam starp <div align="right">kods</div>)
Code
<?if($IS_OWN$)?>
<div class="statusOnline">ONLINE</div><?else?>
<div id="idad-<?substr($PROFILE_URL$,strpos($PROFILE_URL$,'index')+8,strpos(substr($PROFILE_URL$,strpos($PROFILE_URL$,'index')+8),'" ta'))?>" class="statusOffline">OFFLINE</div>
<div style="display:none; text-align:center; color:green;" class="stati"><?if(strpos($PROFILE_URL$,'target')>0)?><?substr($PROFILE_URL$,0,-16)?><?else?>$PROFILE_URL$<?endif?></div><?endif?>
File Catalog vai jebkurā modulī >> Page with full entry text and associated comments pašās beigās
Code
<script type="text/javascript">
$.get('/index/62', function(d){ // uSite.su
var dll = $('cmd[p="content"]',d).text();
$('a',dll).each(function(){
var tik = $(this).attr('href');
var idik = tik.replace("http://SAITA_ADRESSE/index/8", "idad");
$('.stati').each(function(){
if($(this).text() == tik){ $(this).html('<style>#'+idik+' {display:none;}</style><div class="statusOnline">ONLINE</div>').show(); }
});
});
});
</script>
CSS
Code
.statusOnline {
width:80px;
background:#7BA60D;
border-radius:3px;
font-size:10px;
text-transform:uppercase;
color:#FFF;
border-top:1px solid #97CD6B;
border-bottom:1px solid #488019;
background-image:url(/img/highlight.png);
text-shadow:rgba(0,0,0,0.2) 0 -1px 0;
margin:3px 3px 0;
padding:0 5px;
}
.statusOffline {
border:1px solid #B1B0B0;
background-image:url(/img/highlight.png)!important;
text-transform:uppercase;
width:80px;
text-shadow:rgba(0,0,0,0.2) 0 -1px 0;
background:#B4B4B4;
border-radius:3px;
font-size:10px;
color:#FFF;
margin:3px 3px 0;
padding:0 5px;
}
CSS width:80px; gan online gan offline mainam pogas lielumu uz kādu jums vajag
Pielikumā /img/highlight.png bildīte
Pamaniju ,ka ir ļoti līdzīgs ,bet laikam man pilnīgāks matereāls