inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 25, 2013 11:46:38 GMT -8
A query I've just got when I upgraded to a domain - however one member has said its been happening for a while. The selecty thingy that tells it which category to load default isn't working.
Any help fixing that? ((I mean in the code that point you select as 'default' tab to load))
|
|
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 11:52:29 GMT -8
Errr. I don't know why that would happen. You mean the part where you have to edit the two red numbers?
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 25, 2013 11:55:55 GMT -8
Yes that part. Sorry I'm really bad at describing it
<div id="tabMain"> <table width="55%" class="tabbedcategories" style="position: fixed; bottom: 40px; left: 30px; height: 45px; border: 0px none;"> <tr> {foreach $[category]} <td class="tabbedtd" id="tab$[category.id]"> <a style="text-decoration: none;"> <div width="100%" height="100%" style="font-size: 12px !important;"> $[category.name] </div> </a> </td> {/foreach} </tr> </table> </div>
<script> $(document).ready(function() { $('td.tabbedtd').click(function() { $('td.tabbedtdactive').removeClass('tabbedtdactive').addClass('tabbedtd'); $(this).removeClass('tabbedtd').addClass('tabbedtdactive'); var catid = $(this).attr('id').split('tab')[1]; $('div.container.boards.tabbedcatsdiv').hide(); $('div.container.boards.'+catid+'.tabbedcatsdiv').show(); localStorage.setItem('tabcats',catid); }); if(localStorage.getItem('tabcats') != undefined) { var catId = localStorage.getItem('tabcats'); $('div.container.boards.tabbedcatsdiv').hide(); $('div.container.boards.'+catId+'.tabbedcatsdiv').show(); $('td.tabbedtd#tab'+catId).removeClass('tabbedtd').addClass('tabbedtdactive'); } else if(localStorage.getItem('tabcats') == undefined) { $('div.container.boards.tabbedcatsdiv').hide(); $('div.container.boards.1.tabbedcatsdiv').show(); $('td.tabbedtd#tab1').removeClass('tabbedtd').addClass('tabbedtdactive'); } }); </script>
<div id="tabmain2"> {foreach $[category]} $[category.anchor] <div class="container boards $[category.id] tabbedcatsdiv"> <div class="content cap-bottom"> $[category.board_list] </div> </div> {/foreach} </div>
That's the full code I use
|
|
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 12:02:02 GMT -8
copy/paste from the original post and tell me if that fixes it.
Also the default tab is only if they haven't left the page after selecting something. The default tab is only for if they are new to the forum or they clear their cache, cookies, etc.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 25, 2013 12:02:53 GMT -8
All of it or just the script? Because I've got a lot of modifications on it to allow it to show how I need?
|
|
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 12:04:18 GMT -8
Just the script. And read my update in my previous post.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 25, 2013 12:06:06 GMT -8
Okay - and I get that but literally when I was checking it out in firefox (where I don't browse often) it was showing 'nadda') -goes to update script-. Once a category tab was selected it was shown normally and worked normally
|
|
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 12:07:10 GMT -8
Ah alright. Well i let me know how the new script works for ya.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 25, 2013 12:10:15 GMT -8
It seems to be working now - however I don't quite get how the id has changed from 1 to 2 for categories but
|
|
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 12:11:03 GMT -8
I don't control the id's of the boards so I can't help ya there. And I'm glad you got it.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2013 1:16:52 GMT -8
Someone else has given me another strange glitch. But I don't know if it's to do with their laptop or anything or a code issue As you can see the first two tabs are... gone. Help?
|
|
inherit
lilly_andrew@live.com
195630
0
Sept 13, 2013 4:26:20 GMT -8
lillyandrew
10
June 2013
lillyandrew
|
Post by lillyandrew on Jul 31, 2013 20:30:35 GMT -8
Nice thanks.
|
|
[renz]
Junior Member
Posts: 249
inherit
ohgirlyoucute@yahoo.com
194370
0
Sept 28, 2015 13:25:08 GMT -8
[renz]
249
May 2013
littlemissriot
|
Post by [renz] on Aug 24, 2013 11:16:37 GMT -8
how do i make it so the categories cut off at a certain point? i only want it to go three across, but right now it's split perfectly even with six on top and six on bottom but again, i want it to be three on top and then three rows below
|
|
inherit
190222
0
Jul 25, 2014 20:40:14 GMT -8
Hakushi
6
February 2013
hakushi
|
Post by Hakushi on Sept 2, 2013 14:05:29 GMT -8
Is there a way to replace the category words with images?
|
|
inherit
200266
0
Aug 12, 2019 18:47:55 GMT -8
markaew
63
September 2013
markaew
|
Post by markaew on Sept 28, 2013 21:31:11 GMT -8
I understand this is an old thread but I tried the tabs and I love them!!
My problem is only the first two categories will link to my boards. The rest go no where.
|
|