Wyrównanie tematów i postów obok działu.

Błąd   Założony przez  Ezonek.

wersja skryptu MyBB: 1.6.8
adres forum:board-alia.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
http://screenshooter.net/0845455/xgmwjrw - chce wyrównać Threads i Posts żeby były równo w każdym dziale.
A może byś nie używał wulgaryzmów... Nawet na screenie :facepalm:

Podaj zawartość szablonów forumbit_depth1_cat i forumbit_depth2_cat.
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Jej, już zamazuje.
forumbit_depth1_cat
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="posfix">
<span class="arrow" ></span>
<div class="expcolimage"><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>
<div class="smalltext"><span class="hover_show">{$forum['description']}</span>
<span class="left" ></span><span class="right" ></span>
</div></strong>
</div>
</div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<br />

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>
Coś mi ten kod nie bardzo pasuje do tego, co widzę na screenie, ale zobaczymy...


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" width="100">{$threads}{$unapproved['unapproved_threads']}
<br />{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap" width="320">{$lastpost}</td>
</tr>
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Opis działu -> forumbit_depth2/1_cat.
To podałem.

depth2
<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>

depth1
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="posfix">
<span class="arrow" ></span>
<div class="expcolimage"><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>
<div class="smalltext"><span class="hover_show">{$forum['description']}</span>
<span class="left" ></span><span class="right" ></span>
</div></strong>
</div>
</div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<br />
A ja Ci podałem kod, na który masz zamienić forumbit_depth2_cat.
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Zamieniłem, dalej nic.
podaj jeszcze forumbit_depth2_forum, bo o nim zapomniałem.
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
<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}">
<strong class="forumtext"><a href="{$forum_url}">{$forum['name']}</a>
<a href="{$mybb->settings['bburl']}/syndication.php?fid={$forum['fid']}" style="position:relative; top:2px;"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="RSS Feeds" /></a>
</strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" align="left" style="white-space: nowrap">
<small>{$threads}{$unapproved['unapproved_threads']} Threads<br />
{$posts}{$unapproved['unapproved_posts']} Posts</small></td>
<td class="{$bgcolor}" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
<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}">
<
strong class="forumtext"><a href="{$forum_url}">{$forum['name']}</a>
<
a href="{$mybb->settings['bburl']}/syndication.php?fid={$forum['fid']}style="position:relative; top:2px;"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="RSS Feeds" /></a>
</
strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</
td>
<
td class="{$bgcolor}align="left" style="white-space: nowrap" width="100">
<
small>{$threads}{$unapproved['unapproved_threads']} Threads<br />
{
$posts}{$unapproved['unapproved_posts']} Posts</small></td>
<
td class="{$bgcolor}align="right" style="white-space: nowrap" width="320">{$lastpost}</td>
</
tr
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Wejdź na moje forum i zobacz co się stało, po tym jak wkleiłem kod podany przez Ciebie.

Błędny ten twój kod.
Mogłeś go zachować, póki bym nie obejrzał efektu... Bo w sumie powinno być dobrze, a teraz nie wiem, czy przesadziłem z szerokością komórek i dlatego było źle, czy inny czort.
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Wstawię go teraz i jak zobaczysz go to odpisz.
<td&nbsp;class="trow1"&nbsp;align="center"&nbsp;width="1"><img&nbsp;src="images/cmsbb/on.gif"&nbsp;alt="Dział zawiera nowe posty"&nbsp;title="Dział zawiera nowe posty"&nbsp;class="ajax_mark_read"&nbsp;id="mark_read_2"&nbsp;/></td

Przy kopiowaniu i wklejanu najwidoczniej pozamieniało ci wszystkie space na &nbsp; dlatego się sypie.
Wysyłam zatem kod w załączniku jako plik tekstowy. Wklej go zamiast tego, co teraz masz:

  forumbit_depth2_forum.txt (Rozmiar: 953 bajtów / Pobrań: 115)
:: Akcja DZIĘKUJĘ ZA POMOC ::
Pomocy udzielam jedynie na forum. Wszystkie rzeczy wykraczające poza tą dziedzinę wykonuję odpłatnie.
Łap pomógł i repa, ale..
http://screenshooter.net/0845455/psmphph
Chce żeby były te statystyki tam gdzie dałem czerwone pole, jak to zmienić?



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

1 gości