Relic
Junior Member
Posts: 243
inherit
179570
0
Apr 9, 2014 20:02:40 GMT -8
Relic
243
May 2012
sin1993
|
Post by Relic on Nov 17, 2012 12:36:05 GMT -8
I would like to remove the entire on/off images, threads, and posts columns that are visible on the main page (and for sub-boards as well).
Is there a way to do this via template modification, or would it need to be a plugin?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Nov 17, 2012 16:08:45 GMT -8
So you'd rather it just be the board name, and the last post box? =]
|
|
Relic
Junior Member
Posts: 243
inherit
179570
0
Apr 9, 2014 20:02:40 GMT -8
Relic
243
May 2012
sin1993
|
Post by Relic on Nov 17, 2012 16:37:35 GMT -8
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Nov 17, 2012 16:48:34 GMT -8
EDIT: This post is better explained here =]Okay, this should work for you; Admin Panel -> Themes -> Layout Templates -> Board -> [ tab ] Board List Lines 15-35, add in the red sections. <!-- <td class="icon">$[board.icon]</td> --> <td class="main clickable"> <span class="link">$[board]</span><br /> <p class="description">$[board.description]</p> {if $[board.num_mods]} <p class="moderators"> Moderator{if $[board.num_mods] != 1}s{/if}: {foreach $[board.moderator_group]}$[board.moderator_group.comma_before] $[board.moderator_group]{/foreach}{if $[board.moderator]}{if $[board.moderator_group]}, {/if}{/if} {foreach $[board.moderator]}$[board.moderator]$[board.moderator.comma] {/foreach} </p> {/if} {if $[board.sub_board]} <p class="sub-boards"> Sub-board{if $[board.sub_board] != 1}s{/if}: {foreach $[board.sub_board]}$[board.sub_board]$[board.sub_board.comma] {/foreach} </p> {/if} </td> <!-- <td class="threads">{if $[board.threads] == -1}N/A{else}$[board.threads]{/if}</td> <td class="posts">{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</td> --> <td class="latest last">Whether there's a better way or not I don't know, but that should do exactly what you want. It will stop the sections from showing, but won't delete the code. This means that if you want them back at any point, instead of re-writing the code you simply have to remove the appropriate <!-- --> sections. =]
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Nov 17, 2012 16:57:28 GMT -8
Additionally, if you want to resize the two cells that are left, look at the following (I've yet to have a proper play with this, so I'd recommend keeping a copy of the original settings if you're going to tweak them).
Admin Panel -> Themes -> Colours & Styles -> Style Sheet -> [ Tab ] Style Sheet
Lines 847-850 are copied below;
.boards .main { width: 59%; text-align: @board_align_main; } .boards .threads { width: 9%; text-align: @board_align_threads; white-space: nowrap; } .boards .posts { width: 8%; text-align: @board_align_posts; white-space: nowrap; } .boards .latest { width: 20%; text-align: @board_align_last_post; }
The middle two are irrelevant, as we've just removed them from the board list. However, '.boards .main' and '.boards .latest' both have editable width values, highlighted in red. You could either use a percentage (like already shown, just make sure it adds up to the correct figure, not including the middle two), or a px figure (making sure it adds up to the same width as you've set the forum to). Like I said though, this would require a little bit of trial and error on your part, to make it suit your own forum. =]
|
|
Relic
Junior Member
Posts: 243
inherit
179570
0
Apr 9, 2014 20:02:40 GMT -8
Relic
243
May 2012
sin1993
|
Post by Relic on Nov 17, 2012 17:03:55 GMT -8
Wow, that worked perfectly. I especially love how I didn't have to delete anything. Thank you so much!
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Nov 17, 2012 17:05:41 GMT -8
No worries. Let me know if you need any more help with it. =]
|
|