Author |
Topic |
|
Spizak
Starting Member
5 Posts |
Posted - 24 October 2002 : 17:22:39
|
Curious if anyone wrote something so that users can pick their own star colors, and mods/admins can change the colors of their names.
Thanks! |
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 28 October 2002 : 17:10:39
|
This may work (or may not), but try and put the code or html into the boxes for members/admins/moderators titles.
For example...
[ b]Forum Admin[ /b]
or...
< b>Forum Admin< /b>
(without the spaces of course ) |
|
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 28 October 2002 : 17:13:48
|
Oops, just tried, and doesn't work
Would be good to be able to get this working
Can anyone help in allowing code in the Ranking Config boxes? |
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 28 October 2002 : 19:14:35
|
===================================== Curious if anyone wrote something so that users can pick their own star colors, ===================================== it's mean you need a extra Member data field to store this color value, i think it's not so easy to do this. and i'm a little wonder why you'll need this strange feature ??
===================================== and mods/admins can change the colors of their names. ===================================== and this one look like more easy to implement... make a copy of function profileLink(fName, fID) in inc_func_common.asp (you can just put it below the profileLink function...) name/change it to function profileLink2(fName, fID, fLevel) and just change this one line profileLink = strReturn & fName & "</a>" to select case fLevel case 3 'special style for Admin fLevelName = "<font color=""red"">" & fName & "</font>" case 2 'special style for Moderator fLevelName = "<font color=""green"">" & fName & "</font>" case else fLevelName = fName end select profileLink2 = strReturn & fLevelName & "</a>"
then at the place where you want to modify... for example, in topic.asp change this profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) to profileLink2(ChkString(Reply_MemberName,"display"),Reply_Author,Reply_MemberLevel)
this example just change the font color, if you want it have different link/hover color, maybe you'll need to define some new link style first.(in inc_header.asp)
(P.S. also we'll need to know the Member Level information first! so we can judge the name is Admin/Moder/or Normal Member...)
hope this one a little helpful.
and mortioli, i think usually we can just change the ChkString type to make it allowed Forum Code. for example, in topic.asp change "display" to "message" ChkString(getMember_Level(Reply_MemberTitle, Reply_MemberLevel, Reply_MemberPosts),"message") |
~......~.~~ |
|
|
Spizak
Starting Member
5 Posts |
Posted - 29 October 2002 : 18:14:43
|
Hmm....
I'll give it a shot. I don't mind figuring out how to put in two more columns into the DB for it.
Reason I wanted it is some of my users gripe about their star colors, so I figured after they hit rank 5 I'd let them change their stars around to a color they like. Then to make it a little easier to pick out who the moderators are make their names different colors from regular users. |
|
|
|
Topic |
|