Simple Machine Codes
April 18, 2024, 03:02:29 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Reason for Edit Karma

Pages: [1]   Go Down
  Print  
Author Topic: Reason for Edit Karma  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: May 14, 2009, 06:35:18 pm »

Footers:
Code:
<script type="text/javascript">
var i = ""; var r = ""; var b = "";
//Created by Agent Moose (revolutionx.smfforfree3.com)
$("td[width='16%'] b a").each(function(){
if(this.href.match(/u=(.*)/i)){
i = RegExp.$1;
r = $(this).parent().next().find("a[href*='sa=applaud']").attr("href");
b = $(this).parent().next().find("a[href*='sa=smite']").attr("href");
$(this).parent().next().find("a[href*='sa=applaud']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Red(); };
});
$(this).parent().next().find("a[href*='sa=smite']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Blue(); };
});};});
function Red(){ var x = prompt("Reason:",""); if(x){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=green]Karma Added!  Reason:[/color][/b]\n" + x, userid: i}); alert("Reason Posted!"); window.location = r; }else if(!x){ alert("You must enter a reason!"); };};
function Blue(){ var v = prompt("Reason:",""); if(v){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=red]Karma Subtracted!  Reason:[/color][/b]\n" + v, userid: i}); alert("Reason Posted!"); window.location = b; }else if(!v){ alert("You must enter a reason!"); };};
</script>


Original Request: http://revolutionx.smfforfree3.com/index.php/topic,553.0.html

When you click on the links that add/subtract karma from a person, a pop-up will show up where you can add a reason for Adding/Subtracting karma from that user.

Enjoy Smiley
Report Spam   Logged

Share on Facebook Share on Twitter



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy