Ce peste tot unde e maxrom.ucoz.com înlocuiţi cu site-ul dvs.
Creem un folder cu calea exactă /Forumro/imgdesc/ în care încărcăm imaginile
http://s3.ucoz.net/img/fr/ic1/thread.gif
http://maxrom.ucoz.com/Forumro/imgdesc/arrow.png
http://maxrom.ucoz.com/Forumro/imgdesc/engine.png
http://maxrom.ucoz.com/Forumro/imgdesc/hammer.png
http://maxrom.ucoz.com/Forumro/imgdesc/help.png
http://maxrom.ucoz.com/Forumro/imgdesc/idea.png
http://maxrom.ucoz.com/Forumro/imgdesc/info.png
http://maxrom.ucoz.com/Forumro/imgdesc/lightning.png
http://maxrom.ucoz.com/Forumro/imgdesc/question.png
http://maxrom.ucoz.com/Forumro/imgdesc/smile.png
http://maxrom.ucoz.com/Forumro/imgdesc/star.png
http://maxrom.ucoz.com/Forumro/imgdesc/warn.png
În CSS adăugăm:
Cod
.thDescr,
.threadDescr {display:none}
#frM30 img {opacity:.33; -moz-opacity: 0.33; filter: alpha(opacity=33);}
#frM30 img:hover {opacity:.5; -moz-opacity: 0.5; filter: alpha(opacity=50);}
#frM30 img.selectedImg {opacity:1; ; -moz-opacity: 1; filter: alpha(opacity=100);}
În General appearance of forum pages după $BODY$ adăugăm:
Cod
<script type="text/javascript">$('.thDescr').each(function(){
var s = $(this).html().match( /sml\[(\w+)\]/ );
$(this).show();
if (s==null) return;
var name = s[1];
s = s[0];
$(this).html( $(this).html().replace(s,'') );
if( $(this).html()=='()' ) $(this).html('');
if( $('table.gTable:first td.gTableTop div.gTopCornerRight + img').size()==0 ) $('table.gTable:first td.gTableTop div.gTopCornerRight').after('<img src="http://maxrom.ucoz.com/Forumro/imgdesc/'+name+'.png" /> ');
})
$('.threadDescr').each(function(){
var s = $(this).html().match( /sml\[(\w+)\]/ );
$(this).show();
if (s==null) return;
var name = s[1];
s = s[0];
$(this).html( $(this).html().replace(s,'') );
$(this).parent().prev().find('img').attr('src','http://maxrom.ucoz.com/Forumro/imgdesc/'+name+'.png');
});
</script>
În New message form căutăm $_THREAD_DESCR$ şi schimbăm cu:
Cod
<input type="text" id="threadAbout" value="" class="postDescrFl" size="60" maxlength="50" />
<img src="http://s3.ucoz.net/img/fr/ic1/thread.gif" alt="" class="selectedImg" />
<img src="/Forumro/imgdesc/arrow.png" alt="arrow" />
<img src="/Forumro/imgdesc/engine.png" alt="Engine" />
<img src="/Forumro/imgdesc/hammer.png" alt="Hammer" />
<img src="/Forumro/imgdesc/help.png" alt="Help" />
<img src="/Forumro/imgdesc/idea.png" alt="Idea" />
<img src="/Forumro/imgdesc/info.png" alt="Info" />
<img src="/Forumro/imgdesc/lightning.png" alt="Lightning" />
<img src="/Forumro/imgdesc/question.png" alt="question" />
<img src="/Forumro/imgdesc/smile.png" alt="Smile" />
<img src="/Forumro/imgdesc/star.png" alt="Star" />
<img src="/Forumro/imgdesc/warn.png" alt="Warn" />
<div style="display:none">$_THREAD_DESCR$</div>
Tot în New message form la sfîrşit adăugăm:
Cod
<?if($_THREAD_NAME$)?>
<script type="text/javascript">
$('#frF3').css('width','auto').attr('size', 60);
$('#frM30 img').click(function(){
$('#frM30 .selectedImg').removeClass('selectedImg');
$(this).addClass('selectedImg')
});
if( $('#frF4').val()!='' ){
if( $('#frF4').val().match( /sml\[\w+\]/ ) ){
$('#threadAbout').val( $('#frF4').val().replace( $('#frF4').val().match( /sml\[(\w+)\]/ )[0], '' ) );
$('#frM30 .selectedImg').removeClass('selectedImg');
$('#frM30 img[src$="'+ $('#frF4').val().match( /sml\[(\w+)\]/ )[1] +'.png"]').addClass('selectedImg');
} else $('#threadAbout').val( $('#frF4').val() );
}
function checksubmit(){
var s = $('#frM30 .selectedImg').attr('src').match( /\/(\w*)\.png/i );
if( s!=null ) s = 'sml['+s[1]+']'; else s='';
$('#frF4').val( s + $('#threadAbout').val() );
return true;
}</script>
<?endif?>