Boofo, I think people are having problems with 3.0.1 because the hacks templates are out of date.
I added the lines needed into the default vB 3.0.1 BBcode templates so it will work with the latest versions. I have tested this on an vB 3.0.1 board.
bbcode_code:
[CODE]
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase
Code:
:</div>
<pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_code]</if></pre>
</div>
bbcode_html:
Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[html_code]:</div>
<pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_html]</if></pre>
</div>
bbcode_php:
Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[php_code]:</div>
<div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
<code style="white-space:nowrap">
<!-- php buffer start --><if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_php]</if><!-- php buffer end -->
</code>
</div>
</div>
bbcode_quote:
Code:
<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[quote]:</div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%">
<if condition="$bbuserinfo['userid']">
<tr>
<td class="alt2" style="border:1px inset">
<if condition="$show['username']">
<div><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div>
<div style="font-style:italic">$message</div>
<else />
$message
</if>
<else />$vbphrase[bf2_block_quote]
</if>
</td>
</tr>
</table>
</div>
I suggest people use this code on their 3.0.1 boards.
Also, could you provide a way to make it so guests can't see the code in the threads archive?