Advertisement:
2by2host

Author Topic: info on shrank header  (Read 1468 times)

Offline shyrax

  • Semi-Newbie
  • *
  • Posts: 16
info on shrank header
« on: March 29, 2012, 07:56:35 PM »
I am using 2.0.2 and a self modified version of the Curve theme. I want all the user info and links plus the search bar to be shown when the header area is shrank.

I was working to just remove the shrink ability and have all the data I wanted shown on a smaller header, but ran into some issues. I was following different threads I searched for and found here. I have since changed my mind and want to retain the ability to shrink and just have the fields displayed when shrank.

Any help would be appreciated.

Full header:



What I want the shrank to look like:




Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,766
  • Gender: Male
Re: info on shrank header
« Reply #1 on: March 30, 2012, 03:45:26 PM »
Upload your index.template.php here.
My Mods

Sugested that too. Hey ho. I'd link you to the original discussion but it's not visible to most people (seekrit team board stuff that is more dangerous than wikileaks).


Don't PM me for support! Use the appropriate support board!


Offline shyrax

  • Semi-Newbie
  • *
  • Posts: 16
Re: info on shrank header
« Reply #2 on: March 31, 2012, 01:41:58 AM »
Here you go.

Offline shyrax

  • Semi-Newbie
  • *
  • Posts: 16
Re: info on shrank header
« Reply #3 on: April 05, 2012, 11:29:29 AM »
Any help would be greatly appreciated.

Offline тнє נя.

  • Semi-Newbie
  • *
  • Posts: 66
Re: info on shrank header
« Reply #4 on: April 05, 2012, 03:14:42 PM »
Uhm, what exactly do you want it to shrink then...?

Offline shyrax

  • Semi-Newbie
  • *
  • Posts: 16
Re: info on shrank header
« Reply #5 on: April 05, 2012, 03:36:35 PM »
Well, you know that you can't ever make everyone happy. I have gotten several complaints that the header section is just too big and when they shrink it, they lose the important links/text/search. If we can make a change that will move those important links/text/search when shrank, that will solve my problem.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: info on shrank header
« Reply #6 on: April 08, 2012, 03:39:09 PM »
The collapse in the theme header uses the smc_Toggle JS object. That function takes only a list of elements to show/hide, and as far as I can see it can't hide one and at the same time show another. Looking at your images, you're not just swapping elements as it usually does, but actually reordering the layout. This is a problem since the toggle function in SMF can't handle that. You'll likely have to write your own function to swap it, maybe using JQuery to save time. Do you have any experience writing JavaScript?
Also known as the dreaded cσσкιє мσηѕтєя. Yes, 'twas I who stole your cookies. No, you can't have 'em back.

Twitter | Forrst | Dribbble | Website | Hire me for custom work (mods, themes, installs, upgrades, you name it!)

Offline shyrax

  • Semi-Newbie
  • *
  • Posts: 16
Re: info on shrank header
« Reply #7 on: April 08, 2012, 07:23:24 PM »
None whatsoever.

Offline тнє נя.

  • Semi-Newbie
  • *
  • Posts: 66
Re: info on shrank header
« Reply #8 on: May 15, 2012, 12:03:32 PM »
You don't have to modify how the JavaScript is written for collapsing, Marcus. All you have to do is change what is in the collapsed div.