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].
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:
Kod:
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
Zamieniasz na:
Kod:
<td class="tcat" colspan="2"><span class="smalltext"> </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ł" ?
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ź:
Kod:
<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ń:
Kod:
<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ź:
Kod:
<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ń:
Kod:
<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:
Kod:
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
Pokaż szablon forumbit_depth1_cat
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ś.
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
Kod:
<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
Kod:
<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
Kod:
<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ś ?