Source: http://www.simplemachines.org/commun...topic=416558.0

In Themes\Default\Modification.english.php

Find:
Code: 
?>
Add Before:
Code: 
$txt['locked'] = 'Only registered users can see contents.';
$txt['redirect'] = 'Please click here to <a target="_blank" href="' . $scripturl . '?action=register"">Register</a> or <a target="_blank" href="' . $scripturl . '?action=login">Login</a>';
In Sources/Subs.php
Find:
Code: 
                'tag' => 'code',
                'type' => 'unparsed_content',
                'content' => '<div class="codeheader">' . $txt['code'] . ': <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code class="bbc_code">$1</code>',
Replace it with:
Code: 
                'tag' => 'code',
                'type' => 'unparsed_content',
                'content' => $user_info['is_guest'] ? '<div class="codeheader">' . $txt['code'] . ': </div><code class="bbc_code">' . $txt['locked'] . ' ' . $txt['redirect'] . '</code>' :  '<div class="codeheader">' . $txt['code'] . ': <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code class="bbc_code">$1</code>',
Code might be a little outdated, works for 1.1 for sure.
Only small tweaks are needed for this to work with 2.0 RC5
Leg!on Reviewed by Leg!on on . Hide content within [code] tags Source: http://www.simplemachines.org/community/index.php?topic=416558.0 In Themes\Default\Modification.english.php Find: ?> Add Before: $txt = 'Only registered users can see contents.'; Rating: 5