inherit
191764
0
Oct 12, 2022 4:32:24 GMT -8
gunzmcgraw
65
March 2013
gunzmcgraw
|
Post by gunzmcgraw on Apr 10, 2013 6:04:28 GMT -8
Hello
I posted this question on main support and was told to come here. Hope this is the right spot for this question? I would like to format my forum to have the first 2 categories to be incolumns then the rest of the cats in the traditional rows beneath. Like this pic exampleIs it possible to do this without having a PHD in html/coding :-) Thanks GunZ DIYmolds.com
|
|
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 Apr 10, 2013 8:59:34 GMT -8
I'm sort of blind coding this, but it should be possible (if a bit messy):
In your 'Home' template:
Modify this:
{foreach $[category]} $[category.anchor] <div class="container boards"> <div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div> <div class="content cap-bottom"> $[category.board_list] </div> </div> {/foreach}
to be like this:
<table> <tr> {foreach $[category]} {if $[category.id] == ID_#_OF_FIRST_CATEGORY} <td> $[category.anchor] <div class="container boards"> <div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div> <div class="content cap-bottom"> $[category.board_list] </div> </div> </td> {elseif $[category.id] == ID_#_OF_SECOND_CATEGORY} <td> $[category.anchor] <div class="container boards"> <div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div> <div class="content cap-bottom"> $[category.board_list] </div> </div> </td> {/if} {/foreach} </tr> </table>
{foreach $[category]} {if $[category.id] != ID_#_OF_FIRST_CATEGORY} {if $[category.id] != ID_#_OF_SECOND_CATEGORY} $[category.anchor] <div class="container boards"> <div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div> <div class="content cap-bottom"> $[category.board_list] </div> </div> {/if} {/if} {/foreach}
Of course, you might need to adjust some CSS styles after this, but that should at least get you started.
|
|
inherit
191764
0
Oct 12, 2022 4:32:24 GMT -8
gunzmcgraw
65
March 2013
gunzmcgraw
|
Post by gunzmcgraw on Apr 10, 2013 11:02:27 GMT -8
Thanks
I changed it and tried it on " preview first " but it looks the same/ no change.
|
|
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 Apr 10, 2013 12:07:33 GMT -8
I suppose I probably should have mentioned, did you replace the "ID_#_OF_FIRST_CATEGORY" type things with the appropriate ID numbers?
|
|
gunzmcgraw1
inherit
-5259170
0
Nov 24, 2024 19:31:44 GMT -8
gunzmcgraw1
0
January 1970
GUEST
|
Post by gunzmcgraw1 on Apr 11, 2013 3:52:37 GMT -8
Ya I'm a complete noob and novice. Thanks for your time. I'll tinker away :-)
|
|