Webmastersite.net
Register Log In

clickbox collapsed by default?

Comments on clickbox collapsed by default?

Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Sep 22, 2007 - 6:48 AM:

In the searchadvanced.tpl it says e.g.

<div class="box" style="width: 70%;">
<div class="boxtitle" onClick="minmax('linksbox')"><img src="{TEMPLATESDIR}/images/icon_search.gif" alt="search"> {LANG_SEARCH_FINDLINKS}</div>
<div id="linksbox" class="boxbody">
<form action="https://www.webmastersite.net/forums/search.php?action=filter&filled=1&whichtype=links" method="post">


Everytime this page gets opened, the boxes are maximized. Can I, by default, set some of them to minimzed?

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 22, 2007 - 11:07 AM:

add style="visibility: hidden;" to a div to hide it.
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Sep 23, 2007 - 12:02 PM:

this will hide it, but not collapse it.

I need to set some value to "minimized", so by clicking the bar it will then maximize. But I don't know where..
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 23, 2007 - 3:23 PM:

A collapsed box is one where the class="boxbody" area is hidden.
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Sep 24, 2007 - 1:52 PM:

hi.
sorry I don't get it.
Can u tell me _where_ to add _what_ exactly?

I tried the things you have suggested, but always ended up in a page which still had expanded areas ({LANG_SEARCH_FINDLINKS},{LANG_SEARCH_FINDCATS}, etc). Only difference was that these areas are hidden then (cannot be seen, but the area does not get minimized to the title bar).
Just to make it clear: What I want to change from the default behaviour is just that, when that searchpage gets opened, the title bars ("Find Links", "Find Categories" etc) can be seen AND their content area should not be seen . It should look like it does when I click on the title bars of each area..

I just wanna change the default appearance to "minimized/collapsed", so it gets maximized/expanded when someone clicks the title "Fnid Links", etc
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 25, 2007 - 11:45 AM:

You posted above:
<div id="linksbox" class="boxbody"> 


Change that to
<div id="linksbox" class="boxbody" style="visibility: hidden;"> 
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Oct 03, 2007 - 7:53 AM:

Change that to
<div id="linksbox" class="boxbody" style="visibility: hidden;"> 



no.

it will do what i explained. it will HIDE the content, but NOT collapse/minimize it.
The area, where the content was before, is still there.

But if i click on the title bar of "find links"(eg.), it will minimize. thats what it shoul do, instead of make it unvisible.
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
Posted Oct 21, 2007 - 6:05 AM:

Hi Paul,
could you please be so kind and comment on this again? Your solution does not work..

Greetings, Starship-Trooper
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Oct 30, 2007 - 5:21 AM:

<div id="addbox" class="boxbody" style="visibility: hidden; height: 0;">
works.
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
#10 - Quote - Permalink
Posted Nov 03, 2007 - 9:15 AM:

I'm glad that you still give answers smiling face

but....
it will look minimized, but when I click the bar to maximize it again, it won't work because
a) the visibility is "hidden"
b) the height is 0

what i maybe need to find is sth that tells the code here:
<div class="boxtitle" onClick="minmax('linksbox')"

that the minmax-state is minimized by default.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
#11 - Quote - Permalink
Posted Nov 06, 2007 - 2:31 PM:

style="display: none;"
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007

Total Topics: 33
Total Comments: 84
#12 - Quote - Permalink
Posted Nov 06, 2007 - 3:03 PM:

yeahh that was it! thanks
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.