Autor Tópico: Next Topic Page 2.0.X  (Lida 4236 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Next Topic Page 2.0.X
« em: 12 de Dezembro de 2010, 06:23 »


/Sources/Display.php

Código: [Seleccione]
// Construct the page index, allowing for the .START method...
$context['page_index'] = constructPageIndex($scripturl . '?topic=' . $topic . '.%d', $_REQUEST['start'], $context['total_visible_posts'], $context['messages_per_page'], true);
$context['start'] = $_REQUEST['start'];

Código: [Seleccione]
$context['prev_topic_page'] = empty($context['start']) ? '' : '<a href="' . $scripturl . '?topic=' . $topic . '.' . ($context['start'] - $context['messages_per_page']) . '"><img src="' . $settings['images_url'] . '/prev.png" width="9" height="8" border="0" /></a>';
$context['next_topic_page'] = $context['total_visible_posts'] <= ($context['start'] + $context['messages_per_page']) ? '' : ' <a href="' . $scripturl . '?topic=' . $topic . '.' . ($context['start'] + $context['messages_per_page']) . '"><img src="' . $settings['images_url'] . '/next.png" width="9" height="8" border="0" /></a>';



Themes/default/Display.template.php

Código: [Seleccione]
// Show the page index... "Pages: [1]".
echo '
<div class="clearfix margintop" id="postbuttons">
<div class="next">', $context['previous_next'], '</div>
<div class="margintop middletext floatleft">', $txt['pages'], ': ', $context['page_index'],

Código: [Seleccione]
// Show the page index... "Pages: [1]".
echo '
<div class="clearfix margintop" id="postbuttons">
<div class="next">', $context['previous_next'], '</div>
<div class="margintop middletext floatleft">', $txt['pages'], ': ', $context['prev_topic_page'], ' ', $context['page_index'], ' ', $context['next_topic_page'],


Código: [Seleccione]
<a name="lastPost"></a>';

echo '
<div class="clearfix marginbottom" id="postbuttons_lower">
<div class="middletext floatleft">', $txt['pages'], ': ', $context['page_index'],


Código: [Seleccione]
<a name="lastPost"></a>';

   echo '
<div class="clearfix marginbottom" id="postbuttons_lower">
   <div class="middletext floatleft">', $txt['pages'], ': ', $context['prev_topic_page'], ' ', $context['page_index'], ' ', $context['next_topic_page'],


Alterações de ficheiro
no anexo tem "prev.png"  para colocar ". / Themes / default / images"
No anexo tem "next.png" para colocar". / Themes / default / images"