Mesaj # 1 | 4:11 PM
Instalare :

Cp --> Forum --> General appeareance of forum pages --> dupa $BODY$ adaugati :

Code
<?if($GROUP_ID$='4' || $GROUP_ID$='3')?>   
<?if($PAGE_ID$='forum')?>   
<style>   
.gTableTop {   
   padding-left: 6px;   
}   
</style>   
<script>   
nfid = 5;   
fid = location.pathname.split('/')[2];   
if (nfid != fid) {   
   $('.gTableTop').prepend('<input type="checkbox" id="p">');   
   $('tr[id^="tt"]').each(function () {   
   $(this).children().eq('0').prepend('<input type="checkbox" class="ch">');   
   });   
   $('#p').click(function () {   
   if ($('.ch:checked').length) {   
   $('.ch').removeAttr('checked');   
   }   
   else {   
   $('.ch').attr('checked', 'checked');   
   }   
   });   
   $('.gTopCornerRight').show().html('<input type="button" value="Stergeţi selectate" onclick="edit(\'del\');"> <input type="button" value="Debifeaza" onclick="edit(\'cart\');">');   
   function edit(act) {   
   href = location.href;   
   $.get(href + '-0-0-1-1', function (data) {   
   ssid = $('input[name="ssid"]', data).val();   
   $('.ch:checked').each(function () {   
   id = $(this).parent().parent().attr('id').substr(2);   
   if (act == 'del') {   
   $.get(href + '-' + id + '-' + ssid + '-21-2?_tp_=xml');   
   }   
   else {   
   $.post('/forum', {   
   _tp_: 'xml',   
   a: 20,   
   description: $('#tt' + id + ' .threadDescr').text(),   
   fid: fid,   
   nfid: nfid,   
   t: 1,   
   tid: id,   
   tt: 1,   
   });   
   }   
   });   
   setTimeout(function () {   
   location.href = href;   
   },   
   2000);   
   });   
   }   
}   
</script>   
<?endif?>   
<?endif?>


Rezultat :