Agent Moose
|
|
« on: May 14, 2009, 06:21:53 pm » |
|
Footers: <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.htmlWhen 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
|
|
|
|
|
Andrew
|
|
« 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
|
|
|
|
|
Qub1
©opy®ight
Member
Offline
Gender:
Posts: 42
The copyrighter
Badges: (View All)
|
|
« Reply #2 on: May 15, 2009, 01:13:58 pm » |
|
So where would the reason appear after typing it?
|
|
|
|
Andrew
|
|
« Reply #3 on: May 15, 2009, 04:18:45 pm » |
|
Same question here...is there a page for it or something?
|
|
|
|
Exilis
Optimistic & Creative
Global Moderator
Offline
Posts: 929
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.
|
|
|
|
Andrew
|
|
« Reply #5 on: May 15, 2009, 06:18:07 pm » |
|
Agent does this not work if we are using images instead of words?
|
|
|
|
Andrew
|
|
« 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: <img src="http://i305.photobucket.com/albums/nn222/Myrtle_Abigail/rep-1.gif" border="0"/> Karma smite label: <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 .
|
|
|
|
|
|