Different style ranking system for board - نوشته شده در (1168 Views)
Starting Member
IWishToLearn
مطلب: 24
24
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?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Senior Member
Jezmeister
مطلب: 1141
1141
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.<
نوشته شده در
Starting Member
IWishToLearn
مطلب: 24
24
نوشته شده در
Senior Member
MaD2ko0l
مطلب: 1053
1053
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<
© 1999-2010 MaD2ko0l
نوشته شده در
Starting Member
IWishToLearn
مطلب: 24
24
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?<
نوشته شده در
Support Moderator
Shaggy
مطلب: 6780
6780
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.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
Senior Member
Jezmeister
مطلب: 1141
1141
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.<
نوشته شده در
Starting Member
IWishToLearn
مطلب: 24
24
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?<
نوشته شده در
Starting Member
IWishToLearn
مطلب: 24
24
Wait, nm I found it :) Experimented with the Inc_iconfiles and the member rank configs and it worked :)<
 
شما باید یک متن وارد کنید