Hi

Here is the code they use.
// START MODIF ALPHAUSERPOINTS : Insert AlphaUserPoints rules
// ****************************************************************************
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
// construct link to display link in activity
$aup_linktotopic = "index.php?option=com_kunena&func=view&catid=$catid&id=$pid";
$referencetopic = "<a href=\"" . JRoute::_($aup_linktotopic) . "\">" . $subject . "</a>";
if ( $thread == 0 )
{
// FIRST RULE : rule for post a new topic
AlphaUserPointsHelper::newpoints( 'plgaup_newtopic_kunena', '', $pid, $referencetopic );
}
else
{ // optional : limit assign points only if message > 80 characters
if ( strlen($message)>80 ) {
// SECOND RULE : rule for post a reply to a topic
AlphaUserPointsHelper::newpoints( 'plgaup_reply_kunena', '', $pid, $referencetopic );
} else {
global $mainframe;
// TODO : custom message -> translation design a new language variable in Kunena!
$mainframe->enqueueMessage(JText::_( 'Points not assigned because your response is too short.' ));
}
}
}
// ****************************************************************************
// end insertion AlphaUserPoints rules
Instead of
AlphaUserPointsHelper::newpoints( 'plgaup_newtopic_kunena', $pid );
They call the link to the topic using
$aup_linktotopic = "index.php?option=com_kunena&func=view&catid=$catid&id=$pid";
$referencetopic = "<a href=\"" . JRoute::_($aup_linktotopic) . "\">" . $subject . "</a>";
And then they add to to the AlphaUserPointsHelper this:
AlphaUserPointsHelper::newpoints( 'plgaup_newtopic_kunena', '', $pid, $referencetopic );
Hope you can do it

Thanks in advance