Topic: Remove [Code] scroll bars?

I was wondering if in PunBB 1.2 if it is possible to remove the scroll bars that appear when there are many lines of text formated with the code tags. Thanks in advance.

Re: Remove [Code] scroll bars?

yes in the css presumably

Re: Remove [Code] scroll bars?

I am using the Cobalt theme. Would that mean to edit some of the text in Cobalt.css? For example, maybe some of these?

/* 4.1 By default borders are 1px solid */

DIV.box, .pun TD, .pun TH, .pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {
    BORDER-STYLE: solid;
    BORDER-WIDTH: 1px
/* 8.4 Spacing for code and quote boxes */

DIV.postmsg H4 {MARGIN-BOTTOM: 10px}
.pun BLOCKQUOTE, DIV.codebox {MARGIN: 5px 15px 15px 15px; PADDING: 8px}

If so, would you happen to know which text I should change? Thank you for helping me.

Re: Remove [Code] scroll bars?

sorry my bad its in the html output but i dunno if it should be really hmm

5

Re: Remove [Code] scroll bars?

You can remove the scrollbars but then the code would simply be chopped of at the right edge and you would have no way of seeing it.

The vertical scrollbar can be removed so the code stretches the full height of the content but that requires parser.php to be edited.

6

Re: Remove [Code] scroll bars?

open \include\parser.php

find  line 425

$text .= '</p><div class="codebox"><div class="incqbox"><h4>'.$lang_common['Code'].':</h4><div class="scrollbox" style="height: '.$height_str.'"><pre>'.$inside[$i].'</pre></div></div></div><p>';

replace with

$text .= '</p><div class="codebox"><div class="incqbox"><h4>'.$lang_common['Code'].':</h4><pre>'.$inside[$i].'</pre></div></div><p>';
If your people come crazy, you will not need to your mind any more.

Re: Remove [Code] scroll bars?

zaher wrote:

open \include\parser.php

Worked great. Thank you all. smile

Re: Remove [Code] scroll bars?

Paul wrote:

You can remove the scrollbars but then the code would simply be chopped of at the right edge and you would have no way of seeing it.

The vertical scrollbar can be removed so the code stretches the full height of the content but that requires parser.php to be edited.

I now see what you mean about the code getting chopped off on some coputers running at low resolutions. Would you or anyone else happen to know the code to just remove the vertical scrollbar so the code stretches the full height of the content like you said, while keeping the horizontal bars? Thanks for your time.

9

Re: Remove [Code] scroll bars?

Line 425 of parser.php. Just remove all the height stuff from the scrollbox div so it looks like
<div class="scrollbox">

10

Re: Remove [Code] scroll bars?

Paul wrote:

Line 425 of parser.php. Just remove all the height stuff from the scrollbox div so it looks like
<div class="scrollbox">

Thank You