Another way would be to have something on the page with the "not-logged-in-only" class, and another with the "admin-only" class, that display messages like this, and will only appear in the right circumstances.