TinyPortal
Development => Support => Topic started by: Mayhem30 on July 14, 2007, 04:31:38 AM
Is there a way to align the left and right side blocks?
If I don't use a center piece, they stick up higher that my top board and looks out of place.
Depends on the theme.
I'm using smf 1.1.3 with default theme
The blocks on the sides stick about 20px higher that my top baord.
How would I adjust that?
I found a quick way to adjust the columns to your setup.
Go to index.template.php.
Find around line 400
Quote// TinyPortal integrated bars
if($context['TPortal']['leftbar'])
{
echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
<div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 37px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
TPortal_sidebar('left');
echo '</div></td>';
Just change that number until your have what you need. There is similar code for the right column a few lines of code further down.
G