TinyPortal

Development => Support => Topic started by: Mayhem30 on July 14, 2007, 04:31:38 AM

Title: Side block not aligning properly
Post 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.
Title: Re: Side block not aligning properly
Post by: IchBin on July 14, 2007, 04:59:34 AM
Depends on the theme.
Title: Re: Side block not aligning properly
Post by: Mayhem30 on July 14, 2007, 05:01:43 AM
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?
Title: Re: Side block not aligning properly
Post by: INR on July 15, 2007, 06:15:50 PM
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