vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=288139

jQuery slideUp() and slideDown() problem
by Lilmikeishere
21 Sep 2012 23:24

I'm trying to make it so when you click a button, information appears and when you click it again, it slides back.

CSS:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

HTML:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Script:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It works but only for the first poster.

AcheronAI 21 Sep 2012 23:47

Because the first button is named the same as the rest, they each need to be different if I am not mistaken, like mybutton1 mybutton2

Lilmikeishere 21 Sep 2012 23:53

Quote:

Originally Posted by AcheronAI (Post 2367471)
Because the first button is named the same as the rest, they each need to be different if I am not mistaken, like mybutton1 mybutton2

The purpose is for the button to make the text slide out, and then slide in after another click.

AcheronAI 22 Sep 2012 00:01

Yes but if there is more then one button they each need their own id's

Lilmikeishere 22 Sep 2012 00:13

Quote:

Originally Posted by AcheronAI (Post 2367474)
Yes but if there is more then one button they each need their own id's

I see only a single button.

Lilmikeishere 23 Sep 2012 17:05

Switched the id to classes and it works now for all the boxes but the first poster of the thread controls them all the page of posts.

Scanu 27 Sep 2012 18:05

You can take a look to my mod "collapsible sognature" it does it in a hacky way

Lilmikeishere 28 Sep 2012 18:32

Quote:

Originally Posted by Scanu (Post 2369055)
You can take a look to my mod "collapsible sognature" it does it in a hacky way

I'm assuming your mod mimics a hide/show or a spoiler button. That can be done with HTML and I'm currently using that but I would really like to get the sliding effect to work.

Scanu 02 Oct 2012 18:17

It use a jquery slide effect


All times are GMT. The time now is 01:34.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.