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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 100
  • Total: 100

Left Side Block Stuck On

Started by jpiazzo, June 07, 2007, 10:03:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jpiazzo

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/

G6Cad

You cant remove the top three "blocks" on the left hand as they are built in the layout for the Amber theme.

Dr.Theopolis

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">';

This website is proudly hosted on Crocweb Cloud Website Hosting.