@imagecrisis
8 years, 9 months ago
Try changing:
$active_topic = $bbp->current_topic_id;
…to:
$active_topic_id = $bbp->topic_query->post->ID;