TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,101
  • Total Topics: 21,345
  • Online today: 1,178
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 922
  • Total: 923
  • @rjen

Core theme and TP questions... Mainly the link bar at the top.

Started by Gargoyle, January 02, 2007, 12:11:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gargoyle

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!

IchBin

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 , '">&nbsp;</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 , '">&nbsp;</td>';

This website is proudly hosted on Crocweb Cloud Website Hosting.