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)
 Highlight colors in Topic.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Gargoyle
Junior Member

USA
280 Posts

Posted - 19 October 2004 :  23:41:37  Show Profile  Visit Gargoyle's Homepage
I need some help getting the active users highlight colors to work in topic.asp as well. I would like all of the admins and moderators "usernames" highlighted like they are in the active user page but when I go to do it they ALL highlight.

I have seen this before but I don't remember where.

Thanks for any help.

Here is a link to my Snitz powered Drag Racing site.

Etymon
Advanced Member

United States
2385 Posts

Posted - 20 October 2004 :  01:46:18  Show Profile  Visit Etymon's Homepage
Not sure without seeing where in the code you want this, but anytime you want something to apply only to moderators you can use this:


if mlev = 3 then
Your feature(s) for the moderator(s) will go here
end if



and for the admins you can use this:


if mlev = 4 then
Your feature(s) for the admin(s) will go here
end if


------------------------------------

Etymon
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 20 October 2004 :  18:30:32  Show Profile  Visit Gargoyle's Homepage
Well in topic.asp that would result in changing everyone's name to whatever your member level highlight color color is. So if you where an admin it would highlight everyone's name in the admin highlight color because the admin level is 4 so that would be the only line it would read.

I need something that will chnage the color based on the username used in each post but I can;t put my finger on how to get it to work.

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 21 October 2004 :  22:09:50  Show Profile  Visit Etymon's Homepage
How about the Points MOD that can add what the author calls "glowing username" to the member's name, however, the member gets to choose the color? Maybe you can get into the code and make it work for your needs.

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=141

Etymon

Edited by - Etymon on 21 October 2004 22:12:42
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 22 October 2004 :  09:13:39  Show Profile
quote:
Originally posted by Gargoyle

I need something that will chnage the color based on the username used in each post but I can;t put my finger on how to get it to work.



I think this will help you.
The variables are "Member_Level" for the topic and "Reply_MemberLevel" for the replies. You will need to assign the colors after they are defined .

In topic.asp
Find this code
rsTopic.close
set rsTopic = nothing

After that add this
if Member_Level = 3 then
        topicAUColor = strAUAdminColor
elseif Member_Level = 2 then 
        topicAUColor = strAUModColor
else
        topicAUColor = strDefaultFontColor
end if

Find this code
			if CanShowSignature = 1 then
				Reply_MemberSig = trim(arrReplyData(rM_SIG, iForum))
			end if

After that add this
if Reply_MemberLevel = 3 then
        replyAUColor = strAUAdminColor
elseif Reply_MemberLevel = 2 then 
        replyAUColor = strAUModColor
else
        replyAUColor = strDefaultFontColor
end if


Then <font color=""" & topicAUColor & """> in sub GetFirst() and <font color=""" & replyAUColor & """> for replies.

Hope this helps .

    _-/Cripto9t\-_
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 22 October 2004 :  19:50:35  Show Profile  Visit Gargoyle's Homepage
Thanks Cripto9t !! That works but I have to remove the profile link coding to get it to show. FOr some reason the "profilelink" code prevents the font from changing. I don't see why because there are no font colors set in that function.

I take the profilelink comments back. Its the spnMessageText that is doing it.

Thanks a ton this at least gets me started!

Here is a link to my Snitz powered Drag Racing site.

Edited by - Gargoyle on 22 October 2004 22:20:10
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 23 October 2004 :  07:49:51  Show Profile
Ooops! I didn't even think about them being links .

    _-/Cripto9t\-_
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 23 October 2004 :  08:37:16  Show Profile
I have a solution if you haven't found one yet Tested this time.

I had this in a forum that I converted most of the html tags to css. Just add it in the <style> in "inc_hader.asp".
Note: I didn't include the "text-decoration" for hover, active and visited because I use the same for all. You will have to write them out like "spnMessageText" if you need them.

"/* Active users table */ " & _
                ".aulink a:link, .aulink a:visited, .aulink a:hover, .aulink a:active {color:" & strDefaultFontColor & "; " & _
                                 "text-decoration:" & strForumLinkTextDecoration & "; " & _
                                 "} " & _
                ".aumodlink a:link, .aumodlink a:visited, .aumodlink a:hover, .aumodlink a:active {color:" & strAUModColor & "; " & _
                                 "text-decoration:" & strForumLinkTextDecoration & "; " & _
                                 "} " & _
                ".auadminlink a:link, .auadminlink a:visited, .auadminlink a:hover, .auadminlink a:active {color:" & strAUAdminColor & "; " & _
                                 "text-decoration:" & strForumLinkTextDecoration & "; " & _
                                 "} " & _
                "/* End Active User CSS */ " & _


And then change the coding a little in "topic.asp".
if Member_Level = 3 then
        topicAUColor = "auadminlink"  '## Don't forget the parenthesis around the text
elseif Member_Level = 2 then 
        topicAUColor = "aumodlink"
else
        topicAUColor = "aulink"  '## Or "spnMessageText" if you want.
end if

Do the same for replies.

Then
<span class=""" & topicAUColor & """>

or
<span class=""" & replyAUColor & """>


    _-/Cripto9t\-_

Edited by - cripto9t on 23 October 2004 08:42:01
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 23 October 2004 :  15:27:04  Show Profile  Visit Gargoyle's Homepage
I'm killing myself right now but I think I am close. I can get the topics to work perfectly but the darn replies...... Oh the replies...... Thanks for the code! After I take a break to let my mind rest I'm gonna try it.

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 23 October 2004 :  16:29:55  Show Profile
One other thing You might be interested in.
This checks for the forum moderators instead of all mods.

if Member_Level = 3 then
        topicAUColor = "auadminlink"  '## Don't forget the parenthesis around the text
elseif chkForumModerator(Forum_ID, chkString(Member_Name,"decode")) = "1" then 
        topicAUColor = "aumodlink"
else
        topicAUColor = "aulink"  '## Or "spnMessageText" if you want.
end if

    _-/Cripto9t\-_
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 23 October 2004 :  20:42:29  Show Profile  Visit Gargoyle's Homepage
Ya know what cripto9t ?? You are pretty good at this coding stuff But you probably already knew that didn't you. I got the other code working GREAT!! Thanks a ton for sharing your skills and code with me. I don't know that I could have done it without your help.

I will look into adding your moderator check code also. I think it may prove useful.

Once again thanks a lot!!

Here is a link to my Snitz powered Drag Racing site.
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07