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)
 Pictures! No stars!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shaman
Starting Member

4 Posts

Posted - 14 October 2003 :  22:40:58  Show Profile
Hi guys! I'm Shaman!
I have a question about the ranking system of the forum.
I don't like the default ranking system using the stars.

I'd like to have a ranking system associating the rank with an image file, different for each rank, without using the stars.
Here's an example: http://www.srdb.net/forum/topic.asp?TOPIC_ID=180&FORUM_ID=21&CAT_ID=5&Topic_Title=Injecting+new+life+into+the+forums&Forum_Title=Announcements
I know that I've to modify one ASP files, but I don't know what file and what specific line.
Could you help me?
Thanks a lot!

laser
Advanced Member

Australia
3859 Posts

Posted - 14 October 2003 :  23:25:38  Show Profile
Look in the inc_func_member.asp file, the getStar_Level function will be pretty close.
Go to Top of Page

Shaman
Starting Member

4 Posts

Posted - 15 October 2003 :  00:09:58  Show Profile
quote:
Originally posted by laser

Look in the inc_func_member.asp file, the getStar_Level function will be pretty close.


Thanks man!
But I need thorough informations!
I know I have to modify one of these .ASP files, but I don't know which file and what is the new code I have to overwrite.
Anyone who knows this code?
Thanks guys

Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 15 October 2003 :  00:54:36  Show Profile
OK, so I'm going to assume that you are still using the 5 levels of user ranking, and you want the same image regardless whether member, author, moderator or admin.

1. You need to edit inc_iconfiles.asp. At the end of all the Const statements, add the definitions of your images like this :

Const <unique_icon_name> = "<img file name>|<img width>|<img height>"

following the existing statements as a guide.

2. You need to edit inc_func_member.asp. Locate the getStar_Level function and change it like this :


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(<lvl1 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(<lvl2 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(<lvl3 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl4 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl5 img Const name>,"","")
		case "2" 
			if fM_POSTS < cLng(intRankLevel1) then Star_Level = ""
			if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Star_Level = getCurrentIcon(<lvl1 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(<lvl2 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(<lvl3 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl4 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl5 img Const name>,"","")
		case "3" 
			if (fM_POSTS < cLng(intRankLevel1)) then Star_Level = ""
			if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Star_Level = getCurrentIcon(<lvl1 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Star_Level = getCurrentIcon(<lvl2 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Star_Level = getCurrentIcon(<lvl3 img Const name>,"","")
			if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl4 img Const name>,"","")			if (fM_POSTS >= cLng(intRankLevel5)) then Star_Level = getCurrentIcon(<lvl5 img Const name>,"","")
		case else  
			Star_Level = "Error"
	end select

	getStar_Level = Star_Level
end function


Obviously you need to change all the <lvl1 img Const name> references, to whatever you defined in inc_iconfiles.asp but that should get you there
Go to Top of Page

Shaman
Starting Member

4 Posts

Posted - 15 October 2003 :  02:06:30  Show Profile
quote:
Originally posted by laser

OK, so I'm going to assume that you are still using the 5 levels of user ranking, and you want the same image regardless whether member, author, moderator or admin.

Obviously you need to change all the <lvl1 img Const name> references, to whatever you defined in inc_iconfiles.asp but that should get you there


Not properly, I'm using 15 levels, I'm using also the Admin, Moderator and Members levels.
The only thing I wanna do is, for example:

Rank 1 -----> Old method= 1 star --> New method= dog_picture.jpg
Rank 2 -----> Old method= 2 stars --> New method= cat_picture.jpg
thru
Rank 15 ----> Old method= 15 stars ---> New method= fish_picture.jpg

Admin Rank ----> Old method= different color stars
----> New method= such&such_picture.jpg

Moderator Rank ----> Old method= different color stars
----> New method= another_picture.jpg

I will try the last suggestion you did, tomorrow I'll advise you about progresses! Now here in Florida it's late (a little time difference between Australia) so I'll try out it in the next seven-eight hours.
Thanks!
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 15 October 2003 :  02:20:12  Show Profile
No probs, 15 levels will mean that your Case "1" will look a little different (longer) and with your Admin & Mod settings won't have all the IFs
Go to Top of Page

Shaman
Starting Member

4 Posts

Posted - 15 October 2003 :  12:41:41  Show Profile
My forum version is 3.3.04 PLATINUM, not the 2000 version!
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 15 October 2003 :  12:54:53  Show Profile
There is no platinum version, neither is there a 2000 version. If you say you're using 3.3.04, the function for the stars might be different than that used in the current version (3.4.03).
If I have time in a bit, I'll download 3.3.04 and take a look, if nobody else has helped you by then, but I'm sure someone will jump in :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07