Different style ranking system for board

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/66733?pagenum=1
05 November 2025, 04:04

Topic


IWishToLearn
Different style ranking system for board
26 March 2008, 16:26


I run a martial arts themed board for my private school website. Instead of having stars of different colors show up as certain post amounts are reached, I was wondering if there is a way I can have a graphic of a belt show up for each level. Example:
50 posts would display a yellow belt graphic and the words "Yellow Belt" with it instead of multiple colored stars. 100 would be orange belt graphic & words
150 purple, etc.
Any way I can do this?<

 

Replies ...


Jezmeister
26 March 2008, 17:28


The code you need is in inc_func_member.asp, I guess the easiest option would be to remove the multiple occurences of the calling of the star image so you only have one on each line (lines 93-98, 94-97 would be the same length as 94 already is, only with the relevant colour numbers) and then replace the star images with your belts.
as for the words you can easily do that by editing the titles of members in the admin settings, they follow the stars by default.<
IWishToLearn
26 March 2008, 18:23


MaD2ko0l
26 March 2008, 19:11


i havnt tested this, but this is what i came up with

just replace the getStar_Level function with this 1

Code:
function getStar_Level(fM_LEVEL, fM_POSTS)
dim Star_Level

select case fM_LEVEL
case "1"
if (fM_POSTS < cLng(intRankLevel1)) then Star_Level = ""
if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Star_Level = getCurrentIcon(getStarColor(strRankColor1),"","")
if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(getStarColor(strRankColor2),"","")
if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(getStarColor(strRankColor3),"","")
if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColor4),"","")
if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColor5),"","")
case "2"
if fM_POSTS < cLng(intRankLevel1) then Star_Level = ""
if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Star_Level = getCurrentIcon(getStarColor(strRankColorMod),"","")
if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(getStarColor(strRankColorMod),"","")
if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(getStarColor(strRankColorMod),"","")
if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColorMod),"","")
if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColorMod),"","")
case "3"
if (fM_POSTS < cLng(intRankLevel1)) then Star_Level = ""
if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Star_Level = getCurrentIcon(getStarColor(strRankColorAdmin),"","")
if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(getStarColor(strRankColorAdmin),"","")
if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(getStarColor(strRankColorAdmin),"","")
if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColorAdmin),"","")
if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(getStarColor(strRankColorAdmin),"","")

case else
Star_Level = "Error"
end select

getStar_Level = Star_Level
end function

you will need to edit the image sizes in inc_iconfiles.asp and then that should do it, unless i messed somthign up<
IWishToLearn
26 March 2008, 19:15


That worked for what I needed! Now I have one of the extra rank mods installed but I have 3 ranks using the same icon image - can I add more icons so I can have each rank having a separate image?<
Shaggy
27 March 2008, 04:27


No need to make any changes to the getMember_Level function, by the way, you can just change the titles for the ranks in your admin options.
<
Jezmeister
27 March 2008, 07:17


as all mad2kool did was what I suggested the rest of what I said works too wink
and then replace the star images with your belts

Just select different colours for each rank in the admin options and replace each of those star images with your own. I don't see why you'd need a different rank mod for that at least.<
IWishToLearn
27 March 2008, 12:51


I have 10 ranks and 7 images so I have 3 of the ranks using the same image. How can I add more images into the icons list so I can have 10 images?<
IWishToLearn
27 March 2008, 13:09


Wait, nm I found it :) Experimented with the Inc_iconfiles and the member rank configs and it worked :)<
© 2000-2021 Snitz™ Communications