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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Code visible/invisible in ranking modifications
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Riccardo
New Member

86 Posts

Posted - 26 September 2005 :  12:49:18  Show Profile
Hi all.
I encounter this kind of error when i modify the name of members.
For example i change the color of Administrator adding this code <font color="red">Administrator</font> in the Ranking Option in Admin page

The fact is that: the registered users view that:Administrator

but the unregisterde view that: <font color="red">Administrator</font id="red">
note the new part of code in green.

I've Ranks Mod http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=46874

anybody?

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 26 September 2005 13:19:16

Riccardo
New Member

86 Posts

Posted - 27 September 2005 :  05:36:10  Show Profile
anybody??

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 27 September 2005 :  06:48:50  Show Profile  Visit MarcelG's Homepage
The GetMemberLevel function in inc_func_member.asp is passed through the CheckString function:
ChkString(getMember_Level(Reply_MemberTitle, Reply_MemberLevel, Reply_MemberPosts),"display")

In other words, HTML will be stripped.
Why this is not happening with registered users is a mystery to me...Have you modified more than this?

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 27 September 2005 :  07:19:58  Show Profile
I've installed Ranks Mod..maybe something in that code doesn't work properly..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 27 September 2005 :  08:29:52  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
You could modify the code so you can use Forum Code to format (ie. use colors) the Member Titles.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 27 September 2005 :  14:35:33  Show Profile
Well,
i worked on the code instead of writing html in the Admin Rankgin Option. The example is the code written in red. I've tested it but i'm not sure to be right. Infact i don't know if "strRankLevel0" is STARTING LEVEL in ranks and "strRankLevel1" is the second etc..Am I right?
In the example you find "starting level", "first level" but my porpose is to add colour and breaking rulers and additional nicks..


function getMember_Level(fM_TITLE, fM_LEVEL, fM_POSTS)
dim Member_Level

Member_Level = ""
if Trim(fM_TITLE) <> "" then
Member_Level = fM_TITLE
else
select case fM_LEVEL
case "1"
if (fM_POSTS <cLng(intRankLevel1))then Member_Level = Member_Level & strRankLevel0 &"<br>" &"Starting level"
if (fM_POSTS >= cLng(intRankLevel1)) and (fM_POSTS < cLng(intRankLevel2)) then Member_Level = Member_Level & strRankLevel1 &"<br>" &"First level"
if (fM_POSTS >= cLng(intRankLevel2)) and (fM_POSTS < cLng(intRankLevel3)) then Member_Level = Member_Level & strRankLevel2
if (fM_POSTS >= cLng(intRankLevel3)) and (fM_POSTS < cLng(intRankLevel4)) then Member_Level = Member_Level & strRankLevel3
if (fM_POSTS >= cLng(intRankLevel4)) and (fM_POSTS < cLng(intRankLevel5)) then Member_Level = Member_Level & strRankLevel4
if (fM_POSTS >= cLng(intRankLevel5)) then Member_Level = Member_Level & strRankLevel5
case "2"
Member_Level = Member_Level & strRankMod
case "3"
Member_Level = Member_Level & strRankAdmin
case else
Member_Level = Member_Level & "Error"
end select
end if

getMember_Level = Member_Level
end function

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 27 September 2005 14:38:34
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 27 September 2005 :  14:40:04  Show Profile
Tested with &"<br>" but the code remain visible..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

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