Widok działów jak w ZetaBoards

Szukam  Założony przez  MazuLuka.

wersja skryptu MyBB: 1604
adres forum: Grafifor.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam,
Przeglądając internet trafiłem na to forum:
http://if.invisionfree.com/index/

Spodobały mi się statystyki działów:
   

Dlatego postanowiłem wdrożyć je w MyBB, ale nie wiem dlaczego mimo, iż struktura tabel jest identyczna jak w ZetaBoards, to forum się rozwala.

Znajomy doszedł do tego, że jako tako to wygląda:
   
Jednak mimo wszystko pragnąłbym, aby wyglądały one tak:
   

Teraz proszę mój szablon 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">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>

<td class="{$bgcolor}" valign="top">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap" colspan="2">{$lastpost}</td>
</tr>
<tr>
<td class="{$bgcolor}" valign="top" align="center" width="50%" style="white-space: nowrap">Postów: {$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="center" width="50%" style="white-space: nowrap">Wątków: {$threads}{$unapproved['unapproved_threads']}</td>
</tr>
</table>
</td>

</tr>

Gdy usunę znaczniki <table> forum się rozjeżdża...
Liczę na waszą pomoc. ;)
Adrian napisał 31.07.2011, 14:19:
Poprawiłem nazwę wątku.
Obydwa pliki: forumbit_depth2_cat i forumbit_depth2_forum są takie same.
Wrzuć tutaj swój kod.
Żadna sprawa nie jest przegrana dopóki choć jeden szaleniec o nią walczy. Tylko wariaci są coś warci.
forumbit_depth2_cat:

<tr>
<td rowspan="2" 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 rowspan="2" 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 colspan="2" class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap" width="180">{$lastpost}</td>
</tr>
<tr height="1">
<td class="{$bgcolor}"  valign="top" align="center" style="white-space: nowrap" width="90">Postów: {$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap" width="90">Wątków: {$threads}{$unapproved['unapproved_threads']}</td>
</tr>

forumbit_depth2_forum:

<tr>
<td rowspan="2" 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 rowspan="2" 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 colspan="2" class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap" width="180">{$lastpost}</td>
</tr>
<tr height="1">
<td class="{$bgcolor}"  valign="top" align="center" style="white-space: nowrap" width="90">Postów: {$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap" width="90">Wątków: {$threads}{$unapproved['unapproved_threads']}</td>
</tr>

forumbit_depth1_cat:

Cytat:<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-bottom: solid 5px #e0713a;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="thead_bg"><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /></div>
<div class="smalltext">{$forum['description']}</div>
</td></div>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<br />
Nie zauważyłem jakiegoś błędu w kodzie, mógłbyś podesłać jeszcze adres forum?
Żadna sprawa nie jest przegrana dopóki choć jeden szaleniec o nią walczy. Tylko wariaci są coś warci.
Pewnie:

http://forum-reklamowe.eu

____________________

Chciałbym dodać, że po przywróceniu:

- forumbit_depth1_cat
- forumbit_depth2_cat
- forumbit_depth2_forum

Do oryginału to i tak jest ten błąd.

______________________

Jak się przyjrzycie ikonkom po lewej stronie obok działów to też zobaczycie, że są jakoś nie równo.
Jest ktoś w stanie mi pomóc?
Zmieniałeś coś? Wygląda na to (FF 7), że wszystko jest w porządku.
Żadna sprawa nie jest przegrana dopóki choć jeden szaleniec o nią walczy. Tylko wariaci są coś warci.
Tak udało mi się naprawić błąd. Leżał on w global.css w klasie .thead dałem tam szerokość 102% po usunięciu tego wszystko było okej.
A czy mógłby mi ktoś przerobić moje kody bo próbowałem sam, ale za cholerę mi to nie wychodzi :( Mam szablon myColor, kody:

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">
<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" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth2_forum
<tr>
<td class="{$bgcolor}" align="center" 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="10%" valign="top" align="left" style="white-space: nowrap"><div class="counter"><strong>{$lang->forumbit_threads}:</strong> {$threads}{$unapproved['unapproved_threads']} <br />
<strong>{$lang->forumbit_posts}:</strong> {$posts}{$unapproved['unapproved_posts']}</div></td>
<td class="{$bgcolor}" width="20%" valign="top" align="left" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth1_cat
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="4">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong>{$forum['name']}</strong> <font size="1">{$forum['description']}</font></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<!-- <tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr> -->
{$sub_forums}
</tbody>
</table>
<br />

No za cholerę sam nie wiem jak to zrobić, a próbowałem sposobu z pierwszych postów...
Ja mam pytanie jak usunąć te linie


Załączone pliki Miniatury
   
Jak dodać kreskę w podświetlonym obszarze oraz pozbyć się kreski w drugim podświetlonym obszarze
[Obrazek: snap2011110522h44m50s00.png]

adres forum: www.mphforum.pl



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

1 gości