|
|
| Author |
Message |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12643
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
~HG~
Dedicated User
Joined: 08 Nov 2003
Posts: 3192
Location: Australia
|
Posted: June 9th 2008, 12:32 pm Post subject: |
|
|
I am sure that there would be but finding where it is in the code is not that easy.
First thing we need to know is "which base style" are you working with and that will give us some hope of finding the existing code to look at. _________________ ~HG~
|| rodneyangell.com || My Hacks || Tutorial - Stopping Spam Bots |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12643
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Marian
Not So New User
Joined: 08 Apr 2007
Posts: 63
|
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12643
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
~HG~
Dedicated User
Joined: 08 Nov 2003
Posts: 3192
Location: Australia
|
Posted: June 10th 2008, 12:44 pm Post subject: |
|
|
If you are using a default template such as Subsilver2 then you could add this mod as described.
Some templates for phpBB3 already have the collapse function included so be sure that you are aware of that.
Now from what I can see is that when you set this mod up in your ACP you set the default value to 0 (zero)
I would try it with default value at 1 to see if it works that way.
The other thing is that I realise that you do not want to collapse "all" categories either so you may have to get a rewrite done on this one so that it only collapses the categories you stipulate. _________________ ~HG~
|| rodneyangell.com || My Hacks || Tutorial - Stopping Spam Bots |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12643
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Ptirhiik
Dedicated User

Joined: 21 Jan 2003
Posts: 1404
|
Posted: June 10th 2008, 5:29 pm Post subject: |
|
|
| I don't think you can do this in vanilia phpBB 3. However, just make those categories forums, no posting allowed, and it will do the trick. |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 12643
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
~HG~
Dedicated User
Joined: 08 Nov 2003
Posts: 3192
Location: Australia
|
Posted: June 11th 2008, 12:43 pm Post subject: |
|
|
On Galahs Corner I use the mg_autumn theme by Mighty Gorgon and he use's Java Script for collapsible categories.
The default is open of course but I am thinking if you were to use the same code it would collapse all categories as default if you changed it so using JS you would need to define the categories to be collapsed as default.
I am sure this could be achieved by including a switch option in "manage forums" in the ACP
The code used is as follows (Someone might be able to elaborate on this for you)
| Code:
|
<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;" src="./styles/mg_autumn/theme/images/icon_maximize.gif" onclick="javascript:ShowHide('f_1','f_1_h','f_1');" alt="Branches" /><div class="tbl-title"><h4><a href="./viewforum.php?f=1">Gumtree Administration Branch</a></h4></div></div></div></div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr><td class="row1"><span class="gensmall"> </span></td></tr>
</table>
<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c"> </div></div></div></div>
<br />
</div>
<div id="f_1">
<script type="text/javascript">
<!--
tmp = 'f_1';
if(GetCookie(tmp) == '2')
{
ShowHide('f_1', 'f_1_h', 'f_1');
}
//-->
</script>
|
_________________ ~HG~
|| rodneyangell.com || My Hacks || Tutorial - Stopping Spam Bots |
|
| Back to top |
|
 |
|