Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15779
  • *Total Topics: 2382
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 1
  • *Total: 1

Author Topic: Block Collapse / Expand Transition  (Read 1246 times)

0 Members and 0 Guests are viewing this topic.

Offline Xenmorph

  • Newbie
  • *
  • Posts: 9
  • Gender: Male
Block Collapse / Expand Transition
« on: 16.06.12, 04:00:33 »
I would like to have a nice slide in transition effect on the Collapse / Expanding of blocks, would any one be to point me in the direction of the code I would need to include / reference to achieve this ?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Block Collapse / Expand Transition
« Reply #1 on: 17.06.12, 13:38:54 »
PortaMx use the SMF javascript toogle function (smc_Toggle).
This can't change until you rewrite many, many parts of the PortaMx code ... (practical not possible)
Many are stubborn in relation to the path, a few in relation to the target.

Offline Xenmorph

  • Newbie
  • *
  • Posts: 9
  • Gender: Male
Re: Block Collapse / Expand Transition
« Reply #2 on: 17.06.12, 14:55:27 »
Thanks for the reply feline.

With that being the case would it be a easy thing to add / edit the script needed to the smc_Toggle function, so to add the slide effect to all collapse-able sections or would this also require a major rewrite ?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Block Collapse / Expand Transition
« Reply #3 on: 17.06.12, 15:59:13 »
Well .. smc_Toggle is a Javascript Object, they handle all things the need for the Toggle (show the expand/collapse icon, execute the before/after expand/collapse functions and much more). So it's not simple to change these object. Also you have to note, that PortaMx itself modify the smc_Toggle object on install ...
A modification on the PortaMx code is not possible, because the Toggle code is created dynamically by the block object constructor.
Many are stubborn in relation to the path, a few in relation to the target.

Offline Xenmorph

  • Newbie
  • *
  • Posts: 9
  • Gender: Male
Re: Block Collapse / Expand Transition
« Reply #4 on: 17.06.12, 21:57:00 »
Ok thanks for the info Feline.

Looks like Fancy slide in blocks / collapsible boards etc are a no go unless one feels like some major rewrites.