Displaying a message upon user registration

http://codex.wordpress.org/Plugin_API/Action_Reference/user_register

This action hook allows you to access data for a new user immediately
after they are added to the database. The user id is passed to hook as
an argument.

add_action('user_register', 'registration_redirect');

function registration_redirect($user_id) {
$url="PAGE_WHERE_YOUR_CODE_IS_DISPLAYED";
wp_redirect( $url );
exit; 
}

placing that in your functions.php should work. This attempts to redirect the user after they register, i believe after they click the link in the email, which is what i think you were looking for.