Post by MisterAle on Jul 12, 2003 18:39:21 GMT -5
Here's a few codes you can add to your headers (unless otherwise noted) to help you out on your board! I will aslo post a few useful links in a reply. :)
Highlight Administrator's/Global Mod's Usernames
Change the red text to any color you want.
<style>
.adminuser:link,.adminuser:visited,.adminuser:hover {background-color: [red]color for administrator[/red];}
.gmoduser:link,.gmoduser:visited,.gmoduser:hover {background-color: [red]color for global mod[/red];}
</style>
Alert Members Of New Messages Via Alert Box
Insert this in your footers. You don't need to change anything.
<script language="JavaScript">
// IM alerter
// Writen by The Apartment 108 Network
// apt108.tk
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
function findit() {
if(IE4)
if(window.document.body.createTextRange().text.match(/(\d+) are new./))
if(RegExp.$1 != 0)
newmessage(RegExp.$1);
if(window.document.body.createTextRange().text.match(/(\d+) is new./))
if(RegExp.$1 != 0)
newmessage(RegExp.$1);
if(NS4) {
if(!window.find("Welcome Guest.") && !window.find(", 0 are new."))
newmessage();
}}
function newmessage(num) {
if (location.href.indexOf("action=im") == -1 ){
take=confirm("You have "+num+" new message(s).\nPress 'Ok' to view them.");
if (take) {
window.location="index.cgi?action=im"
}}}
findit();
</script>
Make Text Appear In Status Bar
Change the red to any text of your choice.
<script>
window.status="[red]your text here[/red]"
</script>
Remove Info Center
Add this to the footers of the main page only. Nothing needs to modified.
<script>
// Writen by the Apartment 108 Network
// apt108.tk
var tables = document.getElementsByTagName('TABLE')
for(k=0; k<tables.length; k++){
if (tables[k].innerHTML.match("Info Center") && tables[k].innerHTML.match("Users Online")) {
if (tables[k].innerHTML.match("Forum Name") && tables[k].innerHTML.match("Topics")) {
} else {
tables[k].style.display="none"
}}}
</script>
Highlight Administrator's/Global Mod's Usernames
Change the red text to any color you want.
<style>
.adminuser:link,.adminuser:visited,.adminuser:hover {background-color: [red]color for administrator[/red];}
.gmoduser:link,.gmoduser:visited,.gmoduser:hover {background-color: [red]color for global mod[/red];}
</style>
Alert Members Of New Messages Via Alert Box
Insert this in your footers. You don't need to change anything.
<script language="JavaScript">
// IM alerter
// Writen by The Apartment 108 Network
// apt108.tk
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
function findit() {
if(IE4)
if(window.document.body.createTextRange().text.match(/(\d+) are new./))
if(RegExp.$1 != 0)
newmessage(RegExp.$1);
if(window.document.body.createTextRange().text.match(/(\d+) is new./))
if(RegExp.$1 != 0)
newmessage(RegExp.$1);
if(NS4) {
if(!window.find("Welcome Guest.") && !window.find(", 0 are new."))
newmessage();
}}
function newmessage(num) {
if (location.href.indexOf("action=im") == -1 ){
take=confirm("You have "+num+" new message(s).\nPress 'Ok' to view them.");
if (take) {
window.location="index.cgi?action=im"
}}}
findit();
</script>
Make Text Appear In Status Bar
Change the red to any text of your choice.
<script>
window.status="[red]your text here[/red]"
</script>
Remove Info Center
Add this to the footers of the main page only. Nothing needs to modified.
<script>
// Writen by the Apartment 108 Network
// apt108.tk
var tables = document.getElementsByTagName('TABLE')
for(k=0; k<tables.length; k++){
if (tables[k].innerHTML.match("Info Center") && tables[k].innerHTML.match("Users Online")) {
if (tables[k].innerHTML.match("Forum Name") && tables[k].innerHTML.match("Topics")) {
} else {
tables[k].style.display="none"
}}}
</script>