This code enables you to restrict the content on single posts and pages to any character limit for logged out users. The code then displays a message with link to the registration form:
You’ll need to enable the registration form in the general settings.
The code works in any theme.
Here’s the code & sample CSS for logged in members: