Adding collapse/expand buttons

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Adding collapse/expand buttons

Postby Jessica » 05 Apr 2012, 12:33

I already have collapse/expand buttons for my categories, but would like to add them for two additional boxes I have on my site, a box with a quote, and the shoutbox. Can someone help me ? I would like to use collapse/expand like this: http://www.christianbullock.com/2011/ph ... th-cookies
User avatar
Jessica    
Cadet I
Cadet I
 
Posts: 10
Joined: 27 Jan 2011, 15:20
Location: Pennsylvania, USA
Favorite Team: Steelers
Gender: Female
phpBB Knowledge: 6




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Adding collapse/expand buttons

Postby Sniper_E » 05 Apr 2012, 18:44

I have show/hide categories setup in an install file.
show_hide_categories.zip
(39.2 KiB) Downloaded 75 times

Then once that is install you can show/hide your subforums.
show_hide_subforums.zip
(33.15 KiB) Downloaded 55 times

Is this what you're talking about? Demo: http://sniper.hostei.com/phpBB3/
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Adding collapse/expand buttons

Postby Jessica » 05 Apr 2012, 20:23

no, no not hiding subforums. hiding a shoutbox and a random quote box I have from two other mods.....
User avatar
Jessica    
Cadet I
Cadet I
 
Posts: 10
Joined: 27 Jan 2011, 15:20
Location: Pennsylvania, USA
Favorite Team: Steelers
Gender: Female
phpBB Knowledge: 6

Re: Adding collapse/expand buttons

Postby Sniper_E » 05 Apr 2012, 20:31

No, not hiding subforums... The show/hide categories is what you want.
Are you hiding your categories now? It works the same way on your shoutbox and quotebox.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Adding collapse/expand buttons

Postby Jessica » 03 Jul 2012, 11:49

okay, isn't there some other way I can add a collapse/expand button for a box (like the quote box I have)? It doesn't have to have the fancy scrolling and it doesn't have to use the collapse/expand snippet I linked.


I can use this maybe: http://www.phpbb.com/customise/db/mod/c ... ategories/

but how would I adjust it so I just add it for other boxes, NOT categories/subforums
User avatar
Jessica    
Cadet I
Cadet I
 
Posts: 10
Joined: 27 Jan 2011, 15:20
Location: Pennsylvania, USA
Favorite Team: Steelers
Gender: Female
phpBB Knowledge: 6


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: AhrefsBot and 12 guests