Seems I didn't think it through. My suggestion was basicly a version of another hack I have where a include file is inserted on the first page of a forum (with some extra forum info) and I thought that since I didn't do a php include I wouldn't need to check if the file existed. But of course there would be a broken link if it isn't there. It is of course possible to have an image of size 1x1 with transparent background as well, but checking for it is probably better.
The following php code might work, though it hasn't been tested:
code:
if (is_readable("{$config['images']}/{$forum[$c][$f]['Keyword']}.gif")) {
$forumimagesize = getimagesize("$config['images']}/{$forum[$c][$f]['Keyword']}.gif");
print "<img src="{$config['images']}/{$forum[$c][$f]['Keyword']}.gif" alt="{$forum[$c][$f]['Title']}" align="left" {$forumimagesize[3]}>";
}
In the template it should be enclosed with html comments like this: <!-- code here //UBBTREMARK -->
Possibly on every line, not sure about that since I haven't done so much template editing yet.