Webboard

Pełna wersja: Przesunięcie "autora" pod temat i opis tematu
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.9
adres forum:http://forum.mnemonauka.pl/
na czym polega problem (screen, opis, komunikaty): Chciałbym dać autora pod opis i usunąć ten tekst "przez".

Screen: [Obrazek: c1ahiiz7al6w_t.jpg]
Pokaż szablon forumdisplay_thread (ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Widok działu).
Kod:
<tr>
    <td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
    <td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
    <td class="{$bgcolor}{$thread_type_class}">
        {$attachment_count}
        <div>
            <span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
            <span class="author smalltext">{$lang->by} {$thread['profilelink']}</span><br />{$thread['description']}
        </div>
    </td>
    <td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
    <td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
    {$rating}
    <td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
        <span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
        <a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
    </td>
{$modbit}
</tr>
Zamianka:
Kod:
<tr>
    <td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
    <td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
    <td class="{$bgcolor}{$thread_type_class}">
        {$attachment_count}
        <div>
            <span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
            {$thread['description']}<br />
<span class="author smalltext">{$thread['profilelink']}</span>
        </div>
    </td>
    <td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
    <td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
    {$rating}
    <td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
        <span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
        <a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
    </td>
{$modbit}
</tr>
Dałem sobie opis nad "autorem" ale:
[Obrazek: ae8szq41jb3b_t.jpg]

Poprawiony kod forumdisplay_thread (myślę, że tutaj trzeba coś zmienić):
Kod:
<tr>

<td align="center" class="{$bgcolor}{$thread_type_class}"
width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"
alt="{$folder_label}" title="{$folder_label}" /></td>

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

<td class="{$bgcolor}{$thread_type_class}">

{$attachment_count}

<div>

<span>{$prefix}
{$gotounread}{$thread['threadprefix']}<a
href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}"

id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<br />
{$thread['description']}<br />

<span class="author smalltext">{$thread['profilelink']}</span>

</div>

</td>

<td align="center"
class="{$bgcolor}{$thread_type_class}"><a
href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>

<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

{$rating}

<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">

<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />

<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

</td>

{$modbit}

</tr>
Łap:
Kod:
<tr>

<td align="center" class="{$bgcolor}{$thread_type_class}"
width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"
alt="{$folder_label}" title="{$folder_label}" /></td>

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

<td class="{$bgcolor}{$thread_type_class}">

{$attachment_count}

<div>

<span>{$prefix}
{$gotounread}{$thread['threadprefix']}<a
href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}"

id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<br />
{$thread['description']}
<span class="author smalltext">{$thread['profilelink']}</span>

</div>

</td>

<td align="center"
class="{$bgcolor}{$thread_type_class}"><a
href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>

<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

{$rating}

<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">

<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />

<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

</td>

{$modbit}

</tr>
Dalej nie jest tak jak powinno być:
[Obrazek: dwdmizexpkbl_t.jpg]
Chciałbym żeby było tak, że jak nie ma opisu to "autor" jest w następnym wersie, a jeśli jest opis to "autor" jest w następnym wersie pod opisem.
zobacz to:
Kod:
<tr>

<td align="center" class="{$bgcolor}{$thread_type_class}"
width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"
alt="{$folder_label}" title="{$folder_label}" /></td>

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

<td class="{$bgcolor}{$thread_type_class}">

{$attachment_count}

<div>

<span>{$prefix}
{$gotounread}{$thread['threadprefix']}<a
href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}"

id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<br />
{$thread['description']}<br />
<span class="author smalltext">{$thread['profilelink']}</span>

</div>

</td>

<td align="center"
class="{$bgcolor}{$thread_type_class}"><a
href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>

<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

{$rating}

<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">

<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />

<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

</td>

{$modbit}

</tr>
Miałem już tak wcześniej. Jest prawie dobrze tylko bez tej przerwy (zobacz screen):
[Obrazek: jfg8cddhg599_t.jpg]
No to zamianka:
Kod:
<tr>

<td align="center" class="{$bgcolor}{$thread_type_class}"
width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"
alt="{$folder_label}" title="{$folder_label}" /></td>

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

<td class="{$bgcolor}{$thread_type_class}">

{$attachment_count}

<div>

<span>{$prefix}
{$gotounread}{$thread['threadprefix']}<a
href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}"

id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<br />
{$thread['description']}
<span class="author smalltext">{$thread['profilelink']}</span>

</div>

</td>

<td align="center"
class="{$bgcolor}{$thread_type_class}"><a
href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>

<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

{$rating}

<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">

<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />

<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

</td>

{$modbit}

</tr>
(27.06.2013, 20:30)gibonpl napisał(a): [ -> ]No to zamianka:
Kod:
<tr>

<td align="center" class="{$bgcolor}{$thread_type_class}"
width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"
alt="{$folder_label}" title="{$folder_label}" /></td>

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

<td class="{$bgcolor}{$thread_type_class}">

{$attachment_count}

<div>

<span>{$prefix}
{$gotounread}{$thread['threadprefix']}<a
href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}"

id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
<br />
{$thread['description']}
<span class="author smalltext">{$thread['profilelink']}</span>

</div>

</td>

<td align="center"
class="{$bgcolor}{$thread_type_class}"><a
href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>

<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

{$rating}

<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">

<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />

<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>

</td>

{$modbit}

</tr>

Nadal nie tak. Wyszło to samo co w poście #7

Pomoże ktoś? Da się coś takiego wykonać?
ten problem jest tak, ponieważ miejsce jest zarezerwowane na opis, jesli nie ma opisu to jest miejsce i dlatego tak wychodzi, innym wyjściem było by usunięcie opisu lub przesunięcie go