Author |
Topic  |
|
Shaman
Starting Member
4 Posts |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 14 October 2003 : 23:25:38
|
Look in the inc_func_member.asp file, the getStar_Level function will be pretty close. |
 |
|
Shaman
Starting Member
4 Posts |
Posted - 15 October 2003 : 00:09:58
|
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
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 15 October 2003 : 00:54:36
|
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  |
 |
|
Shaman
Starting Member
4 Posts |
Posted - 15 October 2003 : 02:06:30
|
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! |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 15 October 2003 : 02:20:12
|
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 |
 |
|
Shaman
Starting Member
4 Posts |
Posted - 15 October 2003 : 12:41:41
|
My forum version is 3.3.04 PLATINUM, not the 2000 version!   |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 15 October 2003 : 12:54:53
|
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 :) |
 |
|
|
Topic  |
|
|
|