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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 241
  • Total: 241

Now the top header is missing.

Started by shelzmike, July 31, 2008, 06:24:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shelzmike

Okay, I am a complete newbie at most of this and was trying to figure out a way to remove the top user info bar from all pages - I currently have TP, SMF, and DilberMC. So, I went in and commented out the following lines: starting before echo and closing after <body>; this is in my dilbermc index.tempalte.php file. I know know that this did not do what I wanted it to do, but what it did do was affect what happend when I selected my upshrink action on the user info bar. Whenever I clicked the collapse icon, the page would just move up and down. So, I simply went in and umcommented the section. Now my header is gone - that shows the logo - the very top one. Is there something missing in the code below that is causing this to happen? Thanks.

NEVERMIND: Man, am I a complete idiot or what? Can anyone guess what my problem was? Yeah, I had the collapse on - that is why I couldn't see it! I just selected the expand icon and voila - there it was - duh!


Mike

// the routine for the info center upshrink
   echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

function shrinkHeaderIC(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + '  . '"/'. $settings['theme_main_color'] . '" + (mode ? "/expand.gif" : "/collapse.gif");

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

current_header_ic = mode;
}
// ]]></script>
</head>
<body>';

IchBin

haha, believe me you are not the first, nor are you the last person to do that.

This website is proudly hosted on Crocweb Cloud Website Hosting.