Author |
Topic  |
|
vmplanet
Junior Member
 
112 Posts |
Posted - 19 November 2003 : 10:06:06
|
I'm stuck i want to change my colors to the forumcolors and not the Default colors. I did a search and found some stuff. I did what it said and got half way. The links in the active users panel aren't changed. They are still white. I want them to be changed to blue the same color of the links used to show a forum name on the default page.
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 19 November 2003 : 15:02:08
|
What color have you set the Link Color, Visited Link Color, Active Link Color, and Hover Link Color to? Those will determine the color of the links in active_users.asp.
If you don't want to use the normal link-colors, you need to add a little code to the WhatPage-function (which will show the color you want, if I understood you correctly):
Locate the following lines in active_users.asp and add the code marked red:
function WhatPage(fScript, fQuery)
strPage = "<a href=""" & fScript
if trim(fQuery) <> "" then
strPage = strPage & "?" & fQuery
end if
strPage = strPage & """><span class=""spnMessageText"">"
Then at the end of the function:
strPage = strPage & "</span></a>"
if lcase(instr(fscript, "admin_")) > 0 Then
strPage = fLang(strLangMOD_Ls3kAU_01380)
end if
WhatPage = strPage
end function
|
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
vmplanet
Junior Member
 
112 Posts |
Posted - 19 November 2003 : 15:55:13
|
As you can see in the picture i have a dark green background. To make the texts visible in that background the text color is set to a light color. As it seems the Active user panel uses those colors to. I just want the active user panel to use the colors of inside the forum. Not like now the colors of the outside.
I did a search and found some stuff and i did those changes to mu active users. So now all the text is the same color. It uses now the:
strForumFontColor instead of the strDefaultFontColor
The link however still uses the color of the outside. I want it to use the color of the inside of the forum. But i can't find the place were to change this. |
 |
|
vmplanet
Junior Member
 
112 Posts |
Posted - 19 November 2003 : 15:57:07
|
ow and i tried what you said and it doesn't work... |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 19 November 2003 : 20:05:31
|
Which colors have you set to links inside forum and outside forum? The code I provided uses the same colors that is used for links inside the forum.
In any case, here is another method. Instead for <span class=""spnMessageText"">, use <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>, and change </span> with </font>
|
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
vmplanet
Junior Member
 
112 Posts |
Posted - 23 November 2003 : 12:48:34
|
doesn't change them... |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
|
vmplanet
Junior Member
 
112 Posts |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 27 November 2003 : 12:04:12
|
I've used your file for testing, and the following works for me on ie6 and mozilla 1.0.1
In active_users.asp, change the start of function WhatPage with the code below (new code is red):
function WhatPage(fScript, fQ)
fQuery = fQ
strPage = "<a href=""" & fScript
if trim(fQuery) <> "" then
strPage = strPage & "?" & fQuery
end if
strPage = strPage & """><span class=""blue"">"
and the end of said function:
strPage = strPage & "</span></a>"
if lcase(instr(fscript, "admin_")) > 0 Then
strPage = fLang(strLangMOD_Ls3kAU_01380)
end if
if strOnlineLocation <> "" then strPage = strOnlineLocation
WhatPage = strPage
end function
Then add the following line to your inc_header.asp, amongst the other style tags:
".blue {color: " & strForumFontColor & "}" & vbNewLine & _
Those changes worked for me, and I hope that they work for you too. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
Edited by - masterao on 27 November 2003 12:05:56 |
 |
|
vmplanet
Junior Member
 
112 Posts |
Posted - 30 November 2003 : 18:32:43
|
It worked! Thanks for your help!! |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
|
|
Topic  |
|