MyBB Community Forums

Full Version: Changing the entire table row on hover?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well I tried out the tutorial here to make all the table rows on the forum index change when you hover over it, instead of just each td. Well, I just realized that this apparently doesn't change the table rows in the forumbit_depth2_forum template. (I believe that's the correct one)

So you can see what I mean, the table rows here change:
http://ameribricks.com/forum/

But those here do not:
http://ameribricks.com/forum/forumdisplay.php?fid=1

Here's the CSS which makes the ones on the index change:
tbody[id*='cat'] tr:hover td.trow1, 
tbody[id*='cat'] tr:hover td.trow2 {
    background: #dedede;
}


Hopefully that makes sense. Smile

Thanks in advance!
You'll need to edit the forumdisplay_subforums template.

Find:
<tr>
<td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</tr>

Add after:
<tbody id="cat_{$forum['fid']}_e">

Find:
{$forums}

Add after:
</tbody>
Thank you! It worked like a charm. Smile

Also, not sure if you remember me or not. I reviewed Pet Forums over on TAZ. It's doing very well, keep up the great work on it. Big Grin