Categorys colors

Started by rua_velha, November 12, 2004, 01:38:50 PM

Previous topic - Next topic

rua_velha

Someone can helpe-me!!
How can I change de colors of the category.
thanks
rgds
rua_velha

Oldiesmann

Style.css look for ".catbg"
Michael Eshom
Christian Metal Fans

rua_velha

sorry,but waht I would like to change is the color of the bord an child boards  name
thanks
rgds
rua_velha

Oldiesmann

Easiest way to do it:

Themes/default/MessageIndex.template.php

Find
echo '</td>
<td align="left">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];


Replace
echo '</td>
<td align="left">
<b><a href="', $board['href'], '" name="b', $board['id'], '" style="color:colorname;">', $board['name'], '</a></b><br />
', $board['description'];


That will change the color of links for child boards in the message index. Is that what you wanted to do?
Michael Eshom
Christian Metal Fans

rua_velha

yes thks
but also for the bords.
thks
rua_velha

Oldiesmann

Oh... I see what you're saying...

Themes/default/BoardIndex.template.php

Find
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />

Replace
<b><a href="', $board['href'], '" name="b', $board['id'], '" style="color:yourcolor">', $board['name'], '</a></b><br />

Find
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}


Replace
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')" style="color:yourcolor">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}


Themes/default/MessageIndex.template.php

Find
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />

Replace
<b><a href="', $board['href'], '" name="b', $board['id'], '" style="color:yourcolor">', $board['name'], '</a></b><br />

Find
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}


Replace
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')" style="color:yourcolor">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
Michael Eshom
Christian Metal Fans

rua_velha

It Works.
thanks. ;D
rgds
rua_velha

Advertisement: