TinyPortal
Development => Support => Topic started by: shelzmike on July 31, 2008, 06:24:04 PM
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>';
haha, believe me you are not the first, nor are you the last person to do that.