View Full Version : [VB3] Prevent code/php tags from stretching forum table


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!!

Floris
10th October 2003, 10:58 AM
Hi there :)
Thank you for posting :)

Daniel P
10th October 2003, 11:57 AM
Thank you for this little modification it's of use :)

ASweetDeal
10th October 2003, 03:29 PM
Cool! I like your mod. I had to shorten the width to 70% on our board but it looks great!!

ASD

Daniel C
10th October 2003, 03:47 PM
Wonderful template job I'll use it as soon as i have time to install it.

cscgal
10th October 2003, 07:26 PM
Glad you guys enjoy it! Note you can change my width:90% to any relative value or to an absolute amount such as 400px

Tony
11th October 2003, 04:22 AM
Very useful! Nice mod. :)