Back to vBulletin 4.x Template Modifications

Improved templates for [code], [html] and [php] bbcodes
Mod Version: 1.00, by nerbert

vB Version: 4.2.0 Rating: (0 vote - 0 average) Installs: 4
Released: 28 May 2013 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

This is a new template for [code], [html] and [php] bbcodes. With these the horizontal scrolling actually works and there is no word wrapping. In Chrome you can resize the box too.

Code:
<div class="bbcode_container" style="resize:vertical;">
	<div class="bbcode_description">{vb:rawphrase code}:</div>
        <div class="bbcode_code" style="overflow:auto;<vb:if condition="$vboptions['codemaxlines']">height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>
                <pre style="overflow:hidden;display:inline-block;margin:0px;resize:none;">{vb:raw code}</pre>
        </div>
</div>
Just paste in the new code in for the bbcode_code, bbcode_html and bbcode_php templates. Then change
{vb:rawphrase code} to {vb:rawphrase html_code}
in the bbcode_html template, and change
{vb:rawphrase code} to {vb:rawphrase php_code}
in the bbcode_php template.

Note that in the image provided, the number of lines was set to 10 to show multiple posts. Default is 30 in

Settings > Options > BB Code > Maximum [CODE] Lines.

Download

No files for download.

Screenshots

Click image for larger version
Name:	code-temp.jpg
Views:	287
Size:	107.4 KB
ID:	145215  

Similar Mods

Show Thread Enhancements BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes ! Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024