News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

how to put news+search row outside of header collapse

Started by dcmouser, March 26, 2006, 04:07:42 PM

Previous topic - Next topic

dcmouser

i'm having trouble figuring out how to put news+search row outside of header collapse, so it doesnt get collapsed along with the other contents.

can anyone show me how? i've read the basic ideas about what is getting collapsed but im having trouble making it work right.
proud member of donationcoder.com (forum)

IMSassafras

I hope there is no problem with re-opening this post.  No one answered the original poster, unfortunately.

I'm currently working with the default version of 1.1.4 (and looking forward to 2.0 when it is available to the public   ;D ).

I'm interested in collapsing only the profile section at the top of my forum.  I'd like to keep the news and search function on at all times.

Here is the illustrated version:


Hope someone can help. 

Warmly,
Sassafras
It is not for him to pride himself who loveth his own country, but rather for him who loveth the whole world. The earth is but one country, and mankind its citizens. ~ Bahá'u'lláh
________________________
MisFiT City Forum - Where Attitudes are Nourished and Being a MisFiT is Just Part of the Day!
Say NO to MSG.com - Dedicated to creating public awareness of Monosodium Glutamate and other excitotoxins.

Kays

Hi, one way to do that is to delete the following line in index.template.php in the default theme. Or any other theme you might use in the future.

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

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

IMSassafras

Kays,

Thank you for your quick response.  I did what you suggested and it seemed to work fine... for a while.

Once I went to and from different boards the News and Search section would TOTALLY disappear.  I had to open the collapsed field and reload the page so the News and Search would come back.

I have replaced the code and everything is working like it was before the change.

I think my request is going to require a little more than just the deletion of the suggested code.  I do wish it was that easy, though.

I still would like to obtain the right method for my request.  If you or anyone else has another answer, please help.

Thank you again, Kays, for your time.

Warmly,
Sassafras
It is not for him to pride himself who loveth his own country, but rather for him who loveth the whole world. The earth is but one country, and mankind its citizens. ~ Bahá'u'lláh
________________________
MisFiT City Forum - Where Attitudes are Nourished and Being a MisFiT is Just Part of the Day!
Say NO to MSG.com - Dedicated to creating public awareness of Monosodium Glutamate and other excitotoxins.

Kays

Hi, try replacing that line with this and see what happens:

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

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Rumbaar

You need to remove that line:

document.getElementById("upshrinkHeader2").style.display = mode ? "" : "";
and find:
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
and replace with:
<table width="100%" cellpadding="4" cellspacing="0" border="0">
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: