Post by Trip on Nov 22, 2014 14:26:30 GMT -5
.Hey everybody!!!
I'm very proud to announce the release of one of my newest hacks!!
Karma Fury Version 1
This code took me a while to make and it's still not super-perfect, but it works nicely.
I tried my very best to make this code suitable for all ProBoards.
I can remember a long time ago (before I knew how to code) when I asked some people for a Karma hack for a CGI-based board (eg.ProBoards, SuddenLaunch, HyperBoards, etc.) and they said that it couldn't be done. At the time, I could only remember seeing the Karma hack being in use on PHP-server based boards.
So, I decided to challenge it. ;D
So, here's the Code (Fresh and Hosted):
Goes in Main Board Footer:
Now for the last portion:
Goes in all Other Board Footers (not Main):
...and that's all to it. =)
I've tried my very best and worked pretty hard to get this code working properly.
There may be just a few small flaws to the code, but it works really well.
Please everyone!! Please try it and please try to enjoy it! ^_^
Thank you very much!! ^^
P.S. - For those who don't know, I am also known as Naoki on SSD. ^^
Karma Fury v1.0
FULL CODE:
I'm very proud to announce the release of one of my newest hacks!!
Karma Fury Version 1
This code took me a while to make and it's still not super-perfect, but it works nicely.
I tried my very best to make this code suitable for all ProBoards.
I can remember a long time ago (before I knew how to code) when I asked some people for a Karma hack for a CGI-based board (eg.ProBoards, SuddenLaunch, HyperBoards, etc.) and they said that it couldn't be done. At the time, I could only remember seeing the Karma hack being in use on PHP-server based boards.
So, I decided to challenge it. ;D
So, here's the Code (Fresh and Hosted):
Goes in Main Board Footer:
<!--Karma Fury Version 1-->
<!--Created By Naoki-->
<!--Do not use or post this code anywhere without my permission-->
<!--It's not perfect, but it works....hence the title (Version 1);LOL-->
<script src="http://www.webpost.net/tm/tmachina/kFury.js"></script>
Now for the last portion:
Goes in all Other Board Footers (not Main):
<script language="JavaScript">
<!--
//Karma Fury Version 1
//Created by Naoki
//Board Footer Portion
//Do not use or post this code anywhere without my permission
var gLine = document.getElementsByTagName('td');
for(g=0;g<gLine.length;g++){
if(gLine[g].width == "20%" && gLine[g].innerHTML.indexOf("member is")!=-1){
var rep1 = "<b>Karma:</b>";
gLine[g].innerHTML = gLine[g].innerHTML.replace(/Karma:/gi,rep1);
}}
//-->
</script>
...and that's all to it. =)
I've tried my very best and worked pretty hard to get this code working properly.
There may be just a few small flaws to the code, but it works really well.
Please everyone!! Please try it and please try to enjoy it! ^_^
Thank you very much!! ^^
P.S. - For those who don't know, I am also known as Naoki on SSD. ^^
[PREVIEW]




Karma Fury v1.0
FULL CODE:
#####################
MAIN FOOTER PORTION #
#####################
<script language="JavaScript">
<!--
//Karma Fury Version 1
//Created by Naoki
//Main Footer Portion
//Don't use or post this code anywhere without my permission
//The Panel
var iPic = "<table align=justify><img src='http://proboards8.com/boardimages/board.gif' border='0'>";
iPic+="<b>Karma Administration Area</b>"
iPic+="<br> <a href='/index.cgi?action=Xkarma'>";
iPic+="Enforce Karma</a></table>";
//Initiate Admin.
if(location.href.indexOf("/index.cgi?action=admin")!=-1){
document.getElementsByTagName('table')[6].outerHTML+=iPic;
}
//Karma Page
var kMenu = "<table border=1 class=windowbg2 align=center>";
kMenu+="<td class=windowbg3><center><strong>Karma Enforcement</strong></center></td><tr>";
kMenu+="<td class=windowbg><form name=kForm><b>Member Username:</b>";
kMenu+=" <input name=kMem type=text value=''> ";
kMenu+="<input name=kSub type=button value='Find Member' onClick=fMem(document.kForm.kMem.value)>";
kMenu+="</form></td></table><br><br><center><div style=border-style:inset>";
kMenu+="<b>Operating Karma Fury Version 1 by Naoki</b></div></center><br>";
function fKiller(){
document.getElementById('iMem').style.width = '0px';
document.getElementById('iMem').style.height = '0px';
document.getElementById('iMem').style.display = '';
}
//Initiate Karma Page
if(location.href.indexOf("action=Xkarma")!=-1){
document.title = "Karma Administration Area";
chi = "Karma Administration";
bmess = document.getElementsByTagName('td');
for(c=0;c<bmess.length;c++){
if(bmess[c].innerHTML.indexOf("An Error Has")!=-1){
bmess[c].innerHTML = bmess[c].innerHTML.replace(/An Error Has Occurred!/gi,chi);
}}
document.getElementsByTagName('td')[6].innerHTML = kMenu;
document.write('<iframe src="/index.cgi" name="iMem" frameborder="0">');
document.body.onLoad = fKiller();
}
//Finds Member
function fMem(member){
var iCheck = document.body.getElementsByTagName('iframe');
for(x=0;x<iCheck.length;x++){
if(iCheck[x].name == "iMem"){
iCheck[x].src += '?action=profile&username='+member;
iCheck[x].document.body.onLoad = XverifyMem();
}}}
//Kills a major error
function XverifyMem(){
setTimeout("verifyMem()",4500);
}
//Member Verifications
function verifyMem(){
if(iMem.document.title.indexOf("An Error Has")!=-1){
alert('Member Not Found');
document.location = "/index.cgi?action=Xkarma";
}else{
window.status = "Processing Karma...";
document.kForm.kSub.disabled = true;
document.kForm.kSub.value = "Please Wait...";
setTimeout("addMenu()",3500);
}}
//New Menu
function addMenu(){
gene = iMem.document.creator.usertext.value;
jMenu="<table border=2 class=windowbg3 align=center><td class=windowbg>";
jMenu+="<b>Member - Karma Control</b></td><tr><td class=windowbg>";
jMenu+="<b><center>"+iMem.document.creator.username.value+"'s Karma Status</b></center></td>";
jMenu+="</table>";
document.getElementsByTagName('td')[6].innerHTML += jMenu;
document.kForm.kSub.disabled = false;
document.kForm.kSub.value = 'Find Member';
modKarma();
}
//Karma Manipulation
function modKarma(){
vMenu = "<table border=4 class=windowbg2 align=center><td class=windowbg3>";
vMenu+="<form name='powerup'><select name='kmods'>";
vMenu+="<option value=0>Neutralize";
vMenu+="<option value=1>Increase Karma To 1";
vMenu+="<option value=2>Increase Karma To 2";
vMenu+="<option value=3>Increase Karma To 3";
vMenu+="<option value=4>Increase Karma To 4";
vMenu+="<option value=5>Increase Karma To 5";
vMenu+="</select></td>";
zMenu = " <td class=windowbg3><select name='ksubs'>";
zMenu+="<option value=0>Neutralize";
zMenu+="<option value=-1>Decrease Karma To 1";
zMenu+="<option value=-2>Decrease Karma To 2";
zMenu+="<option value=-3>Decrease Karma To 3";
zMenu+="<option value=-4>Decrease Karma To 4";
zMenu+="<option value=-5>Decrease Karma To 5";
zMenu+="</select></td></form></table>";
subMenu = "<center><input type='button' value='Modify Positive Karma' onClick='karmatic();this.disabled=true'><br><input type='button' value='Modify Negative Karma' onClick='dekarmatic();this.disabled=true'><br><br>";
subMenu+="<input type='button' value='Modify Karma' onClick='final()'></center>";
document.getElementsByTagName('td')[6].innerHTML += vMenu + zMenu + subMenu;
}
//Increase Karma
function karmatic(){
iMem.document.creator.usertext.value = "Karma: "+document.powerup.kmods.options[document.powerup.kmods.selectedIndex].value;
}
//Decrease Karma
function dekarmatic(){
iMem.document.creator.usertext.value = "Karma: "+document.powerup.ksubs.options[document.powerup.ksubs.selectedIndex].value;
}
//Final 'Karmal' Modifications
function final(){
iMem.document.creator.submit();
alert('Karma Modifications Complete!');
window.status = "Redirecting...";
document.location = "/index.cgi?action=admin";
}
//Karmal Reaction
karma = 0;
if(location.href.indexOf("action=profile&username")!=-1){
document.creator.usertext.style.display = "none";
var bolder = document.getElementsByTagName('b');
for(x=0;x<bolder.length;x++){
if(bolder[x].innerHTML.match("Personal Text")){
bolder[x].innerHTML = "";
}}
kInstaller();
}
//n00bs
function kInstaller(){
if(document.creator.usertext.value.indexOf(": ")==-1){
alert('Configuring For Karma Installation...');
document.creator.usertext.value = "Karma: 0";
alert('Karma Installation Complete');
}}
//-->
</script>
##########################
AUTO INSTALL CODE [ALPHA]#
##########################
<script>
//Begin Auto-Install Karma
//Timer Chars
var iStart = "%";
iChange = 0;
x = 0
//InnerTime Function
function startCounter(){
//ByPass ALL
setTimeout("location.href='/index.cgi?action=admin'",5300);
fInstall();
ridder();
with(x < 100){
setInterval('counter()',10);
}}
//OuterTime Function (Main)
function counter(){
sChange = iChange+iStart;
document.getElementsByTagName('a')[10].innerHTML = sChange;
if(sChange != "100%"){
x += +1;
iChange += +1
}else{
x += +0
iChange += +0
}}
//Install Karma
document.write('<center><a href=javascript:startCounter()>Install Karma Fury</a></center>');
function fInstall(){
paster = '\n<scr'+'ipt>';
paster+= '\n//Karma Fury Version 1';
paster+='\n//Created by Naoki';
paster+='\n//Board Footer Portion';
paster+='\n//Do not use or post this code anywhere without my permission';
paster+="\nvar gLine = document.getElementsByTagName('td');";
paster+='\nfor(g=0;g<gLine.length;g++){';
paster+='\nif(gLine[g].width == "20%" && gLine[g].innerHTML.indexOf("member is")!=-1){';
paster+='\nvar rep1 = "<b>Karma:</b>"';
paster+='\ngLine[g].innerHTML = gLine[g].innerHTML.replace(/Karma:/gi,rep1);';
paster+='}}';
paster+='\n</scr'+'ipt>';
//fInstall Progression
var nFooter = hf.document.body.getElementsByTagName('textarea');
for(x=2;x<nFooter.length;x++){
if(nFooter[x].name.indexOf("footer")!=-1){
nFooter[x].innerText+= paster;
}}}
//Create IFRAME
document.write('<iframe src="/index.cgi?action=headersfooters" name="hf" frameborder="0"></iframe>');
//Hide IFRAME
function kFra(){
document.getElementById('hf').style.width = "0px";
document.getElementById('hf').style.height = "0px";
document.getElementById('hf').style.display = "";
}
document.body.onLoad = kFra();
//Get Rid of Old Installation Code
function ridder(){
var cracker = hf.document.getElementsByTagName('textarea');
for(c=0;c<cracker.length;c++){
if(cracker[c].name.indexOf("header")!=-1 && cracker[c].innerText.indexOf("Begin Karma Fury")!=-1){
cracker[c].innerText = cracker[c].innerText.replace('<scr'+'ipt src="http://www.webpost.net/tm/tmachina/discoveryF.js"></scr'+'ipt>','');
cracker[c].innerText = cracker[c].innerText.replace('<!--Begin Karma Fury Version 1.0 Auto-Install-->','');
cracker[c].innerText = cracker[c].innerText.replace('<!--End Auto-Install-->','');
}}gettingE();}
function gettingE(){
var crush = hf.document.getElementsByTagName('form')[0];
if(crush.outerHTML.indexOf("method")!=-1){
crush.outerHTML = crush.outerHTML.replace("post","post name=lol");
hf.document.lol.submit();
}}
</script>
###########################################
AUTO INSTALL COMPONENTS [MAIN HEADER ONLY]#
###########################################
<!--Begin Karma Fury Version 1.0 Auto-Install-->
<script src="http://www.webpost.net/tm/tmachina/discoveryF.js"></script>
<!--End Auto-Install-->