TinyPortal

Development => Feedback => Topic started by: KarterJK on February 19, 2006, 04:38:57 PM

Title: TP Collapse image Bug?
Post by: KarterJK on February 19, 2006, 04:38:57 PM
Just looking at TP for the first time... Nice  ;D

However, I am using Windows XP Home Editiion .. IE 6.0
and I notice that when using the collapse buttons on the left menu
Content
TP site of the month ....  etc

that once collapsed no expand icon shows.... I tried this with different themes, and my system is pretty common, so I suspect this to be a slight bug with TP?

or does it work for everyone else?

OOOPSS....NEVER MIND .... IT IS WORKING NOW  ummmm, strange

Title: Re: TP Collapse image Bug?
Post by: crip on February 19, 2006, 05:12:56 PM
It does give error if this code isn't inserted correct..


  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

function shrinkHeaderLeftbar(mode)
{';

  // Guests don't have theme options!!
  if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
  else
echo '
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
  echo '
document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

current_leftbar = mode;
}
// ]]></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

function shrinkHeaderRightbar(mode)
{';

  // Guests don't have theme options!!
  if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
  else
echo '
smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

  echo '
document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

current_rightbar = mode;
}
  // ]]></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

function shrinkHeader(mode)
{';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>
Title: Re: TP Collapse image Bug?
Post by: crip on February 19, 2006, 05:16:11 PM
I's sorry ..I thought you meant on your Forum......
Title: Re: TP Collapse image Bug?
Post by: feline on February 19, 2006, 05:21:59 PM
Quote from: KarterJK on February 19, 2006, 04:38:57 PM
However, I am using Windows XP Home Editiion .. IE 6.0
and I notice that when using the collapse buttons on the left menu
Content
TP site of the month ....  etc

that once collapsed no expand icon shows.... I tried this with different themes, and my system is pretty common, so I suspect this to be a slight bug with TP?

there is a little problem on TP-Blocks with IE.
Bloc notice that and fix it in next release.

Fel