inherit
168103
0
Jul 23, 2015 18:01:19 GMT -8
SkyBear
152
June 2011
shizabot
|
Post by SkyBear on Nov 7, 2012 13:38:41 GMT -8
Is it possible for a plugin to be made which removes the Board, Thread, Posts and Last Post rows from the main page as well as, possibly, removing the entire Threads and Posts columns?
Thank you.
|
|
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 Nov 7, 2012 16:26:47 GMT -8
This can be done through template modification.
To do so, go to Admin Home > Themes > Layout Templates and select Board in the list of templates. And then click the click Board List tab.
Once there find this in the coding
<thead> <tr> <th class="icon"></th> <th class="main">Board</th> <th class="threads">Threads</th> <th class="posts">Posts</th> <th class="latest last">Last Post</th> </tr> </thead>
Remove that. And then find this in the coding.
<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"> {if $[board.posts] > 0} {if $[board.last_thread]} $[board.last_thread.recent_link]<br /> by $[board.last_thread.last_post.created_by_user]<br /> <span class="date">$[board.last_thread.last_post.date]</span> {/if} {else} No posts have been made on this board. {/if} </td>
And remove that. Then save.
Now go to Admin Home > Themes > Colors & Styles and then click the css tab.
and at the very bottom add this
/*Manually Added CSS*/ td.icon { width:10%; } td.main.clickable { width:90%; }
If you need any help just ask. It works on my test site. I hope it's what you wanted.
|
|
inherit
168103
0
Jul 23, 2015 18:01:19 GMT -8
SkyBear
152
June 2011
shizabot
|
Post by SkyBear on Nov 8, 2012 3:01:18 GMT -8
That's perfect, thank you
|
|
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 Nov 8, 2012 11:22:14 GMT -8
No problem. Glad I could help!
|
|
inherit
120077
0
Mar 22, 2021 9:37:29 GMT -8
My Name is Billy Moonstone
726
February 2008
askandprosper
|
Post by My Name is Billy Moonstone on Nov 17, 2012 4:51:18 GMT -8
Hi, this works perfectly, but is it possible to adapt it so it does all what you say above, but leaves the right hand column, showing number of topics/posts and last poster like in my V4 board: ilegal.org.uk/? Thanks
|
|
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 Nov 17, 2012 11:07:06 GMT -8
Do you have other modifications to the "Board" template?
|
|
inherit
120077
0
Mar 22, 2021 9:37:29 GMT -8
My Name is Billy Moonstone
726
February 2008
askandprosper
|
Post by My Name is Billy Moonstone on Nov 18, 2012 1:40:59 GMT -8
Not to my Betazone board, no. I reset it all to defaults yesterday by 'accident'. Also, I can't seem to import any plugins either, but that's a different problem
So no, no mods at all at the minute
|
|
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 18, 2012 8:45:15 GMT -8
Hi, this works perfectly, but is it possible to adapt it so it does all what you say above, but leaves the right hand column, showing number of topics/posts and last poster like in my V4 board: ilegal.org.uk/? Thanks In future, best to make a new thread mate. =] However, this should sort you out; Admin Panel -> Themes -> Layout Templates -> Board -> [ tab ] Board List Lines 33-45, replace with the following (nothing is deleted, only sections moved around or commented out. It's ALWAYS best to keep a copy of your original coding somewhere!). <!-- <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"> {if $[board.threads] == -1}N/A{else}Topics: $[board.threads]{/if} {if $[board.posts] == -1}N/A{else}Posts: $[board.posts]{/if}<br /> {if $[board.posts] > 0} <span class="date">$[board.last_thread.last_post.date]</span> {if $[board.last_thread]} $[board.last_thread.recent_link]<br /> by $[board.last_thread.last_post.created_by_user]<br /> {/if} {else} No posts have been made on this board. {/if} </td>Then, have a read of this post to get your widths right. =]
|
|
inherit
120077
0
Mar 22, 2021 9:37:29 GMT -8
My Name is Billy Moonstone
726
February 2008
askandprosper
|
Post by My Name is Billy Moonstone on Nov 19, 2012 7:08:33 GMT -8
You're a star Paul, thanks. I'll try it later
And yes, will make sure I start a new thread next time - apologies
|
|
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 19, 2012 7:33:08 GMT -8
You're a star Paul, thanks. I'll try it later And yes, will make sure I start a new thread next time - apologies No problems. Let me know if you have any trouble. =]
|
|
inherit
120077
0
Mar 22, 2021 9:37:29 GMT -8
My Name is Billy Moonstone
726
February 2008
askandprosper
|
Post by My Name is Billy Moonstone on Nov 22, 2012 6:48:00 GMT -8
Hi Paul - it's nearly there - I've started a new thread about it - would you mind taking a look and letting me know what you think and replying to that one? Cheers mate. The new thread is: support.proboards.com/post/5017724/thread
|
|