PDA

View Full Version : Controlling the "Posting Rules" box


mOdEtWo
05-04-2004, 12:57 PM
I'm minimizing my template to get rid of a lot of "stuff" and open space that really isn't needed. I want to display threads and posts (and some stats), and that's about it.

Now, the "Posting Rules" box is pretty high, and it's taking up the whole row by itself. I was thinking I could only remove it (do anyone really read it anyway?), but figured it could be better to leave it minimized as default.

So, instead of having to click on the "arrow" to minimize it, I want it to be like that as default - and instead I have to click on it to maximize it. I've been messing around in the forumrules template, but have yet to find a working solution.

Could someone kick me in the right direction, please?

Brad
05-04-2004, 01:12 PM
Try changing:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumrules')">

to

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_expand('forumrules')">

mOdEtWo
05-04-2004, 04:21 PM
That didn't do anything else than destroying the possibility to minimize the box.

;)

Natch
05-04-2004, 06:21 PM
You would need to do something in php_include I believe ...

Add:

$vbcollapse[collapseimg_forumrules] = "collapsed";
$vbcollapse[collapseobj_forumrules] = "display:none;";


And you can do the same for any more you wanna be collapsed by default ... you could extrapolate it into walking over an array even aka


$collapsed_objects_i_want = array("forumrules","other","object");
foreach($collapsed_objects_i_want as $objects_collapse){
$vbcollapse[collapseimg_$objects_collapse] = "collapsed";
$vbcollapse[collapseobj_$objects_collapse] = "display:none;";
}

or words to that effect ...