How do I add an image next to each child forum to raise noticability?

Started by Rockboy, May 18, 2005, 03:04:17 PM

Previous topic - Next topic

Rockboy

Hi,
My SMF is at http://kutlessrocks.com/board2 .  I would like to change the way that the names of the child boards are formatted (I see that they are bold and italicized at this board) and possibly add an image in front of the name of each child forum.  How can I do that?

Gemmie

I would like to know this as well, only I would like to add an image next to the category name. 

Thanks

Jerry

Quote from: Gemmie on May 18, 2005, 11:15:21 PM
I would like to know this as well, only I would like to add an image next to the category name. 

Thanks
kind of like this? http://www.simplemachines.org/community/index.php?topic=36349.0

that could easily work for child boards :) just some changes.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."


Jerry

adding an image in front of the child board is just as easy as that one.
in BoardIndex.template.php:
Find:
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

and replace with something like:
$child['link'] = '<img src="', $settings['images_url'], '/boards/child_' . $child['id'] . '.gif" border="0" alt=" " /><a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
that will look for a image in your themes images folder like /images/boards/child_ID.gif where ID is the actual id of that forum.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Advertisement: