Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Different style ranking system for board
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

IWishToLearn
Starting Member

United States
24 Posts

Posted - 26 March 2008 :  16:26:51  Show Profile  Visit IWishToLearn's Homepage  Reply with Quote
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?<

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 26 March 2008 :  17:28:57  Show Profile  Visit Jezmeister's Homepage  Reply with Quote
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.<
Go to Top of Page

IWishToLearn
Starting Member

United States
24 Posts

Posted - 26 March 2008 :  18:23:49  Show Profile  Visit IWishToLearn's Homepage  Reply with Quote
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 26 March 2008 :  19:11:09  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
i havnt tested this, but this is what i came up with

just replace the getStar_Level function with this 1

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

Edited by - MaD2ko0l on 26 March 2008 19:12:08
Go to Top of Page

IWishToLearn
Starting Member

United States
24 Posts

Posted - 26 March 2008 :  19:15:11  Show Profile  Visit IWishToLearn's Homepage  Reply with Quote
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?<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 March 2008 :  04:27:35  Show Profile  Reply with Quote
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.”
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 27 March 2008 :  07:17:25  Show Profile  Visit Jezmeister's Homepage  Reply with Quote
as all mad2kool did was what I suggested the rest of what I said works too
quote:
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.<
Go to Top of Page

IWishToLearn
Starting Member

United States
24 Posts

Posted - 27 March 2008 :  12:51:21  Show Profile  Visit IWishToLearn's Homepage  Reply with Quote
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?<
Go to Top of Page

IWishToLearn
Starting Member

United States
24 Posts

Posted - 27 March 2008 :  13:09:13  Show Profile  Visit IWishToLearn's Homepage  Reply with Quote
Wait, nm I found it :) Experimented with the Inc_iconfiles and the member rank configs and it worked :)<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07