BIGB
I like standing on my head
Registered: 07-2003
Location: Zoo Jersey
Posts: 489
Karma: 12 (+15/-3)
|
Reply | Quote
|
|
side bar
how's everyone doing today.
Is there a way to have the side bar removed when you view the post and reply area?? I love the side bar looks great on my board, just want the space for when you read or reply, some questions that my peeps have asked of me, and I know I'm not the one that could figure that out. my board would probably explode!
thanks,
BigB
--- http://bmeteormotorcycleclubinc.runboard.com/
|
11/1/2009, 1:59 pm
|
Link to post
Email BIGB
PM BIGB
|
Pastor Rick
Moderator
Registered: 07-2005
Location: Texas
Posts: 10257
Karma: 272 (+331/-59)
|
Reply | Quote
|
|
Re: side bar
The idea never occurred to me before but I think the answer would be yes... Mind you, I have not tried this so I could easily be wrong at this point and Sunday is really not a coding day for me so it could be a few days before I could say yes or no for certain.
|
11/1/2009, 2:33 pm
|
Link to post
Email Pastor Rick
PM Pastor Rick
Blog
|
BIGB
I like standing on my head
Registered: 07-2003
Location: Zoo Jersey
Posts: 489
Karma: 12 (+15/-3)
|
Reply | Quote
|
|
Re: side bar
Pastor Rick,
no rush here, just asking. the weekends no one should work, especially on sundays. kinda weird though, my motorcycle events are on every sunday though, raining here again, so I'm doing what I don't do best, coding...lol, interesting to say the least.
thanks again
--- http://bmeteormotorcycleclubinc.runboard.com/
|
11/1/2009, 4:27 pm
|
Link to post
Email BIGB
PM BIGB
|
Lesigner Girl
Global Administrator
Head of Runboard staff
Registered: 11-2005
Posts: 26740
Karma: 436 (+489/-53)
|
Reply | Quote
|
|
Re: side bar
What about having the sidebar on the main page only, and not in the forums at all? You could take it out of the threads only, but that would mean adding a nasty hack.
Here's that nasty hack. In your custom language set for location_topiclink, add <body class="inthread">. Then, in your CSS (board's control panel > layout/colors > Customize CSS), add this to the end:
.inthread #nav { display: none; }
.inthread #offset { margin-left: 0;float: none; }
.inthread #container { margin-left : 0;}
Note to other people who are reading this: This solution is based on the particular code he has in his board, and won't work for all boards.
|
11/1/2009, 7:24 pm
|
Link to post
Email Lesigner Girl
PM Lesigner Girl
Blog
|
BIGB
I like standing on my head
Registered: 07-2003
Location: Zoo Jersey
Posts: 489
Karma: 12 (+15/-3)
|
Reply | Quote
|
|
Re: side bar
Lesa,
you are unbelievable!!
that's what I meant just keep it on the main forum and not the rest. can we do that?
oh and yes it works!!
ty ty ty ty ty
--- http://bmeteormotorcycleclubinc.runboard.com/
|
11/1/2009, 9:47 pm
|
Link to post
Email BIGB
PM BIGB
|
Lesigner Girl
Global Administrator
Head of Runboard staff
Registered: 11-2005
Posts: 26740
Karma: 436 (+489/-53)
|
Reply | Quote
|
|
Re: side bar
You're welcome, B.
|
11/1/2009, 10:31 pm
|
Link to post
Email Lesigner Girl
PM Lesigner Girl
Blog
|
The Wizard3
Resident Wizard
Registered: 06-2006
Location: Castle Belgalor
Posts: 175
Karma: -10 (+19/-29)
|
Reply | Quote
|
|
Re: side bar
Cool !
Nice one LG, karma for you
|
11/1/2009, 10:39 pm
|
Link to post
PM The Wizard3
Blog
|
Lesigner Girl
Global Administrator
Head of Runboard staff
Registered: 11-2005
Posts: 26740
Karma: 436 (+489/-53)
|
Reply | Quote
|
|
Re: side bar
Thanks, Wiz.
|
11/1/2009, 10:49 pm
|
Link to post
Email Lesigner Girl
PM Lesigner Girl
Blog
|
BIGB
I like standing on my head
Registered: 07-2003
Location: Zoo Jersey
Posts: 489
Karma: 12 (+15/-3)
|
Reply | Quote
|
|
Re: side bar
Lesa,
I added it to the language set in (location_forumlink) and it removed it also from the forum list, thought you would like to know. hope I did it right. I'll come back tomorrow and board will probably be up side down!
thanks so much,
--- http://bmeteormotorcycleclubinc.runboard.com/
|
11/2/2009, 12:24 am
|
Link to post
Email BIGB
PM BIGB
|
Lesigner Girl
Global Administrator
Head of Runboard staff
Registered: 11-2005
Posts: 26740
Karma: 436 (+489/-53)
|
Reply | Quote
|
|
Re: side bar
I knew it would do that, although there is a standards-compliant way that doesn't involve a custom language set hack.
Where #nav says this:
#nav {width: 165px;float: left;margin: 0;}
You would change it to this:
#nav { display: none; }
#ak_board_home #nav { display: block; width: 165px;float: left;margin: 0;}
The first one says, "Don't display the sidebar (#nav) at all."
The second one overrides the first one, but only for the main page (#ak_board_home). It has the same definitions that #nav had before, but with the addition of display:block; to override the display:none;
Where it says this:
#offset {
margin-left: -165px;width: 100%;float: right;}
#container {margin-left : 170px;}
You would change it to this:
#ak_board_home #offset {
margin-left: -165px;width: 100%;float: right;}
#ak_board_home #container {margin-left : 170px;}
The float and margins are only there to make room for the sidebar, so by targeting only #offset and #container when they are on #ak_board_home (the main page), the float and margins will only apply to those areas when they're on the main page.
You could then take out everything I told you to add in my previous post.
The reason a hack was required when only hiding it in the post pages is because there is nothing in the <body> tag to differentiate a post list from a topic list, like there is to differentiate one forum from another, or a forum from the main page.
Home = #ak_forum_home
.f1 = #ak_forum_1
.f2 = #ak_forum_2
...etc...
I'm in tutorial mode now. Thanks, B! Maybe I should work on that <wbr> post.
|
11/2/2009, 12:42 am
|
Link to post
Email Lesigner Girl
PM Lesigner Girl
Blog
|