Clan Adverts

CT Website · Expand / Collapse Feature on Clan Themes

Posted on Monday, March 09, 2009 @ 21:29 by floppy 

The new expand and collapse feature is a Jquery plugin courtesy of http://skinn3r.wordpress.com/2009/03/09/jcollapser-v12/

 

Change Log:

v1.2.1:
-Fixed error with init time state settings.

v1.2:
-Add cookie state support
-Add initialization time state setting if cookie is not set.

v1.1:
-Restructure of code to allow multiple collapse elements on the same page

v1.0:
-Initial release

Some very cool features are cookies (remembers your choices), defined state by default (collapsed / expanded), and fairly easy integration.  I asked Peter to post an example page for the latest version.  I will add that link as soon as it becomes available.

http://skinn3r.wordpress.com/2009/03/10/jcollapser-example/

Thanks for the awesome plugin Peter.

Check out his site and donate if you like this feature on CT / find his site useful.

About Peter

Some words about me and the intended purpose of this blog.

So I’m a 28 yo Programmer from Hungary. I’ve been programing in PHP for the last uhm… 6 or so years. I also did some programing in RPG for the IBM iSeries machines.

I created this blog to document some of my findings in PHP programming and programming in general.

You can follow me on twitter too (@skinner)

Admin Note: You may have to clear your cookies for clanthemes.com to get the full effect as the plugin's default are overidden if a previous cookie exist.


Votes up: 5 / Votes down: 1
Random Products

Untergang

Untergang writes ( Permalink )
I just used it in one of my modules, its really nice, the only problem I have is that when I collapse a div, then it slides up, but just before its completely gone, it goes back to the full view for a fraction of a second and then it disappears again. What is kind of annoying :) Did you have that problem as well?

Saturday, March 21, 2009 @ 12:45

floppy

floppy writes ( Permalink )
I just used it in one of my modules, its really nice, the only problem I have is that when I collapse a div, then it slides up, but just before its completely gone, it goes back to the full view for a fraction of a second and then it disappears again. What is kind of annoying :) Did you have that problem as well?


Nope, havent encountered that issue yet. Are there any other nested divs in the one you are collapsing?

Saturday, March 21, 2009 @ 13:06

Untergang

Untergang writes ( Permalink )
Nope, it only has a form and a table in it.
I did remove the cookie thing, because it needs to be closed every time you visit the page. Could it have anything to do with that?

Saturday, March 21, 2009 @ 14:12

floppy

floppy writes ( Permalink )
It is sorta built on the basis of the cookie script. Lots of stuff to remove to make that happen. You can set its default state though.

My only advice on this subject is to try it without any mods then work your way to your desired result.

Saturday, March 21, 2009 @ 15:41

Untergang

Untergang writes ( Permalink )
I added the cookie thing but it still does it. Ive been trying some other things but it wont help.
I used it for something like the quick reply here on the forums. So actually it only needs to be opened when needed. And its on the admin side. So Im just going to leave it as it is :)
Thanks anyway

Sunday, March 22, 2009 @ 13:31

TheVON

TheVON writes ( Permalink )
another awesome idea .... well done

Saturday, March 28, 2009 @ 23:06

Comments Closed for this Article!
Comments are always closed 1 month after the article has been published.
 

Advertisement