PDA

View Full Version : Text color problem



SloppyGoat
Sun 26th May '02, 2:45pm
How can I change my table heading text color on the main page without changing all small font colors? See my predicament here....



I want the font black like the rest of the forums...like this...



Is there a template I can modify to change only the font there and the currently online/PM text? Why it doesn't follow suit with the other cat fonts, I can't even begin to guess. :confused: That should be a global setting, IMO.

Steve Machol
Sun 26th May '02, 2:53pm
The 'Table Heading Text Color' is a separate setting. Just set it to whatever you want.

SloppyGoat
Sun 26th May '02, 3:18pm
That only seems to change the text within the forums, not on the main page. It's set to black now. The main page is set by the small font color, or that's the only way I can get it to change. But then it changes all small text color....which screws me on everything else.

Steve Machol
Sun 26th May '02, 3:29pm
I don't understand. That setting changes the text color of ALL of the table headings - regasrdless of whether they are on the forum home page or forum display page. That's certainly how it works on my forums. Where are you changing this setting?

SloppyGoat
Sun 26th May '02, 3:49pm
In vB CP options/modify styles. See....black. :confused:

Now, if I change the small font color, then it changes...like I said above. :(

Try this, go to the Color Scheme Machine (http://www.activescore.com/vb/) and choose the default. Then change the small font color. You'll see what I mean. Likewise, if you change the small font color, you'll see the home page table heading color change. Is it a bug?

Steve Machol
Sun 26th May '02, 3:59pm
It should be black then, unless you edited the forumhome template or are looking at the wrong style:


"<smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont>The answer is no, this isn't a bug.

SloppyGoat
Sun 26th May '02, 4:03pm
Nope, I haven't edited anything to do with that. Here's what I got though. I assume I can just change something here to make it follow the table heading color instead of small font?

bgcolor="{tableheadbgcolor}"><smallfont>&nbsp;</smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="80%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" nowrap><smallfont color="{tableheadtextcolor}"><b>Last Post</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><b>Moderator</b></smallfont></td>

Steve Machol
Sun 26th May '02, 4:06pm
That doesn't make any sense. The only thing I can think of tis that your are looking at the wrong template set. If you're sure it's correct, fill out a support ticket at:

http://www.vbulletin.com/members/support.php

Be sure to include the login info to your Admin CP and FTP.

Steve Machol
Sun 26th May '02, 4:08pm
Oh, I forgot to answer your last question. To change the color all you need to do is edit the color attribute to whatever you want.

SloppyGoat
Sun 26th May '02, 4:08pm
As you can see, the Color Scheme Machine works the same.

Is this the line I'd need to change?

<smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>

Steve Machol
Sun 26th May '02, 4:11pm
Not sure about the Color Scheme Machine. I haven't checked this

Yes, just change "{tableheadtextcolor}" to "#000000" or whatever you want. Basic HTML.

SloppyGoat
Sun 26th May '02, 4:13pm
Ok, thanks. That wasn't supposed to say "#EEEEFF", though. For some reason, when I edited, it changed from "{tableheadtextcolor}".
I'll give it a shot.:)

Steve Machol
Sun 26th May '02, 4:14pm
Yeah, this forum is parsing the vB variables. I needed to put a fix in so it would at least display right.

SloppyGoat
Sun 26th May '02, 4:19pm
Nope, that didn't do it. :( It's the one in the "forum" line, right? Or should be?

Steve Machol
Sun 26th May '02, 4:22pm
We'll need to see your Admin CP to troubleshoot this. Fill out a support ticket at:

http://www.vbulletin.com/members/support.php

Be sure to include the login info to your Admin CP and FTP.

SloppyGoat
Sun 26th May '02, 4:26pm
Actually, I've noticed it's that way on top of the sub forums too.

These are even on the same page! :confused:

Steve Machol
Sun 26th May '02, 4:30pm
I just realized something. Did you put a color in the 'Small Font: color' box? If so, then this will override all your other settings. Either remove this setting, or change the template so it doesn't use 'smallfont' and is set to the variables of your choice.

SloppyGoat
Sun 26th May '02, 4:37pm
Yes, I did set my own small font color. So where is this variable? And why is it linked to the top portion of my header fonts? If I could figure out where to find these variables, I could just make it match the header variable that works, correct?

Steve Machol
Sun 26th May '02, 4:42pm
Originally posted by SloppyGoat
Yes, I did set my own small font color. So where is this variable?Uh, the same place you set it - in the Styles [fonts/colors/etc] section.


And why is it linked to the top portion of my header fonts? If I could figure out where to find these variables, I could just make it match the header variable that works, correct? I'm not sure what you mean by 'linked to the top portion of my header fonts'. As I said, as long as you set the 'Small Font: color' varible this will overide any individual 'smallfont' settings that are in the templates. Either remove this setting, or modify the template to change 'smallfont' to 'font' and use whatever variable you want (size, color, etc.)

SloppyGoat
Sun 26th May '02, 4:49pm
Ok, now I'm all confused. If I remove my small font color in Styles [fonts/colors/etc] section, then I can't choose my small font color! That's not what I'm after, I don't think. I'm happy with my small font color, I just need to separate it from the top header font color somehow. I guess I mean, where is the code in the template that links (or assigns) the small font color to the header fonts?



I'm not sure what you mean by 'linked to the top portion of my header fonts'. As I said, as long as you set the 'Small Font: color' varible this will overide any individual 'smallfont' settings that are in the templates. Either remove this setting, or modify the template to change 'smallfont' to 'font' and use whatever variable you want (size, color, etc.)

What I mean is, the only way I can change the top header font color is with the small font color. Where are you talking about changing it? I can't seem to find it, or I'm looking right at it and just don't know. :(

SloppyGoat
Sun 26th May '02, 4:57pm
Ok, I think I found out why. Look at the source html...



<td bgcolor="#656775" width="80%" align="left"><font face="verdana,arial,helvetica" size="1" color="#778899" color="#000000"><b>Forum</b></font></td>

There are two color assignments there! If I remove one, then it shows the way I want. But in the template, it doesn't look that way. Why are there two colors there? That's what's causing the prob.

Ok, I getcha now. If I remove "small" from the smallfont tag, then the color changes. I just need to assign the font type now. ;) Those fonts shouldn't be overridden by small font color, though, IMO.

Steve Machol
Sun 26th May '02, 5:00pm
I have no setting in my 'Small Font: color' and the colors work just fine on my forums. They use whatever the templates say to use. If it's the table heading text, they use that color. If it's the category font color they use that. Otherwise if no specific color is specified, they default to the main font text color as set in the <body> tag.

If you don't want to delete this setting, then you will need to manually modify the templates and change

'<smallfont color =......'
to
'<font color=...........'

...........wherever you want the color to change.

SloppyGoat
Sun 26th May '02, 5:05pm
Yep, thanks! I just figured that out before you hit submit. LOL

Ok, now that that's solved. How can I go about changing the Currently Online and PM visited link color only? They have the same problem.

Ruh roh! It's still the same on the top of every other page. Damn! Which other templates do I have to modify to change those?

Nevermind! I found it! I'm not a complete moron or anything. Hehe ;) :D

Now to find the PM and Online links. :)

{edit again}

Those were easy enough to find. Thanks for your help, Steve. :) It's the little things that make a board look nice. :cool:

SloppyGoat
Sun 26th May '02, 6:07pm
One last thing I can't seem to fix. How do I set the color for the "All times are GMT -6 hours. The time now is 04:05 PM." line?
I found the template, but it doesn't seem to take regular html font tags well. As a matter of fact, there is not font tag in the template.

[edit]
Ok, if anyone ever wants to know, just don't close the font tag. ;)

Steve Machol
Sun 26th May '02, 6:48pm
For what it's worth, this is the section of the default forumhome template that controls this:


<!-- timezone/login-->
<table cellpadding="2" cellspacing="0" border="0" width="{ contenttablewidth}" { tableinvisibleextra} align="center">
<tr valign="top">
<td><smallfont>$timezone</smallfont></td>
<td align="right">$logincode</td>
</tr>
</table>
<!-- /timezone/login -->As you can see in the default template this is defined by the <smallfont>.

SloppyGoat
Sun 26th May '02, 6:54pm
Hmmmm, what worked for me was adding "<font color=#000000" to the timezone template. I had to leave the tag open though....strange.

Man, I'm finding more and more things that this smallfont overrides. That's just not right. I'm having to go through and edit all kinds of templates just because I want to specify my small font color? Doesn't everyone specify theirs???

I think vB should add one more font color to handle all of these. Either that, or make them coincide with the header font color, instead of smallfont.

Steve Machol
Sun 26th May '02, 7:01pm
As I said - I don't. And I've never had a problem getting the colors I wanted.

SloppyGoat
Sun 26th May '02, 7:03pm
So what happens if you don't? It defaults to white or something? :rolleyes: That just won't do. :p

Yep, it actually defaults to black, which is near invisible on a dark background. :(

All this....

"Members: 124, Threads: 1,173, Posts: 11,119
Welcome to our newest member,"

....text would be black, which, if you view my forum, would be a real problem on my background.

Steve Machol
Sun 26th May '02, 7:20pm
Please reread my earlier message. I already explained how the color works for smallfont.

SloppyGoat
Sun 26th May '02, 7:25pm
Yes, I know. My point is, though.....none of those headers should've ever had smallfont tags. If they'd all just had regular font tags, they'd all change according to what the header font color is set to...instead of following suit with smallfonts. I'm not trying to be too critical, but it's something they should change in future versions, IMO. ;)

I'm just saying....they should never be lumped together like that, whether you specify colors or not. Header fonts have nothing to do with the rest of the text, IMO. Especially since they don't even share the same background color, most of the time.

Sorry if it sounds like I'm nitpicking..... :D