<thead> <tr> <th width="32%"><?php echo JText::_('COM_KUNENA_USERPROFILE_TOPICS'); ?> </th> <th></th> <th width="18%"><?php echo JText::_('COM_KUNENA_USRL_THANKYOUS'); ?> </th> </tr> </thead> <tbody> <?php $KUNENA_top_posts = KunenaThankYou::getTopThankYouTopics(); foreach ($KUNENA_top_posts as $KUNENA_post) { if ($KUNENA_post->countid == $KUNENA_top_posts[0]->countid) { $barwidth = 100; } else { $barwidth = round($KUNENA_post->countid * 100 / $KUNENA_top_posts[0]->countid); } $link = KUNENA_LIVEURL . '&func=view&id=' . $KUNENA_post->postid . '&catid=' . $KUNENA_post->catid; ?> <tr> <td ><a href="<?php echo $link; ?> "><?php echo $KUNENA_post->subject; ?>