October 14, 2024, 08:00:26 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Reason for Edit Karma

Pages: [1]   Go Down
  Print  
Author Topic: Reason for Edit Karma  (Read 847 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: May 14, 2009, 06:21:53 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

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #1 on: May 14, 2009, 09:58:29 pm »

This code has been a long time coming, cant wait till tomorrow when i can add it! Thanks for making this agent Smiley
Report Spam   Logged

Qub1
©opy®ight
Member
Member
Offline Offline

Gender: Male
Posts: 42


The copyrighter


View Profile WWW
Badges: (View All)
« Reply #2 on: May 15, 2009, 01:13:58 pm »

So where would the reason appear after typing it?
Report Spam   Logged



Simple Plan
~ A wide community.

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #3 on: May 15, 2009, 04:18:45 pm »

Same question here...is there a page for it or something?
Report Spam   Logged

Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
Badges: (View All)
« Reply #4 on: May 15, 2009, 04:31:56 pm »

Don't quote me here, but I'm pretty sure it comments on the user's profile.
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #5 on: May 15, 2009, 06:18:07 pm »

Agent does this not work if we are using images instead of words?
Report Spam   Logged

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
Badges: (View All)
« Reply #6 on: June 21, 2009, 12:42:13 am »

Agent? Does this not work if we have it set to our liking? I had it set like this:

Karma Mode: Enable karma total
Karma label: Reputation:
Karma applaud label:
Code:
<img src="http://i305.photobucket.com/albums/nn222/Myrtle_Abigail/rep-1.gif" border="0"/>
Karma smite label:
Code:
<img src="http://i305.photobucket.com/albums/nn222/Myrtle_Abigail/-rep-1.gif" border="0"/>

Would that be OK? Did I do something wrong? Is there something else wrong with the code? Heh, sorry, ive been trying to use it for awhile and it hasnt been workig  Undecided.
Report Spam   Logged

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