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

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 07:45:58 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 59
  • Total: 59

TP Collapse image Bug?

Started by KarterJK, February 19, 2006, 04:38:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KarterJK

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


crip

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>

crip

I's sorry ..I thought you meant on your Forum......

feline

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