Or at least I hope so. =] Seems that I screwed up the lines in my last post, so here comes a new and improved version that should work.
In ubbthreads.tmpl, after this line:
code:
<!-- for($f=0;$f<$forumsize[$c];$f++) { //UBBTREMARK -->
Add the following:
code:
$fimage = "{$forum[$c][$f]['Keyword']}.gif";
if (!is_readable("{$config['imagepath']}/$fimage")) {
if (is_readable("{$config['imagepath']}/board.gif")) {
$fimage = "board.gif";
} else {
$fimage = "";
}
}
if ($fimage) {
$forumimagesize = getimagesize ("{$config['imagepath']}/$fimage");
$forumimage = "<img src="{$config['images']}/{$fimage}" alt="{$forum[$c][$f]['Title']}" align="left" {$forumimagesize[3]} />";
} else {
$forumimage = "";
}
And change this line:
code:
{$forum[$c][$f]['Description']}
to this:
code:
{$forumimage}{$forum[$c][$f]['Description']}
This new version also checks for the size of the default picture board.gif and if neither the forum specific gif or the default one exists, no image tag is printed.