TinyPortal
General => Chit chat => Topic started by: Gargoyle on January 02, 2007, 12:11:12 AM
Alright we all now about SMF using a tabbed style design on the core theme. And TP adds a couple of boxes to the link bar as well.. What I would like is it set up like so..
Everything centered also.. a.k.a. no left alignment to link bar.. Center alignment..
[ the plus minus box for the left TP ] [ All SMF Links ] [ the plus minus box for the right TP ]
Now I tried doing this myself and managed to screw it up pretty good. I know the answer is simple but at the moment it is escaping me so I am asking for help.
Thanks!
This is the leftbar upshrink code remove it from the bottom of the index.template.php file:
if($context['TPortal']['leftbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
Find this:
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '"> </td>';
Replace with:
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>';
if($context['TPortal']['leftbar'])
echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
echo' <td class="maintab_' , $first , '"> </td>';