Post by BJ McConnell on Dec 20, 2019 15:23:05 GMT -8
Hi,
I'm hoping someone can help me with coding to have different title bar background images on the category title bar and the board title bar of my forum. It may also be important to know I am using the Collapsible Categories v1.0.6 plugin to change the category title bar image when there are new posts for a board within that category.
My forum: Berean Study Group Forum
I don't know much about coding so this is just a guess but I would think I need to add something to one of the following Board templates...
Thread List template:
or maybe,
Board List template:
Thank you!!
I'm hoping someone can help me with coding to have different title bar background images on the category title bar and the board title bar of my forum. It may also be important to know I am using the Collapsible Categories v1.0.6 plugin to change the category title bar image when there are new posts for a board within that category.
My forum: Berean Study Group Forum
I don't know much about coding so this is just a guess but I would think I need to add something to one of the following Board templates...
Thread List template:
$[image]{foreach $[thread]}
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.icon]</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]</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">Sorry, there are no threads here. Maybe you should create one?</td>
</tr>
{/if}
or maybe,
Board List template:
<table class="list" role="grid">
<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>
<tbody>
{foreach $[board]}
{if !$[board.is_redirect]}
<tr id="$[board.content_id]" class="$[board.content_class]">
<td class="icon">$[board.icon]</td>
<td class="main clickable">
<span class="link">$[board]</span>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}<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]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[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">
{if $[board.posts] > 0}
{if $[board.last_thread]}
$[board.last_thread.recent_link]<br />
by $[board.last_thread.last_post.created_by]<br />
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
<font color="ae522b">No posts have been made on this board.</font>
{/if}
</td>
</tr>
{else}
<tr id="$[board.content_id]" class="$[board.content_class]">
<td class="icon">$[board.icon]</td>
<td class="main clickable redirect last" colspan="4">
<span class="link">$[board]</span><br />
<p class="description">$[board.description]</p>
</td>
</tr>
{/if}
{/foreach}
{if !$[board]}
<tr class="last"><td class="last center" colspan="5">No boards were found.</td></tr>
{/if}
</tbody>
</table>
Thank you!!