[ABD] Collapsible Categories

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

[ABD] Collapsible Categories

Post by Brf »

Name: Collapsible Categories

Description: This mod adds a button to each Category headerbar which will collapse or re-expand the category.

Version: 0.3.0a - Bugfix
0.3.0 - Move javascript into its own file
- Move styles into stylesheet
- Adjust header ul-li-dd widths
0.2.1 - One more bug with missing table row.
0.2.0a - Blank value
0.2.0 - Use image button
0.1.2 - correct problem with initializing custom profile fields.
0.1.1 - Specify default value for custom field.
0.1.0 - subsilver2 Template.
0.0.0 - Initial Release.

Demo: http://castledoom.com/CN/
Username: demo
Password demo-1

The Demo currently has only two categories, but should be enough to demonstrate.

Download: http://www.castledoom.com/CN/files/Coll ... gories.zip
Last edited by Brf on Mon Mar 31, 2008 4:16 pm, edited 8 times in total.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [DEV] Collapsible Categories

Post by Brf »

This is working on my site now. I just need to package it up for release.
Kalapuikkoja
Registered User
Posts: 25
Joined: Wed Jul 11, 2007 3:22 pm

Re: [DEV] Collapsible Categories

Post by Kalapuikkoja »

great thing.

is that also upcoming for subsilver2 too?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [DEV] Collapsible Categories

Post by Brf »

I am not currently using subsilver2, but it should not be too difficult....
With prosilver it was easy because the category's forums are all contained within a single object. That is not so with subsilver2.

Hmmm... I think I could probably get it to work with a <tbody> tag.....
User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [DEV] Collapsible Categories

Post by *Christian* »

Finally. this is what i've been waiting for :)

*topic bookmarked* - I assume the [mod] will add the button below the forum header? if so, can it be easily moved without causing style faults?
Proud owner of Bertie 3.0
:: No support via PM or IM ::
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [DEV] Collapsible Categories

Post by Brf »

*Christian* wrote: I assume the [mod] will add the button below the forum header? if so, can it be easily moved without causing style faults?
No. You havent visited my site have you? It adds a button on the far-right of each category header. It should be elementary to move it, as long as its context is still associated with the category header.
User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [DEV] Collapsible Categories

Post by *Christian* »

Apologies. I was viewing the site in IE6 (not my first choice of browser). Anyway, a simple refresh did the job.

Any idea when this will be available for download?
Proud owner of Bertie 3.0
:: No support via PM or IM ::
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [DEV] Collapsible Categories

Post by Brf »

As soon as I package it. Probably sometime today.
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania

Re: [DEV] Collapsible Categories

Post by tupeu »

Pack it please :roll:
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [Beta] Collapsible Categories

Post by Brf »

Packaged and released for beta.
User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [Beta] Collapsible Categories

Post by *Christian* »

Fantastic! Works like a charm! :D

However, i've noticed the [MOD] makes the forum category headers thicker, is there a way to keep the button there, yet restore the the category headers to their original thickness?
Proud owner of Bertie 3.0
:: No support via PM or IM ::
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [Beta] Collapsible Categories

Post by Brf »

I noticed that myself.
That is because of the default .button2 class. You can try making up a new class for that that uses a bit smaller Font and/or button height or override it there in the template, as I did with the width.
User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [Beta] Collapsible Categories

Post by *Christian* »

where would the edit be?

i assume you change the width by editing this piece of code:

Code: Select all

<dd><span><input type="button" class="button2" value="{forumrow.COLLAPSE_SIGN}" onclick="flipf(this,'{forumrow.FORUM_ID}');" style="width: 20px !important"/></span></dd>
but the height? :?
Proud owner of Bertie 3.0
:: No support via PM or IM ::
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53607
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: [Beta] Collapsible Categories

Post by Brf »

The:

Code: Select all

style="width: 20px !important"
changes the width. You would change the height with a similar tag:

Code: Select all

style="width: 20px !important; height:15px"
You might have to twiddle with the font-size too.
Freak46
Registered User
Posts: 19
Joined: Thu Dec 27, 2007 12:03 pm

Re: [Beta] Collapsible Categories

Post by Freak46 »

Nice idea. Now add a subsilver2 support :P

Return to “[3.0.x] Abandoned MODs”