In the TP admin settings u can only set the vertical padding.
It would be useful if u could do the same for the horizontal one.
What I wanna do is to eliminate h.p. to zero so as to create the illusion of one single frame with links.
How about just changing the template? if its one-off occasion, its better..thats what templateas are for really.
Quote from: Bloc on October 07, 2005, 07:23:07 PM
How about just changing the template?
OK...but which of all?
Index.template.php..just before and after "function tempalte_main_below()". Look for paddings there in the td's for "leftbar" and "rightbar".
Quote from: fugi on October 07, 2005, 07:00:44 PM
What I wanna do is to eliminate h.p. to zero so as to create the illusion of one single frame with links.
Quote from: Bloc on October 08, 2005, 12:31:52 PM
Index.template.php..just before and after "function tempalte_main_below()". Look for paddings there in the td's for "leftbar" and "rightbar".
I've changed many many parameters/arguments but I can't find the correct one (for horizontal padding).
Could u plz quote me the code-line?
Thnx 1,000 in advance
Which theme are you using?
padding: 5px; or paddding-left: 5px; or padding-right: 5px;
Add that to the leftbar/right bar TP code inside the style tag:
example:
// 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; paddding-left: 5px; padding-right: 5px;" valign="top">
<div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; paddding-left: 5px; padding-right: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
TPortal_sidebar('left');
echo '</div></td>';
}
However, I don't think that's what your really asking is it? If you want to add "space" between your left/right blocks and your center block or from the left/right edges of the forum, then add "margin".
margin: 5px;
Example of my TP leftbar code (7px) to move it away from the left edge look for "margin-left: 7px;"
// 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;" valign="top">
<div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; margin-left: 7px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
TPortal_sidebar('left');
echo '</div></td>';
}
You would need to do this on both left/right bars.
Hope I didn't confuse you.
More on margins/padding:
http://lissaexplains.com/css.shtml
-Xarcell
I don't want to add space on the contrary I want to anihilate space-to make all left or right blocks become one.
I use the SMFone blue sky theme (with the modified template I uploaded here before some days)
Thnx both