cscgal
10th October 2003, 08:33 AM
I'm not sure if this has been explained before, but the following shows how one can edit the code and php vB code so that they don't stretch your forum tables. It's similar to the way it's done at vbulletin.org
EXAMPLES:
http://www.techtalkforums.com/showthread.php?p=6737
http://www.techtalkforums.com/showthread.php?p=6887
Enter the Admin Control Panel and go to the Style Manager.
Choose the style you wish to edit, and select Edit Templates.
Navigate to bbcode_code under BBCode Layout Templates
Replace the existing code with the following:
<br />
<div style="border: solid 1px #000000; padding: 5px; background-color:white; color:green; width:90%; height:150px; overflow:auto;">
<pre style="white-space: auto" dir="ltr">
$code
</pre>
</div>
<br />
Navigate to bbcode_php under BBCode Layout Templates
Replace the existing code with the following:
<br />
<div style="border: solid 1px #000000; padding: 5px; background-color:white; color:green; width:90%; height:150px; overflow:auto;">
<pre style="white-space: auto" dir="ltr">
<!-- php buffer start -->$code<!-- php buffer end -->
</pre>
</div>
<br />
Hopefully this feature will be implemented in the final VB3 style! Enjoy!!
EXAMPLES:
http://www.techtalkforums.com/showthread.php?p=6737
http://www.techtalkforums.com/showthread.php?p=6887
Enter the Admin Control Panel and go to the Style Manager.
Choose the style you wish to edit, and select Edit Templates.
Navigate to bbcode_code under BBCode Layout Templates
Replace the existing code with the following:
<br />
<div style="border: solid 1px #000000; padding: 5px; background-color:white; color:green; width:90%; height:150px; overflow:auto;">
<pre style="white-space: auto" dir="ltr">
$code
</pre>
</div>
<br />
Navigate to bbcode_php under BBCode Layout Templates
Replace the existing code with the following:
<br />
<div style="border: solid 1px #000000; padding: 5px; background-color:white; color:green; width:90%; height:150px; overflow:auto;">
<pre style="white-space: auto" dir="ltr">
<!-- php buffer start -->$code<!-- php buffer end -->
</pre>
</div>
<br />
Hopefully this feature will be implemented in the final VB3 style! Enjoy!!