The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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?<
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?<
نوشته شده در
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.<
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.<
نوشته شده در
نوشته شده در
i havnt tested this, but this is what i came up with
just replace the getStar_Level function with this 1
you will need to edit the image sizes in inc_iconfiles.asp and then that should do it, unless i messed somthign up<
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 functionyou 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
آخرین ویرایش توسط
نوشته شده در
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?<
نوشته شده در
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.”
<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
as all mad2kool did was what I suggested the rest of what I said works too
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.<
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.<
نوشته شده در
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?<
نوشته شده در
Wait, nm I found it :) Experimented with the Inc_iconfiles and the member rank configs and it worked :)<
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...