News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Category names as links

Started by Beaman, March 30, 2004, 05:37:25 PM

Previous topic - Next topic

Beaman

I want to separate the colors of the categories themselves. I want the board text black and the category names in white. I don't wish for the actual cat name to be linked for collapse/uncollapse, just the icon gif. Can someone tell me how to go about this? I'm sure it can be done in boardindex, but I'm not good at php so I'm not sure what to remove or change.

eg.          <a', $category['can_collapse'] ? ' href="' . $scripturl . '?action=collapse;c=' . $category['id'] . ';sa=' . ($category['is_collapsed'] ? 'expand' : 'collapse;') . '#' . $category['id'] . '"' : '', ' name="', $category['id'], '">', $category['can_collapse'] ? '<img src="' . $settings['images_url'] . '/' . ($category['is_collapsed'] ? 'expand.gif" alt="+' : 'collapse.gif" alt="-') . '" border="0" /> ' : '', $category['name'], '</a>

When the day comes that my internet connection fails, is the day I return back to reality. *Ewww*

[Unknown]

Change it to:

', $category['can_collapse'] ? '<a' . ($category['can_collapse'] ? ' href="' . $scripturl . '?action=collapse;c=' . $category['id'] . ';sa=' . ($category['is_collapsed'] ? 'expand' : 'collapse;') . '#' . $category['id'] . '"' : '') . '><img src="' . $settings['images_url'] . '/' . ($category['is_collapsed'] ? 'expand.gif" alt="+' : 'collapse.gif" alt="-') . '" border="0" /></a> ' : '', '<a style="color: your color;" name="', $category['id'], '">', $category['name'], '</a>

-[Unknown]

Beaman

When the day comes that my internet connection fails, is the day I return back to reality. *Ewww*

Advertisement: