Post by Timebomb007 on Apr 15, 2022 11:48:55 GMT -8
Edit: Chris’ reply in my other post will suffice.
Forum URL: pondfriends.boards.net

Thread List template:
Forum URL: pondfriends.boards.net
{if $[thread.board.name] == "Forum Games" && ($[route.name] == "recent_threads")}
{else}
will hide the Forum Games board from pondfriends.boards.net/threads/recent, but it messes with the number of threads that show up on each page. At first, it was showing 5 threads on page 1 and 40 on page 2, but for some reason it now shows 9 threads on page 1, 25 on other pages. I tried the code MSG posted in my other thread, but it just added text to the top.
Thread List template:
{foreach $[thread]}
{if $[thread.board.name] == "Forum Games" && ($[route.name] == "recent_threads")}
{else}
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.created_by_user.avatar_quote]</td>
<td class="checkbox clickable">$[thread.checkbox]</td>
<td class="main clickable" title="$[thread.short_content]">
<table>
<tr>
<td>$[thread.icons]</td>
<td>
$[thread.labels]
<span class="link target">$[thread]</span>
{if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if}
</td>
</tr>
</table>
</td>
<td class="created-by clickable">$[thread.created_by_user]{if $[route.name] == "recent_threads"}<br><i>in</i><br>$[thread.board]{/if}</td>
<td class="replies clickable">$[thread.replies]</td>
<td class="views">$[thread.views]</td>
<td class="latest last">by $[thread.last_post.created_by]<br />$[thread.last_post.created_on]</td>
</tr>
{/foreach}
{if !$[thread]}
<tr class="last">
<td class="last center" colspan="7">No threads were found.</td>
</tr>
{/if}
{if $[page] != 1 && ($[route.name] == "list_threads")}
<script>
if(document.URL.indexOf("recent") >= 0){
window.history.go(0)}
</script>
{/if}
{if $[thread.board.name] == "Forum Games" && ($[route.name] == "recent_threads")}
{else}
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.created_by_user.avatar_quote]</td>
<td class="checkbox clickable">$[thread.checkbox]</td>
<td class="main clickable" title="$[thread.short_content]">
<table>
<tr>
<td>$[thread.icons]</td>
<td>
$[thread.labels]
<span class="link target">$[thread]</span>
{if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if}
</td>
</tr>
</table>
</td>
<td class="created-by clickable">$[thread.created_by_user]{if $[route.name] == "recent_threads"}<br><i>in</i><br>$[thread.board]{/if}</td>
<td class="replies clickable">$[thread.replies]</td>
<td class="views">$[thread.views]</td>
<td class="latest last">by $[thread.last_post.created_by]<br />$[thread.last_post.created_on]</td>
</tr>
{/foreach}
{if !$[thread]}
<tr class="last">
<td class="last center" colspan="7">No threads were found.</td>
</tr>
{/if}
{if $[page] != 1 && ($[route.name] == "list_threads")}
<script>
if(document.URL.indexOf("recent") >= 0){
window.history.go(0)}
</script>
{/if}