youve got something wacky going on with your code.
Your attachment fetching means that you are doing the same thing twice. I am not sure why you would have 2 almost identical blocks of code to fetch attachments (I am assuming its from an upgrade or other hack you have done) however it is causing you and additional query per showthread. CHeck against a new showthread to note the difference.
As for the postbits section of code:
If I remember right - you need to search for:
$template = 'postbit';
}
$postbits .= construct_postbit($post, $template);
which means that only the first block would come up with a match - so thats the one you want to replace.
HTHs
|