Post by Trip on Nov 22, 2014 11:11:03 GMT -5
NOTE BEFORE ORIGINAL POST RELEASE: This is the SuddenLaunch boards version of this code/hack. I had originally created this code in ProBoards, and then later made this SL version, which actually didn't work properly for everyone unlike the original PB version.
Hello again people!!
I am proud to release one of my best hacks ever made for SuddenLaunch boards. The conversion to SL wasn't too bad, but it still took careful coding and quite a bit of testing time.
Actually, I think that this conversion of mines is even better than my PB version, lol. =)
Here it is!
Admin PM Post Mod[SuddenLaunch Version]
Code Specifications:
Code Speed: Fast
Compatibility: IE4+ Recommended
Browser Speed Limit: 40kbps
TOS Check: Permitted
UserType: N/A
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 95% chance of not generating a certain error, and a 5% chance of generating an error causing the process to fail.
This SL version happens to have a 15% success increase compared to my PB version. =)
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. =)
Hello again people!!
I am proud to release one of my best hacks ever made for SuddenLaunch boards. The conversion to SL wasn't too bad, but it still took careful coding and quite a bit of testing time.
Actually, I think that this conversion of mines is even better than my PB version, lol. =)
Here it is!
Admin PM Post Mod[SuddenLaunch Version]
Code Specifications:
Code Speed: Fast
Compatibility: IE4+ Recommended
Browser Speed Limit: 40kbps
TOS Check: Permitted
UserType: N/A
Goes in Other Board Footers (Not MAIN):
<script language="JavaScript">
<!--
//IM Main Admin. Post Modifier [SL Version]
//Created By Trip
//Goes in Desired Board Footers (not Main)
//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" onLoad="taMove();"></iframe>');
document.body.onLoad = dill();}
function dill(){
document.getElementById('guard').style.width = '0px';
document.getElementById('guard').style.height = '0px';
document.getElementById('guard').style.display = '';}
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=="Save"){
kare[t].innerText = "[b][i]~ORIGINAL MESSAGE~[/i][/b]\n"+kono[v].innerText;
soko[x].outerHTML = soko[x].outerHTML.replace(/'post';/gi,"'post';batch()");
}}}}}}}
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 95% chance of not generating a certain error, and a 5% chance of generating an error causing the process to fail.
This SL version happens to have a 15% success increase compared to my PB version. =)
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. =)
[NO BACKED UP PREVIEWS AVAILABLE]