Post by Trip on Nov 22, 2014 11:16:56 GMT -5
Hehehehe, yup, believe it or not, but I've decided to improve upon this hack that I made quite some time ago. ^_~
As some of you may already know, I have created a version 1 of this hack........so I wanted it to be Cross-Compatible and a bit better; soooooooo that's exactly what I did.
Honestly, I didn't think that this was possible to Cross-Compatibilize, but I proved myself wrong. ^_~
I now present to you all.......my LATEST hack:
PM Main Admin Post Modifier v2
Code Specifications:
Code Speed: Fast
Compatibility: Internet Explorer AND Mozilla FireFox (Cross-Browser)
Browser Speed Limit: 56k Minimum
TOS Check: Violation
UserType: Friendly
Goes in desired OTHER (not Main) Board Footers:
PREVIEW:

Let me explain the code a bit:
When someone modifies their post, an PM will be sent to the MAIN ADMIN (not other Admins.).
PM Contents:
^: In this version, you get the actual THREAD of the modified post!! ^_^
Due to certain statistics and probabilities of people's browsers, the code has a 90% chance of not generating a certain error, and a 10% chance of generating an error causing the process to fail.
The success rate has increased due to better coding than v1, so you shouldn't worry too much; but a 56k connection is the minimum requirement for the 90% success rate.
...any lower, and success rate will be lowered accordingly.
I suggest that you try the code again and try to Modify more than 1 post just to test it out. Try modifying and saving changes on about 3 posts just to test.
Also, Modifying your own posts work too.
Well, thanks and I hope that you all enjoy! ^_~
As some of you may already know, I have created a version 1 of this hack........so I wanted it to be Cross-Compatible and a bit better; soooooooo that's exactly what I did.

Honestly, I didn't think that this was possible to Cross-Compatibilize, but I proved myself wrong. ^_~
I now present to you all.......my LATEST hack:
PM Main Admin Post Modifier v2
Code Specifications:
Code Speed: Fast
Compatibility: Internet Explorer AND Mozilla FireFox (Cross-Browser)
Browser Speed Limit: 56k Minimum
TOS Check: Violation
UserType: Friendly
Goes in desired OTHER (not Main) Board Footers:
<script language="JavaScript">
<!--
//IM Main Admin. Post Modifier v2 [Cross-Browser]
//Created By Trip
//Goes in Desired Board Footers (not Main)
//Do not post this code anywhere else without my permission
//Location Check
if(location.href.indexOf("=modify&num=")!=-1){
if(navigator.appName=="Microsoft Internet Explorer"){
document.write('<iframe src="/index.cgi?action=imsend&to=admin" name="guard"></iframe>');
document.body.onLoad = vent();
}else{
document.write('<iframe src="/index.cgi?action=imsend&to=admin" name="guard" style="visibility:hidden"></iframe>');
}
setTimeout("XMove()",3000);
}
function vent(){
document.getElementById('guard').style.width = '0px';
document.getElementById('guard').style.height = '0px';
document.getElementById('guard').style.display = '';
}
function XMove(){
var kTech = guard.document.body.getElementsByTagName('textarea');
var cTech = document.body.getElementsByTagName('textarea');
var sTech = document.body.getElementsByTagName('input');
for(t=0;t<kTech.length;t++){
for(v=0;v<cTech.length;v++){
for(x=0;x<sTech.length;x++){
if(kTech[t].name=="message" && kTech[t].cols=="60"){
if(cTech[v].name=="message" && cTech[v].rows=="12"){
if(sTech[x].type=="submit" && sTech[x].value=="Modify"){
if(navigator.appName=="Microsoft Internet Explorer"){
sTech[x].outerHTML = sTech[x].outerHTML.replace(/'post';/gi,"'post';batch()");
}else{
sTech[x].id = "maxor";
maxor.setAttribute('onMouseover','batch();');
}
kTech[t].value = "[b\][u\]~ORIGINAL MESSAGE~[/u][/b]\n"+cTech[v].value;
}
}
}
}
}
}
}
function batch(){
var area = location.href;
area = area.split("&");
var ration = area[0];
var tVox = "&action=display&num="
var fCharge = area[2].split("=")[1];
var dGest = ration.concat(tVox,fCharge);
var kGI = guard.document.body.getElementsByTagName('textarea');
var cGI = document.body.getElementsByTagName('textarea');
var sGI = guard.document.body.getElementsByTagName('input');
for(t=0;t<kGI.length;t++){
for(v=0;v<cGI.length;v++){
for(s=0;s<sGI.length;s++){
if(kGI[t].name=="message" && kGI[t].cols=="60"){
if(cGI[v].name=="message" && cGI[v].rows=="12"){
if(sGI[s].name=="subject"){
kGI[t].value += "\n\n\n[b\][u\][i\]~MODIFIED MESSAGE~[/i][/u][/b]\n"+cGI[v].value+"\n\n\n[b\]Thread URL[/b]: "+dGest;
sGI[s].value = "Modified Post";
}
}
}
}
}
}
guard.document.postmodify.submit();
}
//-->
</script>
PREVIEW:
Let me explain the code a bit:
When someone modifies their post, an PM will be sent to the MAIN ADMIN (not other Admins.).
PM Contents:
[*]Post Modifier (obviously, the Member who PMed you)
[*]Original Post
[*]Modified Post
[*]Thread URL of post
^: In this version, you get the actual THREAD of the modified post!! ^_^
Due to certain statistics and probabilities of people's browsers, the code has a 90% chance of not generating a certain error, and a 10% chance of generating an error causing the process to fail.
The success rate has increased due to better coding than v1, so you shouldn't worry too much; but a 56k connection is the minimum requirement for the 90% success rate.

...any lower, and success rate will be lowered accordingly.
I suggest that you try the code again and try to Modify more than 1 post just to test it out. Try modifying and saving changes on about 3 posts just to test.
Also, Modifying your own posts work too.

Well, thanks and I hope that you all enjoy! ^_~
[PREVIEW]

