Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 16th, 2017, 05:17am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Different Colored MiniProfile Text for Groups  (Read 4287 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17654
xx Different Colored MiniProfile Text for Groups
« Thread started on: Feb 5th, 2004, 3:16pm »

Code submitted by InvaderJello


This code will change the Miniprofile text color depending on the User's Member Group

Code:
<script>
/*Change MiniProfile Color for Groups by Jello
This code may not be posted anywhere without permission of its creator */
function MiniPro(Group,Color){
var TD = document.getElementsByTagName("TD")
for(t=0;t<TD.length;t++){
if(TD[t].width=="20%" && TD[t].vAlign=="top"){
if(TD[t].innerHTML.match(Group)){

//Global Moderator Color is HERE!
if(TD[t].innerHTML.match('stargmod.gif')){var Color="blue"}

var Link = TD[t].getElementsByTagName("A")[0]
Link.innerHTML="<font color='" + Color + "'>" + Link.innerHTML + "</font>"
TD[t].style.color=Color
}}}}

//Add Titles as needed

MiniPro("Admin","red")
MiniPro("Moderator","green")
MiniPro("New Member","yellow")
MiniPro("Junior Member","orange")
MiniPro("Full Member","pink")
MiniPro("Senior Member","purple")
MiniPro("God","gold")
</script>  
 


A few notes.. if you changed your member group names.. change them here too.. make them match.. change the colors as you please... Change the Global Moderator were it says to make that group work right.. if you edited you Global Mod stars.. just change the stargmod.gif to match it...Board Footers...ENJOY!

Preview = Here
User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls