inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Jul 24, 2013 13:39:48 GMT -8
Tim Camarahow can i remove the sidebar from certain pages like the bank from the money plugin. it only is on the main page in this line /bank $(document).ready(function() { if(proboards.data('route').name == "home") { var settings = proboards.plugin.get('sidebar').settings;
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Jul 24, 2013 14:30:21 GMT -8
You should ask the authors of those plugins. My code is working 100% fine, as is the chunk of code you haphazardly pasted here. The pages generated by those plugins have the route set to 'home'.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Jul 24, 2013 15:24:37 GMT -8
i asked peter and he said to ask you
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Jul 24, 2013 15:38:47 GMT -8
Well, you're going to have to figure out a way to identify those pages as being different than the home page, then modify the code you posted to add in your new check.
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Jul 25, 2013 8:12:41 GMT -8
tunescool change this line: if(proboards.data('route').name == "home") { to this: if(proboards.data('route').name == 'home' && !window.location.href.match(/\/bank|\/stockmarket/)) {
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Jul 25, 2013 8:29:29 GMT -8
tunescool change this line: if(proboards.data('route').name == "home") { to this: if(proboards.data('route').name == 'home' && !window.location.href.match(/\/bank|\/stockmarket/)) { i changed to brians sidebar all of a sudden and using this now <script type="text/javascript"> // Homepage-only Sidebar Redux \\ if(proboards.data('route').name == 'home' && !window.location.href.match(/\/bank|\/stockmarket/)) { document.write('<style type="text/css">.sidebarr-left-td, .sidebarr-right-td { display: none; } .sidebarr-main { padding: 0px !important; }</style>'); // Safari Browser Fix \\ proboards.plugin.get('sidebar_redux').settings.left_enabled = 0; proboards.plugin.get('sidebar_redux').settings.right_enabled = 0; } </script>
i put what you gave me in but it didnt take the pages off and brought the sidebar back on every page, i just responded to brian with the same issue, taking the bank out
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Jul 25, 2013 8:43:36 GMT -8
Well I didn't test it with brian's sidebar plugin.
Go to the build section of the plugin. Then go to the components tab, then switch the header/footer spot to footer and at the very bottom paste this.
<script> if(proboards.data('route').name != 'home' || window.location.href.match(/\/bank|\/stockmarket/)) { $('td.sidebarr-left-td,td.sidebarr-right-td').hide(); } </script>
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Jul 25, 2013 8:57:46 GMT -8
Well I didn't test it with brian's sidebar plugin. Go to the build section of the plugin. Then go to the components tab, then switch the header/footer spot to footer and at the very bottom paste this. <script> if(proboards.data('route').name != 'home' || window.location.href.match(/\/bank|\/stockmarket/)) { $('td.sidebarr-left-td,td.sidebarr-right-td').hide(); } </script> that worked thanks shorty. im trying to get the thread page and posting page because for some reason it shows up below my shoutbox but i didnt get it yet
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Jul 25, 2013 8:59:24 GMT -8
Welcome.
|
|