I'd try to play with this part of code at viewtopic.php
replace
- $sql = "SELECT p.poster_id, p.topic_id
- FROM " . POSTS_TABLE . " p
- WHERE p.topic_id = $topic_id
- AND p.poster_id = " . $userdata['user_id'];
with
- $SQL = "SELECT '1'
- FROM " . POSTS_TABLE . " p, " . THANKS_TABLE . " t
- WHERE (( p.topic_id = $topic_id
- AND p.poster_id = " . $userdata['user_id'] . " ) OR (
- t.topic_id = $topic_id AND t.user_id = " . $userdata['user_id'] . " ))";
But it isn't working on icy :S dunno why
on phpbb works :S