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.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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.
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.
sorry my bad its in the html output but i dunno if it should be really
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.
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>';
open \include\parser.php
Worked great. Thank you all.
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.
Line 425 of parser.php. Just remove all the height stuff from the scrollbox div so it looks like
<div class="scrollbox">
Line 425 of parser.php. Just remove all the height stuff from the scrollbox div so it looks like
<div class="scrollbox">
Thank You
PunBB Forums → PunBB 1.2 troubleshooting → Remove [Code] scroll bars?
Powered by PunBB, supported by Informer Technologies, Inc.