bbp_add_user_subscription($user_id, $topic_id);
        /*update the post meta with the assigned users id*/
        $assigned = update_post_meta($topic_id, 'bbps_topic_assigned', $user_id);
        $message = <<<EMAILMSG
\t\tYou have been assigned to the following topic, by another forum moderator or the site administrator. Please take a look at it when you get a chance.
\t\t{$post_link}
EMAILMSG;
        if ($assigned == true) {
            wp_mail($user_email, 'A forum topic has been assigned to you', $message);
        }
    }
}
// I believe this Problem is because your Plugin is loading at the wrong time, and can be fixed by wrapping your plugin in a wrapper class.
//need to find a hook or think of the best way to do this
if (!empty($_POST['bbps_support_topic_assign'])) {
    bbps_assign_topic($_POST);
}
if (!empty($_POST['bbps_support_submit'])) {
    bbps_update_status($_POST);
}
if (!empty($_POST['bbps_topic_move_submit'])) {
    bbps_move_topic($_POST);
}
// adds a class and status to the front of the topic title
function bbps_modify_title($title, $topic_id = 0)
{
    $topic_id = bbp_get_topic_id($topic_id);
    $title = "";
    $topic_author_id = bbp_get_topic_author_id();
    global $current_user;
    get_currentuserinfo();
function dtbaker_bbps_activation_done()
{
    //    if($_SERVER['REMOTE_ADDR'] == '124.191.165.183'){
    //        print_r($_POST);exit;
    //    }
    if (!empty($_POST['bbps_support_topic_assign'])) {
        bbps_assign_topic($_POST);
    }
    //if (!empty($_POST['bbps_support_submit'])){
    if (!empty($_POST['bbps_action']) && $_POST['bbps_action'] == 'bbps_update_status') {
        bbps_update_status();
    }
    if (!empty($_POST['bbps_topic_move_submit'])) {
        bbps_move_topic();
    }
}