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)
 Admin and Mod post name color
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bassman
Junior Member

Netherlands
256 Posts

Posted - 18 May 2006 :  08:25:18  Show Profile  Visit Bassman's Homepage  Reply with Quote
I was thinking of making the names from the admins and moderators in the posts on the left side red and green. After some hours of fiddling around with the following code I can use some help. It looks simple, just not a chance to make it happen.


	if lcase(strTopicNoWrapLeft) = "1" then Response.Write(" nowrap")
	Response.Write	">" & vbNewLine

if mlev = 4 then
	Response.Write			"                <p><b><span class=""postadminlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
end if
if mlev = 3 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
end if
if mlev = 2 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
end if
if mlev = 1 then
	Response.Write			"                <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""2""><b><span>" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b></font><br />" & VbNewLine
end if
	if strShowRank = 1 or strShowRank = 3 then


All of the first posts user names are in red...sins this is the admin (Mlev4) css code color. Can somebody please kick me in the right direction <

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 18 May 2006 :  08:32:04  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
In the "active users mod" the moderators and admin have different colors, maybe you can take a look at it?
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 18 May 2006 :  15:30:09  Show Profile  Reply with Quote
Bassman,

Your code does look simple and I would expect you to see them in red. Maybe something like this would work:
if Reply_MemberLevel = 4 then
	Response.Write			"                <p><b><span class=""postadminlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif Reply_MemberLevel = 3 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elsif Reply_MemberLevel = 2 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif Reply_MemberLevel = 1 then
	Response.Write			"                <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""2""><b><span>" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b></font><br />" & VbNewLine
end if
For the replies and this for the 1st post (can not give you the line numbers, but I am sure that you know how to find where).
if Member_Level = 4 then
	Response.Write			"                <p><b><span class=""postadminlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elsif Member_Level = 3 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif Member_Level = 2 then
	Response.Write			"                <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif Member_Level = 1 then
	Response.Write			"                <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""2""><b><span>" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b></font><br />" & VbNewLine
end if
I hope that points you in the right direction.

This is untested, but should work.
<

Cheers,

David Greening
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 19 May 2006 :  03:47:15  Show Profile  Visit Bassman's Homepage  Reply with Quote
Indeed the red part was the problem, thanks Classicmotorcycling that code works great It was the Reply_MemberLevel not just mlev

here the final version:

around line 750


if  Reply_MemberLevel = 3 then
	Response.Write					"    <p><b><span class=""postadminlink"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b><br />" & VbNewLine
elseif Reply_MemberLevel = 2 then
	Response.Write					"    <p><b><span class=""postmodlink"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b><br />" & VbNewLine
elseif Reply_MemberLevel = 1 then
	Response.Write					"    <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""2""><b><span>" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br />" & VbNewLine
end if


Around line 1040
if  	Member_Level = 3 then
	Response.Write				"   <p><b><span class=""postadminlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif 	Member_Level = 2 then
	Response.Write				"   <p><b><span class=""postmodlink"">" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b><br />" & VbNewLine
elseif 	Member_Level = 1 then
	Response.Write				"   <p><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""2""><b><span>" & profileLink(ChkString(Member_Name,"display"),TMember_ID) & "</span></b></font><br />" & VbNewLine
end if


Edit: delete line Reply_MemberLevel = 4, thanks Shaggy<

Edited by - Bassman on 19 May 2006 07:19:06
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 19 May 2006 :  03:54:34  Show Profile  Reply with Quote
No problems, glad I could help and point you in the right direction... Forgot to change the other items, but was in a hurry at 5:30am (Melbourne, Australia time) this morning before work to point you there...<

Cheers,

David Greening
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 19 May 2006 :  04:51:32  Show Profile  Visit Bassman's Homepage  Reply with Quote
I found them David, the direction was great <
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 May 2006 :  06:53:13  Show Profile  Reply with Quote
You can remove the first if statment from both those snippets David provided - M_LEVEL will only ever be between 1 & 3, never 4.

<

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

Bassman
Junior Member

Netherlands
256 Posts

Posted - 19 May 2006 :  07:20:56  Show Profile  Visit Bassman's Homepage  Reply with Quote
Woops...thanks Shaggy<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 May 2006 :  08:13:29  Show Profile  Reply with Quote
No worries.

<

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
  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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07