2006-01-20, 12:57 AM
Hey guys,
I've ran into a lot of trouble here.
This is all I wanted to change on MyBB: I didn't like how all of the links followed the same color on the forum for the 'alternating table 1' and '2'. Like, all I wanted to change was the color of the forum link and leave any other linkable things according to the 'alternating table 1' and '2' settings.
Kind of like this:
This is how it currently looks. All of the links are the same color (as specified in 'alternating table 1' and '2' in the CSS).
This is how I want it to be:
All of the links are still the same color as thee above, EXCEPT for the link to the forum one. That link has its own color (#FFA500 to be exact).
Anyways, in order to accomplish the link color in the forum name as I wanted, I added this extra bit to the CSS:
Now, the next thing I did for the 'forum-link-only color change' to take effect was go into the template coding and add the obviously-needed: <div id="forumlink"></div> where applicable.
Well, here's what I did - this is what forumbit_depth2_forum looks like:
Well, for some reason that keeps carrying on down through the whole alternating table (see below):
I only want the forum's name to change to the colors as specified in my 'forumlink' CSS. I do not want the subforum links, nor any other links appearing in the 'alternating #' tables to be of the 'forumlink' CSS.
I just want the forum's name to change color. Finito. That simple. Yet the whole 'div id="forumlink"' in the forum link carries on through the whole alternating table.
I know my post was very long for a rather simple problem that I am encountering right now. But if I could get any help here, it would be greatly appreciated.
Thank you,
Andy
I've ran into a lot of trouble here.
This is all I wanted to change on MyBB: I didn't like how all of the links followed the same color on the forum for the 'alternating table 1' and '2'. Like, all I wanted to change was the color of the forum link and leave any other linkable things according to the 'alternating table 1' and '2' settings.
Kind of like this:
This is how it currently looks. All of the links are the same color (as specified in 'alternating table 1' and '2' in the CSS).
This is how I want it to be:
All of the links are still the same color as thee above, EXCEPT for the link to the forum one. That link has its own color (#FFA500 to be exact).
Anyways, in order to accomplish the link color in the forum name as I wanted, I added this extra bit to the CSS:
#forumlink
{
color: #FFA500;
}
#forumlink a:link
{
color: #FFA500;
text-decoration: none;
}
#forumlink a:visited
{
color: #FFA500;
text-decoration: none;
}
#forumlink a:active
{
color: #FFA500;
text-decoration: underline;
}
#forumlink a:hover
{
color: #BFBFBF;
text-decoration: underline;
}
I've already gone through the process of validating the CSS, so it should be 100% right on.Now, the next thing I did for the 'forum-link-only color change' to take effect was go into the template coding and add the obviously-needed: <div id="forumlink"></div> where applicable.
Well, here's what I did - this is what forumbit_depth2_forum looks like:
<tr>
<td class="$bgcolor" align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
<td class="$bgcolor" valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]" id="forumlink">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist$subforums</div>
</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>
Notice the: <a href="forumdisplay.php?fid=$forum[fid]" id="forumlink">$forum[name]</a>Well, for some reason that keeps carrying on down through the whole alternating table (see below):
I only want the forum's name to change to the colors as specified in my 'forumlink' CSS. I do not want the subforum links, nor any other links appearing in the 'alternating #' tables to be of the 'forumlink' CSS.
I just want the forum's name to change color. Finito. That simple. Yet the whole 'div id="forumlink"' in the forum link carries on through the whole alternating table.
I know my post was very long for a rather simple problem that I am encountering right now. But if I could get any help here, it would be greatly appreciated.
Thank you,
Andy