Hi,
I love the Helios theme for SMF! I even found a semi-decent port of it for MKPortal... but I'm going to work on getting that port much closer to Bloc's original.
Anyway... If anyone could give me a quick clue on how to move all the header stuff (collapsable area up top) to the bottom of the forum (but before the footer), I'd really appreciate it.
After looking at the index.template code myself... I'm afraid I'll either mess up some main table, or accidently make something else collapsable up top (like stat / time bar).
So basically... I just want all the collapsable stuff (mini login / welcome stats / forum news) moved to the bottom.
Thanks,
Taz
You mean among the others in "Info center" then?..
Be aware that info center only show on front page of the forum, while the userinfo originally are shown on all forum pages.
Quote from: Bloc on July 15, 2005, 10:15:59 AM
You mean among the others in "Info center" then?..
Be aware that info center only show on front page of the forum, while the userinfo originally are shown on all forum pages.
I meant the upshrink stuff. (Figured that out searching the SMF support forums)
I disabled it for now, by commenting out in index.template.php:
// We'll have to use the cookie to remember the header...
// if ($context['user']['is_guest'])
// $options['collapse_header'] = !empty($_COOKIE['upshrink']);and replacing with:
$options['collapse_header'] = true;to force a default of collapsed... and then eliminating the menu bar by commenting out:
// Show the menu here, according to the menu sub template.
/* echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-midbar.gif);" ><tr>';
echo '<td style="width: 39%; background-color: black;"> </td><td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
echo '<td><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 0px 0;" border="0" /></a></td><td><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="width: 2px; height: 20px;margin: 0px 0;" /></td>';
template_menu();
echo '</td><td style="background-color: black;width: 59%;"> </td></tr></table>'; */To get rid of the upshrink icon (And the rest of the menu bar since MKPortal has one too)
So that works for now... I'll make MKPortal's NAV Bar look like SMF Helios, so I'm not worried about that.
Even though I may not bother... I still would like some clue as to what code to move, so that the upshrink stuff ends up on the bottom below everything, except the footer bar. (Even if it's no longer shrinkable).
When I do a search in index.template.php for everything says "upshrink"... I go cross-eyed! ;) (These old eyes needs a dot-matrix printer to study code more easily).
-Taz
I love this post !
Took me forever to find it !!!
Works with Tp v0.89 & SMF 1.1RC2
To Get it to work, it looks like this :
/DIR TO THEME IN QUESTION/index.template.php
// We'll have to use the cookie to remember the header...
//if ($context['user']['is_guest'])
// $options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header'] = true;
and ...
// Show the menu here, according to the menu sub template.
/*
echo $leftbox;
template_menu();
echo $rightbox;
*/
Interesting... when I attempted to edit this topic by clicking on the icon to the right (the one inside the message), I encountered a script error. Weird. Anyhow.
When I did the above modifications as a guest, I didn't see the top login nor the info center ... there's no point since the blocks have it all.
However, when I logged in as the admin, I didn't see the buttons @ the top ..'Flashchat' 'Admin' etc, ... and the info center appeared again at the bottom.
Dang it. Thought I had the infocenter problem licked
That way if you're using your blocks for advertisements, guests can't turn them off.
Just make sure you keep it out of the login check.
if ($context['user']['is_logged'])
{
Dont put your code anywhere inbetween the two brackets.
}