1
Gamut
Toggle Show/Hide for Sidebars
  • 2003/11/23 14:46

  • Gamut

  • Just popping in

  • Posts: 34

  • Since: 2002/1/5 1


I want to give users the option to expand/collapse (ie show/hide)either, or both, the left and right sidebar columns. Has anyone managed to implement this functionality for a karate_redux type theme?

I saw that http://www.bbpixel.com implemented this feature using the "blue_ipb" theme. In the thread https://xoops.org/modules/newbb/viewtopic.php?topic_id=13842&forum=7#forumpost55761 tjnemez (http://www.mindhealth.ca) mentioned he modified the "blue_ipb" theme to use this feature.

I tried using the code from the "blue_ipb" theme in my heavily modified variant of karate_redux theme, but unfortunately it keeps giving an error "Line: 35 Char: 2 Error: Object required". As far as I can ascertain this error relates to the line:
document.body.style.visibility = "visible";

Any help or advice would be appreciated as my skills are limited to html and css, not javascript or php.

Thanks,

Gamut


2
tjnemez
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 15:05

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey gamut,
that is in the java script, you should not change anything in java script. the blue_ipb theme has the java script for block controls and nav bar, i think that should remain the way it is, other than the menu items and images.

3
tjnemez
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 15:24

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


just to clarify things, i use the blue_ipb theme.html for my base, then i modified the css.

4
Draven
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 16:18

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I took this idea a step further with http://www.gaining-mass.com , when you click the hide bars it remains that way until you open it. Meaning you can keep the bar closed for your entire vist. If I get a chance, I'll make a post on how that was done.

5
tjnemez
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 17:03

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey draven,

yah, i thought about that. it would be cool if you could post. thanks.

6
Gamut
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 22:50

  • Gamut

  • Just popping in

  • Posts: 34

  • Since: 2002/1/5 1


Thanks for responding.

I had not made any changes to the javascript or image files so it must be something to do with the way the blue_ipb theme is set up. I noticed that blue_ipb theme tables are much more heavily nested than the karate_redux theme.


Gamut

7
Gamut
Re: Toggle Show/Hide for Sidebars
  • 2003/11/23 22:52

  • Gamut

  • Just popping in

  • Posts: 34

  • Since: 2002/1/5 1


Draven,

It would be greatly appreciated if you could post how you managed to implement the javascript for toggling the sidebar visibility. I am sure I am not the only one out there who would find this functionality very useful.

Cheers,

Gamut

8
Gamut
Re: Toggle Show/Hide for Sidebars
  • 2003/11/25 22:39

  • Gamut

  • Just popping in

  • Posts: 34

  • Since: 2002/1/5 1


Hi Draven,

This is just a friendly bump on this thread.
I know you are a busy person, but your Toggle Sidebars solution is eagerly desired.

Regards,

Gamut

9
hsalazar
Re: Toggle Show/Hide for Sidebars
  • 2003/11/25 23:03

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Gary:

As an intermediate step, you could try my MP00 theme. It includes this functionality, though in a limited way, meaning the show/hide action is only valid in the present screen. I'm also waiting for Draven's more complete solution, but the theme I mention might whet temporarily your appetite --because it includes more goodies, most of them having to do with HTML and CSS rather than PHP.

Read here: https://xoops.org/modules/news/article.php?storyid=1098

Cheers.

10
Gamut
Re: Toggle Show/Hide for Sidebars
  • 2003/11/25 23:17

  • Gamut

  • Just popping in

  • Posts: 34

  • Since: 2002/1/5 1


Horacio,

Thanks for the suggestions and link. I will check it out and see what suits my developing theme.

Cheers,

Gamut

Login

Who's Online

235 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits