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();
    $user_id = $current_user->ID;
    $claimed_user_id = get_post_meta($topic_id, '_bbps_topic_claimed', true);
    if ($claimed_user_id > 0) {
        $user_info = get_userdata($claimed_user_id);
        $claimed_user_name = $user_info->user_login;
    }
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();
    }
}