Post by Teg on May 16, 2016 23:49:54 GMT -8
pawl , Brian , David Clark , or anyone else that might be able to help me.
I'm trying to recode a theme I coded in Codepen.io, to work with ProBoards. That said. I'm having issues with the board list layout. Essentially, each row will contain 4 boards (4 columns). Each board will have it's own custom board icon (new/old) via the plugin.
I've tried converting it over to tables the way PB does it and it just isn't working.
For the no pb version, the codepen.io can be found here: codepen.io/teg/pen/YqbPQw <!--Boards--> is marked in the HTML and the css for those sections is at the bottom of the css...
Here is what I currently have for my Board List Template. Mind you I've changed it over and over again achieving no results for the past 5-6 hours. Please, help. I do want to keep my class names if possible.
Forum URL: itshogwarts.boards.net
I'm trying to recode a theme I coded in Codepen.io, to work with ProBoards. That said. I'm having issues with the board list layout. Essentially, each row will contain 4 boards (4 columns). Each board will have it's own custom board icon (new/old) via the plugin.
I've tried converting it over to tables the way PB does it and it just isn't working.
For the no pb version, the codepen.io can be found here: codepen.io/teg/pen/YqbPQw <!--Boards--> is marked in the HTML and the css for those sections is at the bottom of the css...
Here is what I currently have for my Board List Template. Mind you I've changed it over and over again achieving no results for the past 5-6 hours. Please, help. I do want to keep my class names if possible.
Forum URL: itshogwarts.boards.net
{foreach $[board]}
{if !$[board.is_redirect]}
<table style="background:url('http://storage.proboards.com/6525103/i/Dxwp7VQvuwM7DOZrN8fx.png') no-repeat center; margin-top: 15px; width: 100%;" class="list">
<tr>
<td style="width: 25%;" class="main clickable">
<div class="forumBan">
{if $[board.category_id] == "1"}
<h3 class="enHallTitles"><a href="$[board.href]">$[board]</a></h3>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}
{elseif $[board.category_id] == "3"}
<h3 class="groundsTitles"><a href="$[board.href]">$[board]</a></h3>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}
{elseif $[board.category_id] == "4"}
<h3 class="castleTitles"><a href="$[board.href]">$[board]</a></h3>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}
{else}
<span class="link">$[board]</span>{if $[board.num_viewing]}<span class="viewing"> - $[board.num_viewing] Viewing</span>{/if}<br />
{/if}
<p class="boardDescriptions">$[board.description]</p>
<span style="padding-right: 5px;">Posts:</span>
<span>{if $[board.posts] == -1}N/A{else}$[board.posts]{/if}</span>
<span style="padding-left: 10px; padding-right: 5px;">Last Post:</span>
{if $[board.posts] > 0}
{if $[board.last_thread]}
<span>by $[board.last_thread.last_post.created_by]</span>
<span class="date">$[board.last_thread.last_post.created_on]</span>
{/if}
{else}
No posts.
{/if}
{/if}
</div>
<td class="icons">$[board.icon]</td>
</td>
</tr>
</table>
{/if}
{/foreach}