function wfAddUserStatusProfile( $sport_id, $team_id, $text, $count ) {
	global $wgUser;

	// Don't do anything if the user is blocked or the DB is read-only
	if ( $wgUser->isBlocked() || wfReadOnly() ) {
		return '';
	}

	$text = urldecode( $text );
	$s = new UserStatus();
	$m = $s->addStatus( $sport_id, $team_id, $text );

	$output = '<div class="status-message">' .
		SportsTeams::getLogo( $sport_id, $team_id, 's' ) .
		$s->formatMessage( $text ) .
	'</div>
	<div class="user-status-profile-vote">
		<div class="user-status-date">' .
			wfMsg( 'userstatus-just-added' ) .
		'</div>
	</div>';

	return $output;
}