MyBB Community Forums

Full Version: Theme modification herpderpery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I'm modifying Photoshop Bliss v3 for use at one of my forums (don't really like the "one block for all forums" thing) and am trying to add the table footer seen o the board stats section to the bottom of each category, but I'm hitting problems in that either the imge repeats for about an inch of screen space and I don't get the whole footer, or I don't get the thead image at all but the footer spans the length of the forum container. Here's my current forumbit_depth1_cat for those who are interested:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage" style="height:0; margin:0 ;">&nbsp;<img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>&nbsp;{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="right" style="white-space: nowrap"><span class="smalltext"><strong>Stats</strong></span></td>
<td class="tcat" width="200" align="left"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
<tr class="tfoot" style="background: url(images/psbliss/thead.png); background-repeat: repeat-x;">
</tr>
</tbody>
</table>
<br />

Anybody?

(yes i want to bump this stupid automerge!)
Nobody?
Well, hard to tell without a link to a live demo, but try this:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage" style="height:0; margin:0 ;">&nbsp;<img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>&nbsp;{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="right" style="white-space: nowrap"><span class="smalltext"><strong>Stats</strong></span></td>
<td class="tcat" width="200" align="left"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
<tr>
<td class="tfoot" style="background: url(images/psbliss/thead.png) repeat-x top left;" colspan="5">
</td>
</tr>
</tbody>
</table>
<br />
That did it! Thanks Eric.
No problem. Smile