teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 27, 2010 18:00:54 GMT -8
If possible, I would like to remove the bar with the category name in it above each board on the main page. I know there is a "hide" option, but that hides all the boards within the category. I don't want to hide the boards, just the category name bar. Hope this makes sense! Edit: Just wanted to add that my reason for wanting to delete the category bar is because I only have one board in each category. The name of each board is the same as the category it is in, so there is no reason have the name listed twice. Thanks!
|
|
inherit
Resident WWE Fanatic
109125
0
Feb 24, 2022 22:36:56 GMT -8
Candice
?Just because you haven?t heard about it, doesn?t mean it?s a conspiracy theory.?
16,096
August 2007
quietgirl
|
Post by Candice on Jun 27, 2010 18:16:55 GMT -8
If possible, I would like to remove the bar with the category name in it above each board on the main page. I know there is a "hide" option, but that hides all the boards within the category. I don't want to hide the boards, just the category name bar. Hope this makes sense! Edit: Just wanted to add that my reason for wanting to delete the category bar is because I only have one board in each category. The name of each board is the same as the category it is in, so there is no reason have the name listed twice. Thanks! Hi, I'm not sure if it works, but you can try this code. Read what he says to edit, as well.
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 27, 2010 18:40:08 GMT -8
Thanks for finding that code for me, Candy. Unfortunately, it only removes the category bar for the top board, not the other 4 that I have. I tried putting the code in different locations in the footer, but it was still the same. Only the first category bar was removed, the others are still there.
|
|
inherit
Resident WWE Fanatic
109125
0
Feb 24, 2022 22:36:56 GMT -8
Candice
?Just because you haven?t heard about it, doesn?t mean it?s a conspiracy theory.?
16,096
August 2007
quietgirl
|
Post by Candice on Jun 27, 2010 18:41:19 GMT -8
Thanks for finding that code for me, Candy. Unfortunately, it only removes the category bar for the top board, not the other 4 that I have. I tried putting the code in different locations in the footer, but it was still the same. Only the first category bar was removed, the others are still there. Did you edit it like it says to do? if(td .className=="catbg"&& td.innerHTML.match(/General|Graphics|ect/)){
The red part is what you're suppose to change, you put in the ID of the category there.
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 27, 2010 19:10:50 GMT -8
Well, I have run out of ideas to try to make this code work properly. I tried putting just the ID names separated with the (|) but it didn't work at all. I have tried all sorts of different things. I even tried typing in the full name of the second category bar, and it still only removed the first one! I also tried not typing in any names at all and just added the "|" which is supposed to go after each name. Even typing that in worked to remove the first category bar! So I am totally stumped here! Maybe you could move this thread to the code request board to see if someone there can figure it out? Thanks!
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Jun 27, 2010 21:42:17 GMT -8
For that code you need to put the category names, and not their IDs.
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 28, 2010 0:36:55 GMT -8
I tried it that way, Craig and it didn't work. Here's a copy of the code I am using: <script type="text/javascript"> <!-- var td = document.body.getElementsByTagName("td"); if (!location.href.match(/board=|action=(?!home)/)) { for(i=0; i<td.length; i++){ if(td .className=="catbg"&& td.innerHTML.match(/Family News|Favorite Family Photos|General Discussion Board|Technical Questions|Archives/)){ td.parentNode.style.display="none"; } } } // --> </script>
As you can see, I typed the full names of all 5 categories I have. But still, only the top category has been removed.the others remain. I even tried adding the "|" before the first name and also after the last name, but it didn't change anything. Still only the first category is getting removed.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 28, 2010 1:14:54 GMT -8
if(td.className=="catbg"&& td.innerHTML.match(/(Family News|Favorite Family Photos|General Discussion Board|Technical Questions|Archives)/)){
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 28, 2010 8:52:50 GMT -8
Thanks for that Worm, but it appears to be identical to the code I already have. I went ahead though, and replaced that section of the original code with what you indicated, and still no change. Only the first category bar on my board has been removed.
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 29, 2010 9:49:41 GMT -8
BUMP Can anyone tell me if the code I have posted here is correct or not? If not, is there some other code I can use to get rid of the category bars? Thanks!
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jun 29, 2010 10:24:59 GMT -8
URL to the site?
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Jun 30, 2010 8:32:29 GMT -8
www.terristorms.proboards.com Here you go. Since the site is a private family site, it's usually not open to guests, but I went ahead and opened it up so you could take a look and hopefully help me figure out what the problem is with this code. I always post a note to the rest of the members of my forum letting them know each time I do this, so that there won't be any squabbling or misunderstandings.
|
|