We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Different Post Color For Administrators/Moderators; By Andrеw
Topic Started: Jan 23 2010, 12:48 AM (134 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Andrеw
Different Post Color For Administrators/Moderators
 
Name: Different Post Color For Administrators/Moderators.
Author: Andrew.
Description: Defines a different color for administrators' and moderators' posts.
Preview: Click here, please.
Place: Skinning & Styles » Board Wrappers » Footer.


Quote:
 
<script type='text/javascript'>
<!--

admincolor="#FF0000[/SMALL]"
modcolor="#800080"

GET_SPAN=document.getElementsByTagName('SPAN');
for(a=0; a<GET_SPAN.length; a++){
n=GET_SPAN[a];
if(n.className=="postdetails" && n.innerHTML.match(/Group: Admin/i)){
n.parentNode.parentNode.parentNode.parentNode.className="admin";
document.write("<style type='text/css'>.admin .post2, .admin .post1 { background-color:" + admincolor + "} </style>");
}
if(n.className=="postdetails" && n.innerHTML.match(/Group: Moderators/i)){
n.parentNode.parentNode.parentNode.parentNode.className="moderator";
document.write("<style type='text/css'>.moderator .post2, .moderator .post1 { background-color:" + modcolor + "} </style>");
}
}
//-->
</script>


How to Use:

1.) Change the variables on top to the colors you wish. The admincolor variable stands for the administrators' post color and the modcolor variable stands for the moderators' post color.
2.) Change the bold blue text to the name of the Administrator User Group. By default, it is Admin in InvisionFree.
3.) Change the bold black text to the name of the Moderator User Group. Since you have to create this User Group on your own, you'll need to type the name you gave it when you created it.

Enjoy. ^_^
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply