Kategori içindeki Sayfa Sayısında Düzenleme

Son güncelleme: 14.04.2008 06:51
  • Sources/MessageIndex.php de

    Bul

    // Show links to all the pages?
    if (count($tmppages) <= 5)
    $pages = '« ' . implode(' ', $tmppages);
    // Or skip a few?
    else
    $pages = '« ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

    if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
    $pages .= '  <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
    $pages .= ' »';
    }
    else
    $pages = '';

    Değiştir

    // Show links to all the pages?
    if (count($tmppages) <= 5)
    $pages = '[ Sayfa: ' . implode([/swf2][swf3], $tmppages);
    // Or skip a few?
    else
    $pages = '[ Sayfa: ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

    if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
    $pages .= ', <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
    $pages .= ' ]';
    }
    else
    $pages = '';

    Sources/Recent.php de
    Bul

    // Show links to all the pages?
    if (count($tmppages) <= 5)
    $pages = '« ' . implode(' ', $tmppages);
    // Or skip a few?
    else
    $pages = '« ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

    if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
    $pages .= '  <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
    $pages .= ' »';
    }
    else
    $pages = '';


    Değiştir

    // Show links to all the pages?
    if (count($tmppages) <= 5)
    $pages = '[ Sayfa: ' . implode([/swf2][swf3], $tmppages);
    // Or skip a few?
    else
    $pages = '[ Sayfa: ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

    if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
    $pages .= ', <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
    $pages .= ' ]';
    }
    else
    $pages = '';

    MessageIndex.template.php de

    Bul

    // Is this topic new? (assuming they are logged in!)
    if ($topic['new'] && $context['user']['is_logged'])
    echo '
    <a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

    echo '
    <small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
    </td>
    <td class="windowbg2" valign="middle" width="14%">
    ', $topic['first_post']['member']['link'], '
    </td>
    <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
    ', $topic['replies'], '
    </td>
    <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
    ', $topic['views'], '
    </td>
    <td class="windowbg2" valign="middle" width="22%">
    <a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
    <span class="smalltext">
    ', $topic['last_post']['time'], '<br />
    ', $txt[525], ' ', $topic['last_post']['member']['link'], '
    </span>
    </td>';


    Değiştir
    // Is this topic new? (assuming they are logged in!)
    if ($topic['new'] && $context['user']['is_logged'])
    echo '
    <a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

    echo '<br />
    <small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
    </td>
    <td class="windowbg2" valign="middle" width="14%">
    ', $topic['first_post']['member']['link'], '
    </td>
    <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
    ', $topic['replies'], '
    </td>
    <td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
    ', $topic['views'], '
    </td>
    <td class="windowbg2" valign="middle" width="22%">
    <a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
    <span class="smalltext">
    ', $topic['last_post']['time'], '<br />
    ', $txt[525], ' ', $topic['last_post']['member']['link'], '
    </span>
    </td>';

    Örnek

    noimage

    Alıntıdır
#14.04.2008 06:51 0 0 0