Insert the following code at line 177:
code:
$fimage = "{$palKeyword}.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="{$palTitle}" align="right" {$forumimagesize[3]}/>";
} else {
$forumimage = "";
}
Then change line 181 to this:
code:
echo "
<TR>
<TD ALIGN=LEFT VALIGN=TOP CLASS="$phclass[$i]" COLSPAN=2>$anchor
<a href="{$config[phpurl]}/postlist.php?Board=$palKeyword">$palTitle</a></TD>
</TR>
<TR>
<TD ALIGN=LEFT VALIGN=TOP CLASS="$ptclass[$i]">
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=2>
<TR>
<TD ALIGN=LEFT VALIGN=TOP WIDTH="100%" CLASS="$ptclass[$i]">{$forumimage}$userPic
<a href="{$config[phpurl]}/showflat.php?Board=$palKeyword&Number=$palNumber"><B>$palSubject</B></A>
$palStar$date$palUsername$attachment
<BR><BR>
$palBody$palPollInform
<P ALIGN=RIGHT>$NumReplies$readMore$makeReply$mailPost$printPost</P>
</TD>
</TR>
</TABLE>
";
It is the same as before, but with the $forumimage variable inserted and some added line breaks so that it won't get messed up in this post.