public boolean saveSmfUser(String user) throws ClassNotFoundException,
			SQLException {
		// SMF activation
		sqlClass();
		sqlCon();
		if (!customField.isEmpty()) {
			query = "SELECT id_member FROM " + tablePref
					+ "themes WHERE variable='" + smfFieldValue()
					+ "' AND value='" + user + "'";
			ResultSet rs = SELECT(query);
			if (rs.next()) {
				query = "UPDATE " + tablePref
						+ "members SET is_activated='1' WHERE id_member='"
						+ rs.getInt("id_member") + "'";
				UPDATE(query);
				query = "SELECT * FROM " + tablePref
						+ "members WHERE id_member=" + rs.getInt("id_member")
						+ " AND is_activated='1'";
				rs = SELECT(query);

				if (rs.next()) {
					plugin.sendInfo(ForumAA.server.getPlayer(user),
							"Your account has been activated.");
					closeCon();
					return true;

				} else {
					plugin.sendError(ForumAA.server.getPlayer(user),
							"Your account has not been activated");
					closeCon();
					return false;
				}

			} else {
				plugin.sendError(ForumAA.server.getPlayer(user),
						"Couldn't find your username");
				closeCon();
				return false;
			}
		} else {
			query = "UPDATE " + tablePref
					+ "members SET is_activated='1' WHERE member_name='" + user
					+ "'";
			UPDATE(query);
			query = "SELECT * FROM " + tablePref
					+ "members WHERE member_name='" + user
					+ "' AND is_activated='1'";
			ResultSet rs = SELECT(query);

			if (rs.next()) {
				plugin.sendInfo(ForumAA.server.getPlayer(user),
						"Your account has been activated.");
				closeCon();
				return true;

			} else {
				plugin.sendError(ForumAA.server.getPlayer(user),
						"Your account has not been activated");
				closeCon();
				return false;
			}
		}
	}