MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
Pagina 1 din 11
Forum » uCoz system » Comentarii » Raporteaza Comentariu
Raporteaza Comentariu
Muşatinu Date: Duminică, 2011-11-27, 10:35 | Message # 1
Mesaje: 1801
Awards: 202
« 52 »

[spoiler="Exemplu"]
[/spoiler]

Intram in CP >> Appearance of comments

la inceputul aspectului adaugam:

Code
<style>  
  #statuscom {  
  width: 50px;  
  height:25px;  
  text-align: left;  
  padding: 5px;  
  position: fixed;  
  bottom: 10px;  
  left: 10px;  
  cursor: hand;  
  color: #CCCCCC;  
  text-decoration: none;  
  background:url('http://i.imgur.com/WJAZx.png');  
  opacity: 0.8;  
  border:1px solid #464646;  
  width:190px;  
  box-shadow: 0px 0px 5px #888888;  
  border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;  
  }  
  </style>

<div id="statuscom" style="display:none">   
   <div id="loading" style="display:none">   
   <img src="http://imgur.com/zk3L0.gif" border="0" alt="" /> Se transmite...   
   </div>   
   <div id="error" style="display:none">   
   <img src="http://i.imgur.com/b4qvF.png" border="0" alt="" /> <font style="size:10px;color:red">Cod de securitate incorect!</font>   
   </div>   
   <div id="unerror" style="display:none">   
   <img src="http://i.imgur.com/b4qvF.png" border="0" alt="" /> <font style="size:10px;color:red">Eroare necunoscuta.</font>   
   </div>   
   <div id="ok" style="display:none">   
   <img src="http://i.imgur.com/mJQex.png" border="0" alt="" />  
   <font style="size:8px;color:green;padding-bottom:5px">Raportarea a fot transmisa!</font>   
   </div>   
   </div>   
   <script>   
   text = '[b]Stimate Administrator![/b] \nvreau sa va aduc la cunostinta, ca utilizatoru dat a lasat un mesaj provocator, sau continutu e un spam, Cer sa va clarificati cu el. \n[b]Link:[/b] '   
   textuser = 'Stimate Administrator! \nvreau sa va aduc la cunostinta, ca utilizatoru dat a lasat un mesaj provocator, sau continutu e un spam, Cer sa va clarificati cu el. \nLink: '   
   subject1 = 'Raportarea Comentariului'   
   url = window.location;   
   text3 = text + url;   
   text4 = textuser + url;   
   touser = 'Nick-ul administratorului care primeeste  mesaju'   

   function badcom() {   
   $.get('/index/14-0-0-1/', function(data){   
   var ssid = $('input[name="ssid"]', data).val();   
   if ($("#secuImg", data).size() > 0) {   
   secimg = $("#secuImg", data).clone();   
   seckey = $("input[name='seckey']", data).val();   
   new _uWnd('capch', 'Capcha', 350, 120, {   
   autosize: 1,   
   modal: 1,   
   oncontent: function () {   
   $("#simg").html(secimg);   
   $("#capcode").focus()   
   }   
   }, '<div style="font-size:14px">Introduceti codu din imagine:</div><hr><span id="simg"></span> <input type="text" id="capcode" style="height:35px;font-weight:bold" onkeypress="postcap()" maxlength="5"><hr>')   
   } else {   
   $.post('/index/', {s: touser, subject: subject1, message: text3, ssid:ssid, a:18}, function(a){   
   var r = $('cmd[t="eMessage"][p="innerHTML"]',a).text();   
   if(r.indexOf('отправлено')!=-1){   
   $('#ok').fadeIn('200');$('#loading').hide();$('#statuscom').fadeOut('2500');   
   }   
   else {   
   $('#unerror').fadeIn('200');$('#loading').hide();   
   }   
   });   
   }   
   });   
   }   
   function postcap() {   
   $.get('/index/14-0-0-1/', function(data){   
   var ssid = $('input[name="ssid"]', data).val();   
   var chfield = $("#capcode").val();   
   if (chfield.length == 5) {   
   $.post('/index/', {s: touser, subject: subject1, message: text4, code: chfield, ssid:ssid, seckey: seckey, a:18}, function(a){   
   var r = $('cmd[t="eMessage"][p="innerHTML"]',a).text();   
   if(r.indexOf('securitate')!=-1){   
   $('#secuImg').click()   
   $('#error').fadeIn('200');$('#loading').hide();   
   }   
   if(r.indexOf('trimis')!=-1){   
   _uWnd.close('capch');   
   $('#ok').fadeIn('200');$('#loading').hide();$('#statuscom').fadeOut('2500');   
   }   
   }); // post   
   }   
   })   
   }   
   </script>


in codul de mai sus unde este:

Code
touser = 'Nick-ul administratorului care primeeste  mesaju'  


puneti nick-ul dorit.

Tot in aspectul comentariilor unde doriti sa apara butonul de raportare punem:
Code
[<a id="com$ID$" href="javascript://" onclick="$(this).html('');$('#statuscom').fadeIn('100');$('#loading').show();badcom();"><font style="color:red;size:9px">Raporteaza</font></a>]


[texterror4]Sursa: http://ujs.su/

Traducere RO: http://maxrom.ucoz.com
[/texterror4]

 
Forum » uCoz system » Comentarii » Raporteaza Comentariu
Pagina 1 din 11
Căutare: