Category Collapse - Help

Crimson1

Up-and-Coming Sensation
Joined
Jul 13, 2009
Messages
337
Reaction score
0
FP$
6
I've been looking for a good collapse and expand feature which i could use on my forum. Today i found the perfect one!... But its on a forum. And i need some help trying to find the right code off that template and install it on my forum.

Can anyone help?

This is the template: http://demo.phpbb3styles.net/CA+Black
 
The tutorial is good.

It gives me the perfect collapse and expand i want. Only problem is, when i refresh or move to a different page the forums just go back to normal.

I want it to save the state of the collapsed category's using a cookie of some sort. Can anyone help?

http://www.crimson-discussions.com/
 
Your best bet is to ask the author of that style, or where you got that style from. The reason why it's doing that is because there is no code behind it that will support it, it is only a design therefore opening back up as it is standardly set up.
 
Under Reaction said:
Your best bet is to ask the author of that style, or where you got that style from. The reason why it's doing that is because there is no code behind it that will support it, it is only a design therefore opening back up as it is standardly set up.


Just an FYI, I'm the style author. The reason the categories aren't staying closed when the page is refreshed is because there's no code that writes a cookie telling it to stay closed. I don't have a clue how to implement this as I've never done any work with cookies before, although you could ask on PHPdissection.
 
Thanks for your replies.

If i can find the code from the ca_black style, and then add the code to my forum, will that work? - I've seen many templates with the code which allows the forums collapsed to stay collapsed.

Nexus - PHPdissection admin said he wasn't sure how to implement this either.
 
I'm glad this was figured out! I need to really look into creating cookies... In the meantime, I'll create a topic on my site linking to this modification. 🙂

-Rich
 
Back
Top Bottom