TinyPortal
Development => Support => Topic started by: Crip on May 26, 2005, 07:00:32 AM
If this topic was already covered I appologize but I couldn't locate anything through search.
The problem I'm having is with hiding the side bar when viewing the forum. It collapses more than when you use the collapse button. This causes the forum to look shifted to one side. Any ideas?
Which theme are you using? I know some of them have these problems...
SMF Default with modified images and colors.
http://seven17.net/
Ah..I see. Its because the "leftbar" <div> in index.template.php have some internal padding when its "on", but if not it just the regualr <td> that decides.
I don't know if you have modified anything there, but try to find this code:
echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';
And replace with this:
echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';
It just apply TP padding value to the forum , even when leftbar is not present. Let me know how it works.
That fixes the shifted look when in the forum but now creates a bigger gap between the side and middle bar.
http://seven17.net/
ah..just add a "padding-right: 0;" right after..like this:
echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px; padding-right: 0;" id="bodyarea">';
I added the code where you said and it didn't work. I added px to it thinking that would help but no good. :'(