katie hunter
10-11-2013, 01:53 PM
Hi, i need to set the a fix width for bbcode of php, html, code so probably there are 3 templates to edit but lets try to apply the change for the bbcode code as an example.
I remember on vb 3.7.x it was simple but i cant remember which to edit.
http://s2.ipicture.ru/uploads/20131007/7T25811z.jpg
Here is a link for example http://forum.nihonomaru.com/finished-anime-series.44/thread/%5Bmulti%5D-minami-ke-tadaima-720p-bluray.343960/
See the long a url in the bbcode code the longer it will stretch out, i need to set the width for bbcode code for example to fix this issue. Making the width may be 750 px
I did it with vb 3.7.6 but that was long time ago, i can't remember what did i change.
-------------
This was based on vb 3.7.x template of bbcode_code
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>$vbphrase[code]:</b> <a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" style="border: 1px solid #B8B8B8; background: #E8E8E8; color: #999999; -moz-border-radius: 6px; font-family: Tahoma; font-size: 9px;" /></a></div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div>
Now this is the template for vb 4.2.1 and it is the same for the default vb skin, all bbcode and css of bbcode are the same.
<div class="bbcode_container">
<div class="bbcode_description">{vb:rawphrase code}:</div>
<pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="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>>{vb:raw code}</pre>
</div>
It is actually done and fixed here too on vbulletin.org since the txt does not stretch the border, you can scroll left and right as you can see above ^ it did not stretch he border.
I remember on vb 3.7.x it was simple but i cant remember which to edit.
http://s2.ipicture.ru/uploads/20131007/7T25811z.jpg
Here is a link for example http://forum.nihonomaru.com/finished-anime-series.44/thread/%5Bmulti%5D-minami-ke-tadaima-720p-bluray.343960/
See the long a url in the bbcode code the longer it will stretch out, i need to set the width for bbcode code for example to fix this issue. Making the width may be 750 px
I did it with vb 3.7.6 but that was long time ago, i can't remember what did i change.
-------------
This was based on vb 3.7.x template of bbcode_code
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>$vbphrase[code]:</b> <a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" style="border: 1px solid #B8B8B8; background: #E8E8E8; color: #999999; -moz-border-radius: 6px; font-family: Tahoma; font-size: 9px;" /></a></div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div>
Now this is the template for vb 4.2.1 and it is the same for the default vb skin, all bbcode and css of bbcode are the same.
<div class="bbcode_container">
<div class="bbcode_description">{vb:rawphrase code}:</div>
<pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="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>>{vb:raw code}</pre>
</div>
It is actually done and fixed here too on vbulletin.org since the txt does not stretch the border, you can scroll left and right as you can see above ^ it did not stretch he border.