Post by Shin™ on Mar 8, 2005 15:04:24 GMT
Browser Compatibility: Cross-Broswer
Previews (screenshots): 1, 2
Edit: My screenshots keep getting resized as I host them... they may be too small...
This code will add a link that says "Click here to apply" next to Moderators: none. The link will go to the IM send page, with your custom application message (or my default one if you don't decide to change it) already at the top of the message area. The subject of the message will be "Application: NAME OF BOARD". The script will automatically grab the board's name and add it to the subject. And of course, the link is hidden from guests.
If you are using a code to remove "Moderators: none" from the page, make sure that my code goes above it.
Unfortunately, the script will not be able to automatically set more than one username to send the pm to. If you try to use more than one, the script will still work, but the "send to" area will be blank.
Main Page Footer Only!
Previews (screenshots): 1, 2
Edit: My screenshots keep getting resized as I host them... they may be too small...
This code will add a link that says "Click here to apply" next to Moderators: none. The link will go to the IM send page, with your custom application message (or my default one if you don't decide to change it) already at the top of the message area. The subject of the message will be "Application: NAME OF BOARD". The script will automatically grab the board's name and add it to the subject. And of course, the link is hidden from guests.
If you are using a code to remove "Moderators: none" from the page, make sure that my code goes above it.
Unfortunately, the script will not be able to automatically set more than one username to send the pm to. If you try to use more than one, the script will still work, but the "send to" area will be blank.
Main Page Footer Only!
<script type="text/javascript">
/*
www.anime-within.tk
Apply for mod position link (next to Moderators: none), coded by Shin. You may use freely but you may not repost this code without my prior express permission. This header must remain intact at all times.
*/
//Place the username to send applications to below.
var applyTo="admin";
//Place the desired application message below
var applyMessage = "I would like to apply to be the moderator of this board. I will explain below why I would be good for this job. I understand that removing this header from this message, changing who it is sent to, changing the subject of this message, or not explaining why I would be good for this, will void my application. I will leave this header at the top of this message.";
applyMessage+=encodeURIComponent('\n\n');
var TD = document.getElementsByTagName("TD");
if(TD[5].innerHTML.match(/action=logout/i)){
for(a=0;a<TD.length;a++){
if(TD[a].width=="66%"&&TD[a].className.match(/windowbg/i)&&TD[a].innerHTML.match(/moderators: none/i)){
var boardDisplayName = TD[a].getElementsByTagName("B")[0].innerHTML
var applyPM="<a href='index.cgi?action=imsend&to="+applyTo+"&subject=Application: "+boardDisplayName+"&message="+applyMessage+"'>";
TD[a].innerHTML+=" <font size='1'>["+applyPM+"Click here to apply</a></font>]"
}
}
}
</script>