TinyPortal

Development => Support => Topic started by: jpiazzo on June 07, 2007, 10:03:13 PM

Title: Left Side Block Stuck On
Post by: jpiazzo on June 07, 2007, 10:03:13 PM
Hi Everyone,

I am using the Amber TP theme and having some odd trouble.
I thought I would get rid of my left side block and put it on the right...
hopeing that then my center block would justify left.
But, the left side space remains - empty, with the center still center and my left blocks moved to the right.

Oddly, the top left collapse link remains - and now collapses the right side block!
Anyone else have this happen - or did I hack something on the template page I forgot about??

Site is here BTW - still under-construction: http://www.grievingcenter.org/forum/
Title: Re: Left Side Block Stuck On
Post by: G6Cad on June 07, 2007, 10:57:06 PM
You cant remove the top three "blocks" on the left hand as they are built in the layout for the Amber theme.
Title: Re: Left Side Block Stuck On
Post by: Dr.Theopolis on September 19, 2007, 03:19:16 PM
I'm not an expert with the inner workings of TP themes, but I made some changes to the amber index template file, and it seems to have fixed this problem. I can't say that the following code changes will not cause new problems, but...

In the index.template.php file for amber, find these lines (which on my computer starts around line 259):


<td style="background-image: url('.$settings['images_url'].'/img/left.jpg); background-repeat: repeat-y;" ><img src="'.$settings['images_url'].'/img/left.jpg" alt="" style="margin: 0;" /></td>
<td valign="top" width="208" style="background-color: #CCD5DE;">
<div id="leftbarHeader" style="width: 208px; height: 100%; background-color: #CCD5DE; ', empty($options['collapse_leftbar']) ? '' : 'display: none;' , '">
<img src="'.$settings['images_url'].'/blank.gif" style="margin: 0;" width="208" alt="" height="4" /><br />';
TPortal_sidebar('left');

echo '</div> </td>
<td valign="top" width="100%" id="bodyarea">';


and change them to:


<td style="background-image: url('.$settings['images_url'].'/img/left.jpg); background-repeat: repeat-y;" ><img src="'.$settings['images_url'].'/img/left.jpg" alt="" style="margin: 0;" /></td>';
if($context['TPortal']['leftbar'])
{

echo '<td valign="top" width="208" style="background-color: #CCD5DE;">
<div id="leftbarHeader" style="width: 208px; height: 100%; background-color: #CCD5DE; ', empty($options['collapse_leftbar']) ? '' : 'display: none;' , '">
<img src="'.$settings['images_url'].'/blank.gif" style="margin: 0;" width="208" alt="" height="4" /><br />';

TPortal_sidebar('left');

echo '</div> </td>';
}
else
{
  echo '<td></td>';
}

echo '<td valign="top" width="100%" id="bodyarea">';