Usunięcie tekstu"dział" pod belką oraz...

Szukam  Założony przez  sauber94.

wersja skryptu MyBB:
adres forum:
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Cześć, chciałem się dowiedzieć gdzie w kodzie grzebać przenieść tekst "Wątków" "Tematów" tak jak na screenie [1]oraz co zrobić by usunąć tekst "Dział" spod każdej belki [2].

[Obrazek: rxap.png]
ADVERTGAME.PL
1. Możesz użyć pluginu do tego celu: Wątki i posty w jednej kolumnie. Albo przez edycję szablonów. A dokładniej forumbit_depth1_cat/forumbit_depth2_cat/forumbit_depth2_forum + css. (Preferuję ten sposób, ponieważ sam nim robię) ;).

2. Wchodzisz w ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Opis działu -> forubmit_depth1_cat i

Szukasz:
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>

Zamieniasz na:
<td class="tcat" colspan="2"><span class="smalltext">&nbsp;</span></td>
Po wgraniu pluginu z tymi oddzielnymi wątkami i postami niestety coś na dole się popsuło. Pojawiły się pola które są zbędne. Link do forum 
PS: jak usunąć pozostałość belki po frazie "Dział" ?
ADVERTGAME.PL
https://webboard.pl/wiki.php?klasa-tcat-...sunac.html

A co do wątków i postów. Odinstaluj plugin i zrób tak:

ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Opis działu -> forumbit_depth2_cat:

Znajdź:
<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>

Zamień:
<td class="{$bgcolor}" valign="top" style="white-space: nowrap; vertical-align: middle; width: 100px;">
<dl class="forumbit">
    <dt>{$lang->forumbit_threads}:</dt> <dd>{$threads}{$unapproved['unapproved_threads']}</dd>
    <dt>{$lang->forumbit_posts}:</dt> <dd>{$posts}{$unapproved['unapproved_posts']}</dd>
</dl>
</td>

Następnie ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Opis działu -> forumbit_depth2_forum:

Znajdź:
<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>

Zamień:
<td class="{$bgcolor}" valign="top" style="white-space: nowrap; vertical-align: middle; width: 100px;">
<dl class="forumbit">
    <dt>{$lang->forumbit_threads}:</dt> <dd>{$threads}{$unapproved['unapproved_threads']}</dd>
    <dt>{$lang->forumbit_posts}:</dt> <dd>{$posts}{$unapproved['unapproved_posts']}</dd>
</dl>
</td>

Na koniec wejdź w ACP -> Style i Szablony -> Twój_Styl -> global.css -> Na koniec dodaj:
dl.forumbit {
    width: 100px;
    text-align: right;
    float: right;
    margin: 6px 0;
    float: left;
    font-size: 11px;
    font-weight: normal;
}

dl.forumbit dt {
    float: left;
    text-align: left;
}

dl.forumbit dd {
}
Usunięcie belki działa, lecz z tymi postami zobacz jak znowu teraz wyszło
csstalowawola.pl
ADVERTGAME.PL
Pokaż szablon forumbit_depth1_cat
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><a href="{$forum_url}">{$forum['name']}</a><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td style="padding:0" colspan="2"/>
<td style="padding:0" width="85"/>
<td style="padding:0" width="85"/>
<td style="padding:0" width="200"/>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
ADVERTGAME.PL
Zamień:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><a href="{$forum_url}">{$forum['name']}</a><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td style="padding:0" colspan="2"/>
<td style="padding:0" width="85"/>
<td style="padding:0" width="200"/>
</tr>
{$sub_forums}
</tbody>
</table>
<br />
Zobacz czy zmieniajac ten kod na twoim nie bylo innej cyferki? u mnie była 3 i dajac 3 cos podobnego sie stalo dałem 3 i wszystko ok
GibonekPL jeżeli dobrze widzę to nic w tym kodzie nie zmieniłeś.
ADVERTGAME.PL
Jak zamienisz to zauważysz że coś zmieniłem ;)
Nie działa ;p

Teraz zepsuło całkiem działy.

Coś naprawiłem lecz zwiększyły mi się te działy. Wiesz jak to zmniejszyć ?

Podeślę najlepiej wszystkie pliki które trzeba zmodyfikować tak jak mam zrobione:
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>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" style="white-space: nowrap; vertical-align: middle; width: 100px;">
<dl class="forumbit">
     <dt>{$lang->forumbit_threads}:</dt> <dd>{$threads}{$unapproved['unapproved_threads']}</dd>
     <dt>{$lang->forumbit_posts}:</dt> <dd>{$posts}{$unapproved['unapproved_posts']}</dd>
</dl>
</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth2_forum
<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" style="white-space: nowrap; vertical-align: middle; width: 100px;">
<dl class="forumbit">
     <dt>{$lang->forumbit_threads}:</dt> <dd>{$threads}{$unapproved['unapproved_threads']}</dd>
     <dt>{$lang->forumbit_posts}:</dt> <dd>{$posts}{$unapproved['unapproved_posts']}</dd>
</dl>
</td>
<td class="{$bgcolor}" valign="top" align="right" 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="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><a href="{$forum_url}">{$forum['name']}</a><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>

Już wiem gdzie błąd popełniłem ;p

Tylko jedna sprawa jeszcze. By to było w stylu:
1 tematów
1 odpowiedzi

a nie
Wątków:
1
Postów:
1

Pomoże ktoś ?
ADVERTGAME.PL



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

1 gości