Widok działu jak w IPB

Inne  Założony przez  hipekxd.

wersja skryptu MyBB: 1.6.8
adres forum: www.winforum.eu
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Witam, jak mogę zrobić widok działu jak w IPB? Tzn. chodzi mi o ilość wątków i postów w każdym dziale. W MyBB jest to ułożone w tabelce, a w IPB tak ładnie jedno pod drugim. Jak mogę coś takiego zrobić?
Jakiś screen może jak to ma wyglądać? Nie korzystam z IPB, więc się nie znam. Głównie chodzi ci chyba o to:
szablony > opis działu > forumbit_depth2_cat
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top" colspan="3">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}
<br />{$lang->forumbit_threads} {$threads}{$unapproved['unapproved_threads']}, {$lang->forumbit_posts}{$posts}{$unapproved['unapproved_posts']}
{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth1_cat:
<table border="0" class="tborder" cellspacing="0" cellpadding="2px">
<thead>
<tr>
<td class="thead-left" width="16px" height="28px"></td><td class="thead" height="28px">
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td><td class="thead-right" width="246px" height="28px"><div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div></td>
</tr>
</thead>
</table>
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" rules="none" class="tborder" style="border: 1px solid #58290e">
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr class="tcat">
<td colspan="4"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Depth2_cat - mam identyczne wszystko
Depth1_cat - jak to wpisałem to rozwaliło mi styl

Chodzi mi o coś takiego jak w miniaturce (kliknij, aby powiększyć :D). A dokładniej o to co pisze: liczba postów i wątków. W MyBB jest to w formie tabelki, a w IPB jest jedno pod drugim napisane obok nazwy działu. Jak takie coś mogę zrobić?

   
Zamień zawartość:
forumbit_depth2_forum na:
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" width="15%" valign="top" align="center" style="white-space: nowrap"><strong><div class="smalltext">{$lang->forumbit_threads}: </strong>{$threads}{$unapproved['unapproved_threads']} <br />
<strong>{$lang->forumbit_posts}: </strong>{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" width="25%" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
</div>

i zawartość
forumbit_depth2_cat na:

<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" width="170" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top"  style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

Powinno być w porządku.
depth2_forum - zmieniłem na takie i jest ok, ale dzięki za pomoc :)

<tr>
<
td class="{$bgcolor}align="center" valign="top" width="1" style="width:40px; padding: 4px; background-color: #EFEEEE;"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}title="{$lightbulb['altonoff']}class="ajax_mark_read" id="mark_read_{$forum['fid']}/></td>
<
td class="{$bgcolor}valign="top" style="vertical-align:middle; width: 397px; padding-bottom: 15px;">
<
div style="padding-left: 6px;"><strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div></div>
</
td>
<
tr>
<
td class="{$bgcolor}align"center" valign="top" width="1" style="width:40px; padding: 4px;">
<
img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}title="{$lightbulb['altonoff']}class="ajax_mark_read" id="mark_read_{$forum['fid']}/></td>
<
td class="{$bgcolor}valign="top" style="vertical-align:middle; width: 397px; padding-bottom: 15px;">
<
div style="padding-left: 6px;"><strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div></div>
</
td>
<
td class="{$bgcolor}valign="top" style="white-space: nowrap; vertical-align: middle; width: 100px; ">
<
div class="show">
<
dl class="forumbit" style>
<
center><b>{$threads}{$unapproved['unapproved_threads']}</bWątków</span></center>
<
center><b>{$posts}{$unapproved['unapproved_posts']}</bPostów</span></center>
<
br>
   
</
dl>
</
td
<
td class="{$bgcolor}valign="top" align="right" style="white-space: nowrap;  text-align:right;  padding-right: 24px; vertical-align:middle; width:223px; ">{$lastpost}</td>
</
div>
</
tr



Użytkownicy przeglądający ten wątek:

1 gości