Post by Trip on Nov 22, 2014 10:59:33 GMT -5
Hey everyone!!
I've created yet another hack for ProBoards!!
Goes In Other Board Footers (Not Main):
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:
Due to certain statistics and probabilities of people's browsers, the code has a 80% chance of not generating a certain error, and a 20% chance of generating an error causing the process to fail.
I suggest that you try the code again and try to Modify more that 1 post just to test it out. Try modifying and saving changes on about 3 posts just to test. =)
I've created yet another hack for ProBoards!!
Goes In Other Board Footers (Not Main):
<script language="JavaScript">
<!--
//IM Main Admin. Post Modifier
//Created By Trip
//Do not post this code anywhere else without my permission
if(location.href.indexOf("=modify&num=")!=-1){
document.write('<iframe src="/index.cgi?action=imsend&to=admin" name="guard">');
document.body.onLoad = dill();
setTimeout("taMove()",3000);
}
function taMove(){
var kare = guard.document.body.getElementsByTagName('textarea');
var kono = document.body.getElementsByTagName('textarea');
var soko = document.body.getElementsByTagName('input');
for(t=0;t<kare.length;t++){
for(v=0;v<kono.length;v++){
for(x=0;x<soko.length;x++){
if(kare[t].name=="message" && kare[t].cols=="60"){
if(kono[v].name=="message" && kono[v].rows=="12"){
if(soko[x].type=="submit" && soko[x].value=="Modify"){
kare[t].innerText = "[b]~ORIGINAL MESSAGE~[/b]\n"+kono[v].innerText;
soko[x].outerHTML = soko[x].outerHTML.replace(/'post';/gi,"'post';batch()");
}}}}}}}
function dill(){
document.getElementById('guard').style.width = '0px';
document.getElementById('guard').style.height = '0px';
document.getElementById('guard').style.display = '';
}
function batch(){
var place = location.href;
place = place.split("&");
var crunch = place[0];
var kare = guard.document.body.getElementsByTagName('textarea');
var kono = document.body.getElementsByTagName('textarea');
var sore = guard.document.body.getElementsByTagName('input');
for(t=0;t<kare.length;t++){
for(v=0;v<kono.length;v++){
for(s=0;s<sore.length;s++){
if(kare[t].name=="message" && kare[t].cols=="60"){
if(kono[v].name=="message" && kono[v].rows=="12"){
if(sore[s].name=="subject"){
kare[t].innerText += "\n\n\n[b]~MODIFIED MESSAGE~[/b]\n"+kono[v].innerText+"\n\n\n[b]Board URL:[/b] "+crunch;
sore[s].value = "Modified Post";
}}}}}}guard.document.postmodify.submit();}
//-->
</script>
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
[*]Board URL of post
Due to certain statistics and probabilities of people's browsers, the code has a 80% chance of not generating a certain error, and a 20% chance of generating an error causing the process to fail.
I suggest that you try the code again and try to Modify more that 1 post just to test it out. Try modifying and saving changes on about 3 posts just to test. =)
[PREVIEW]