Post by Sammiie on Mar 30, 2018 16:20:05 GMT -8
Hello!
I was working all day yesterday to get my board images the way I want them, which included combining separate image & description divs into one and making it a picture, which upon hover, shows the description. That I seemed to manage, but upon doing so, I realized I'd have to somehow change each board image on its own... which is fine. I've seen code utilizing ids to do this before, only I think I did it right, but it's not working on my board
Does anyone have any direction for me?
Here's my board
Here's the id code I'm trying to use in the Style Sheet:
Here's my Boards List code from Layout Templates:
I suspect it might have something to do with the Layout Templates portion of it, but I'm not at all savvy in Javascript and the code used in there, so I don't want to mess with it too much.
I'll be happy to provide anymore information you need to help me fix this issue! Thanks in advance!
I was working all day yesterday to get my board images the way I want them, which included combining separate image & description divs into one and making it a picture, which upon hover, shows the description. That I seemed to manage, but upon doing so, I realized I'd have to somehow change each board image on its own... which is fine. I've seen code utilizing ids to do this before, only I think I did it right, but it's not working on my board
Does anyone have any direction for me?
Here's my board
Here's the id code I'm trying to use in the Style Sheet:
#board-21 .mw_descimg { background-image:url('https://images2.imgbox.com/ae/0e/EgabKXaT_o.png'); z-index:1; }
#board-20 .mw_descimg { background-image:url('https://images2.imgbox.com/ae/0e/EgabKXaT_o.png'); z-index:1; }
Here's my Boards List code from Layout Templates:
<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>-->
<table>
<tbody>
<tr>
<td class="mw_boardmaintd">
{foreach $[board]}
{if !$[board.is_redirect]}
<div class="mw_boardmaindiv">
<table cellspacing="0" cellpadding="0" class="mw_brdtoptbl">
<tr>
<td class="mw_tdava">
{if $[board.icon.title] == "New Posts"}
<div class="newpostavatar circlepostavatar">
{if $[board.posts] > 0}
<a href="$[board.last_thread.recent_link.href]">$[board.last_thread.last_post.created_by.avatar_medium]</a>
{else}
<div class="blankboardava"></div>
{/if}
</div>
{else}
<div class="nonewpostavatar circlepostavatar">
{if $[board.posts] > 0}
<a href="$[board.last_thread.recent_link.href]">$[board.last_thread.last_post.created_by.avatar_medium]</a>
{else}
<div class="blankboardava"></div>
{/if}
</div>
{/if}
</td>
<td class="mw_tdbrdlink">
$[board]<br>
<!--<div class="mw_brddesc"></div>-->
<div class="mw_lpinfo">
{if $[board.posts] > 0}
{if $[board.last_thread]}
<div class="mw_lpfld">$[board.last_thread.recent_link] </div>
<div class="mw_lpfld">BY $[board.last_thread.last_post.created_by] ON $[board.last_thread.last_post.created_on] </div>
<div class="mw_lpfld">{if $[board.threads] == -1}N/A{else}<font>$[board.threads]</font> THREADS{/if} // {if $[board.posts] == -1}N/A{else}<font>$[board.posts]</font> POSTS{/if}</div>
{/if}
{else}
<div class="mw_brddesc">No posts have been made on this board.</div>
{/if}
</div>
</td>
<td class="mw_tdbrddesc">
<div class="mw_descdiv">
<div class="mw_sbbrd">
{if $[board.sub_board]}
{foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a> | {/foreach}
{/if}
</div>
<div class="mw_descimg"><div class="description">$[board.description]</div></div>
</div>
</td>
</tr>
</table>
</div>
{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}
</td>
</tr>
<!--
{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}
No posts have been made on this board.
{/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>
I suspect it might have something to do with the Layout Templates portion of it, but I'm not at all savvy in Javascript and the code used in there, so I don't want to mess with it too much.
I'll be happy to provide anymore information you need to help me fix this issue! Thanks in advance!