WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

clickbox collapsed by default?

Version: 4.0.30
printPrint


clickbox collapsed by default?
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 09/22/07 - 05:48 AM:
quote post
#1
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="http://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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6023
Posted 09/22/07 - 10:07 AM:
quote post
#2
add style="visibility: hidden;" to a div to hide it.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 09/23/07 - 11:02 AM:
quote post
#3
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6023
Posted 09/23/07 - 02:23 PM:
quote post
#4
A collapsed box is one where the class="boxbody" area is hidden.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 09/24/07 - 12:52 PM:
quote post
#5
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6023
Posted 09/25/07 - 10:45 AM:
quote post
#6
You posted above:
<div id="linksbox" class="boxbody">


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

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 10/03/07 - 06:53 AM:
quote post
#7
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 Posts: 84
Posted 10/21/07 - 05:05 AM:
quote post
#8
Hi Paul,
could you please be so kind and comment on this again? Your solution does not work..

Greetings, Starship-Trooper
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6023
Posted 10/30/07 - 04:21 AM:
quote post
#9
<div id="addbox" class="boxbody" style="visibility: hidden; height: 0;">
works.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/03/07 - 08:15 AM:
quote post
#10
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6023
Posted 11/06/07 - 02:31 PM:
quote post
#11
style="display: none;"

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Starship-Trooper
Experienced

Usergroup: Customer
Joined: Jan 06, 2007
Total Topics: 33
Total Posts: 84
Posted 11/06/07 - 03:03 PM:
quote post
#12
yeahh that was it! thanks
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.