inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 11, 2017 7:52:02 GMT -8
Javascript for hiding the mini-profile on boards? I'm okay with putting it in the header.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Feb 11, 2017 8:35:48 GMT -8
Tiffy-Bean, This doesn't free up the space that the mini-profile occupies, but to just hide it, you can put this in your Global Header: <script> $(document).ready(function() { if (pb.data('page').board.id == 9) { $('.mini-profile').hide(); } }); </script>
If you have more than 1 board to affect, just add them in as an OR, like so: <script> $(document).ready(function() { if (pb.data('page').board.id == 9 || pb.data('page').board.id == 10 || pb.data('page').board.id == 11) { $('.mini-profile').hide(); } }); </script>
Just substitute your board ID's for board(s) to affect. If you've got consecutive numbered boards (probably a rare occurrence for a forum, but possible) in a range that you want to affect, you can shorten the code down to an AND. If, for example, you have boards 9, 10, 11, 12, 13, 14, 15 and 16 that you want to affect, it can be done this way: <script> $(document).ready(function() { if (pb.data('page').board.id >= 9 && pb.data('page').board.id <= 16) { $('.mini-profile').hide(); } }); </script>
Keep in mind that this is looking for the default mini-profile class. If that class name has been changed, you'll need to target that class instead.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 11, 2017 9:03:47 GMT -8
Thank you. Worked perfect. <3
|
|
SafeInSanity
Junior Member
Falling in love with Proboards again!
Posts: 424
inherit
23917
0
Feb 27, 2020 11:29:13 GMT -8
SafeInSanity
Falling in love with Proboards again!
424
May 2004
wiki
|
Post by SafeInSanity on Feb 17, 2017 18:20:28 GMT -8
Very cool, but is there a way of completely removing the mini profile column from a certain board? Not just hiding it with java script because it still doesn't free up the width of the page, just hides the mini profile.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Feb 17, 2017 22:31:00 GMT -8
SafeInSanity, I'm assuming you no longer need this as this was posted before I gave you the solution in the other board. Am I correct that worked for you?
|
|
SafeInSanity
Junior Member
Falling in love with Proboards again!
Posts: 424
inherit
23917
0
Feb 27, 2020 11:29:13 GMT -8
SafeInSanity
Falling in love with Proboards again!
424
May 2004
wiki
|
Post by SafeInSanity on Feb 18, 2017 7:33:04 GMT -8
SafeInSanity , I'm assuming you no longer need this as this was posted before I gave you the solution in the other board. Am I correct that worked for you? Yes, it worked great too.. thanks!. You can delete my post on this thread if you like.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 18, 2017 13:24:10 GMT -8
Actually because you commented here Wiki, I took a look at what Tumbleweed suggested to, and though MSG's suggestion did exactly what I asked for and worked great, I ended up going with Tumbleweed's way. Thank you all three for helping!!!
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Feb 18, 2017 15:18:30 GMT -8
SafeInSanity , I'm assuming you no longer need this as this was posted before I gave you the solution in the other board. Am I correct that worked for you? Yes, it worked great too.. thanks!. You can delete my post on this thread if you like. We don't delete posts but for future reference, it is common practice around here to start a new thread rather than posting in someone else's thread that has been solved. You can always link to a thread as a reference. However, in this case it gave Tiffy-Bean another option so all is well. But next time, just start a new thread. Thanks.
|
|
Milk
New Member
Posts: 59
inherit
185504
0
Sept 22, 2021 13:14:00 GMT -8
Milk
59
November 2012
wolfmilk
|
Post by Milk on Feb 24, 2017 15:42:08 GMT -8
SafeInSanity , I'm assuming you no longer need this as this was posted before I gave you the solution in the other board. Am I correct that worked for you? Tumbleweed Hi! Is it possible for you to link me to this 'other solution'? I can't seem to find it anywhere.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Feb 24, 2017 18:26:49 GMT -8
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Feb 26, 2017 19:49:50 GMT -8
I guess we can see my code was crap. Oh, well. Template codes aren't my strong point anyways, so I'll just back out of this board.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Feb 26, 2017 23:42:48 GMT -8
I guess we can see my code was crap. Oh, well. Template codes aren't my strong point anyways, so I'll just back out of this board. Not crap at all! It worked perfectly! It was even exactly what I asked for. I just switched because I decided to do it someone else's way. You did exactly what I asked for..and I appreciate you! You are always so unbelievably helpful. <3
|
|