Webboard

Pełna wersja: Usunięcie tabelki przy obrazkach tematu
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB:1.6.12
adres forum:http://www.opcjabinarna.com.pl
Próba usunięcia tabelek przy tematach. Screen: http://scr.hu/21tb/il7rm

Witam. Mam następujący problem. Otóż na forum jak są obrazki działów to po lewej stronie jest tabela, która odpowiadała wcześniej za przyciski informujące o "są nowe posty" itp. Usunąłem to jednak wszystko tylko została ta mała tabela, która wygląda mało estetycznie. Męczyłem się z tym jak ją usunąć ale za każdym razem przesuwało mi pozostałe tabele na lewo, niszcząc wygląd forum. Nie wiem, męczyłem się z tym ze 2 godziny. Może ktoś wie jak to usunąć? na screenie zaznaczyłem dokładnie na czerwono, o które tabelki chodzi.
aby to usunac to w szablonie: forumbit_depth2_forum usun to:
Kod:
<td class="trow2" align="center" valign="top" width="1"/>
Niestety, to nic nie daje. Robię według poradnika, który dał Snake_ (podobnie robiłem zresztą wcześniej) ale wtedy rodzi się następujący błąd: http://scr.hu/21tb/z6mfl

Pole na końcu staje się czarne i przesuwa tabelki. Problem stanowią połączone na początku tabelki, nie wiem gdzieś musi być mały błąd w kodzie, szukam, kombinuje, zamieniam i nie mogę go znaleźć.
Pokaż tutaj wszystkie szablony, które zostały wymienione w poradniku.
Proszę, oto one:

forumbit_depth1_cat.
1) Przed skorzystaniem z poradnika: http://scr.hu/21tb/t0jd4
2) Po skorzystaniu z poradnika: http://scr.hu/21tb/m85ns

forumbit_depth2_cat.
1) Przed skorzystaniem z poradnika: http://scr.hu/21tb/yu0nh
2) Po skorzystaniu z poradnika: http://scr.hu/21tb/ys1dw

forumbit_depth2_forum.
1) Przed skorzystaniem z poradnika: http://scr.hu/21tb/vtyv1
2) Po skorzystaniu z poradnika: http://scr.hu/21tb/rmrmk

forumdisplay_subforums.
1) Przed: http://scr.hu/21tb/azcuw
2) Po: http://scr.hu/21tb/oq441

Tak to wygląda, gdzieś tam musi się tworzyć jakaś dodatkowa tabela. Po działaniu zgodnie z tym poradnikiem, robi mi się dokładnie coś takiego jak podałem w poprzednim poście.
Wykonaj to:
Usunięcie tabelki przy obrazkach tematu - Post #215107

I szablon forumbit_depth1_cat usuń colspan="2".
Niestety to nic nie daje. Forum dalej przesuwa się o jedną tabelkę w prawą stronę pozostawiając czarne pole. Podejrzewam, że to może być wina tych stałych ikon, które wgrałem dlatego ta metoda nie działa.
Pokaż wymienione szablony tutaj (nie ss, lecz kody w odpowiednich tagach (code/php)). Da się to zrobić:
[Obrazek: Hfgd.png]
forumbit_depth1_cat
Kod PHP:
<table class="tborder" border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}">
<
thead>
<
tr>
<
td class="thead" colspan="6">
<
div class="expcolimage"><img id="cat_{$forum['fid']}_img" class="expander" title="{$expaltext}src="{$theme['imgdir']}/{$expcolimage}alt="{$expaltext}/></div>
<
div><strong><a href="{$forum_url}">{$forum['name']}</a></strong>
<
div class="smalltext">{$forum['description']}</div>
</
div></td>
</
tr>
</
thead>
<
tbody id="cat_{$forum['fid']}_e" style="{$expdisplay}">
<
tr>

<
td class="tcat" colspan="1"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<
td class="tcat" style="white-space: nowrap" width="85" align="center"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<
td class="tcat" style="white-space: nowrap" width="85" align="center"><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 /> 

forumbit_depth2_cat
Kod PHP:
<tr>
<
td class="{$bgcolor}valign="center"><img src="{$theme['imgdir']}/icons/{$forum['fid']}.png" /></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
Kod PHP:
<tr>

<
td class="{$bgcolor}align="center" valign="top" width="1"><img src="{$theme['imgdir']}/icons/{$forum['fid']}.png" /></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" 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

forumdisplay_subforums
Kod PHP:
<table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</
tr>
<
tr>

<
td class="tcat" width="59%"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<
td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<
td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<
td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</
tr>
{
$forums}
</
table>
<
br /> 
Zrób to co masz w poradniku, a
forumbit_depth1_cat zamień na
Kod PHP:
<table class="tborder" border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}">
<
thead>
<
tr>
<
td class="thead" colspan="6">
<
div class="expcolimage"><img id="cat_{$forum['fid']}_img" class="expander" title="{$expaltext}src="{$theme['imgdir']}/{$expcolimage}alt="{$expaltext}/></div>
<
div><strong><a href="{$forum_url}">{$forum['name']}</a></strong>
<
div class="smalltext">{$forum['description']}</div>
</
div></td>
</
tr>
</
thead>
<
tbody id="cat_{$forum['fid']}_e" style="{$expdisplay}">
<
tr>

<
td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<
td class="tcat" style="white-space: nowrap" width="85" align="center"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<
td class="tcat" style="white-space: nowrap" width="85" align="center"><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 /> 

Pozamieniałem. Wszystkie szablony mam już tak jak to wygląda po edycji w poradniku. Problem stanowi jednak cały czas szablon forumbit_depth2_forum

Przed edycją wygląda on tak:
Kod PHP:
<tr>
<
td class="{$bgcolor}align="center" valign="top" width="1">
<
td class="{$bgcolor}align="center" valign="top" width="1"><img src="{$theme['imgdir']}/icons/{$forum['fid']}.png" /></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" 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>[php]

W momencie gdy kasuje fragment 
[php]<td class="{$bgcolor}align="center" valign="top" width="1"

To forum się przesuwa w lewo. Cała reszta zrobiona jest tak jak w poradniku + to co mówiłeś. Nie wiem czemu to nie chce reagować.
Zrób to co pisałem z colspan, nie wiem jak to wygląda w kodzie strony, więc niewiele pomogę dalej.
Niestety, nic to nie daje. Wszystkie kody mam już pozmieniane jak trzeba, a momencie edycji tego fragmentu forum uparcie przesuwa się w ledwo. No cóż, dałem Ci reputację za dobre chęci pomocy. Spróbuję się dalej pomęczyć jeszcze jak nie wyjdzie, to trudno będzie musiało tak zostać.
Wgrałem jeszcze raz szablon, który wcześniej posłużył mi za podkład do edycji. Następnie pozamieniałem wszystkie rzeczy z wyjątkiem tych i zastosowałem się jeszcze raz do wskazówek z poradnika. Pomogło. Nie wiem gdzieś tam chyba po prostu kod w ogóle nie reagował na edycję niektórych elementów i dlatego to nic nie pomagało. W każdym razie już naprawione. Dziękuję wszystkim za pomoc.