Extended pagination - mesajlara no ile gitme

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

Extended pagination - mesajlara no ile gitme

İleti mojo_jojo 10.08.2006, 12:33

Mesajı çok olan forum yada topicklerde kolaylık sağlayan bir mod..

Resim

orjinal

Kod: Tümünü seç
########################################################
## MOD Title: Extended pagination
## MOD Author: Darathor < darathor@free.fr > http://admforum.edforum.net
##
## MOD Description: Rajoute dans chaque liste de pages, un champ permettant d'indiquer directement la page où l'on veut se rendre.
##           Ce champ n'est ajouté qu'à partir du moment où une partie de la liste des pages est remplacée par des
##           points de suspension (c'est à dire plus de 10 pages).
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: includes/functions.php
##         templates/subsilver/memberlist_body.tpl
##         templates/subsilver/viewforum_body.tpl
##         templates/subsilver/viewtopic_body.tpl
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:       
##   Pour compenser la place prise par le champ, les liens "suivante" et
##   "précédente" sont remplacés par des chevrons (">" et "<")
##
##   Remarque : L'utilisation de ce champ necessite d'avoir activé les javascripts.
##
##############################################################
##
## Informations : Ce mod a été testé et remit en page par l'equipe mod de phpBB.biz
##
##                Vous en trouverez la derniere version a cette adresse :
##                http://forum.phpbb.biz/viewtopic.php?t=94759
##
##                Le support se trouve a cette adresse :
##                http://forum.phpbb.biz/viewtopic.php?t=96216
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]----------------------------------------
#

includes/functions.php

#
#-----[ FIND ]---------------------------------
#
   }
   else
   {
      for($i = 1; $i < $total_pages + 1; $i++)   
#
#-----[ BEFORE, ADD ]---------------------------------
#
      // DEBUT MOD Extended pagination
      $action = append_sid($base_url);
      $start_form = '<form method="post" action="' . $action . '" onSubmit="if(this.page.value > 0 && this.page.value <= ' . $total_pages . '){this.action = this.action+\'&start=\'+((parseInt(this.page.value)-1) * ' . $per_page . ');} else{return false;}">';
      $end_form = '&nbsp;<input type="text" name="page" size="5" maxlength="5" value="' . $on_page . '" class="post"  />&nbsp;<input type="submit" value="' . $lang['Go'] . '" class="liteoption" /></form>';
      // FIN MOD Extended pagination
#
#-----[ FIND ]---------------------------------
#
   }

   if ( $add_prevnext_text )
#
#-----[ BEFORE, ADD ]---------------------------------
#
      // DEBUT MOD Extended pagination
      $start_form = '';
      $end_form = '';
      // FIN MOD Extended pagination
#
#-----[ FIND ]---------------------------------
#
' . $lang['Previous'] . '
#
#-----[ REPLACE WITH ]---------------------------------
#
<
#
#-----[ FIND ]---------------------------------
#
' . $lang['Next'] . '
#
#-----[ REPLACE WITH ]---------------------------------
#
>
#
#-----[ FIND ]---------------------------------
#
   $page_string = $lang['Goto_page'] . ' ' . $page_string;
#
#-----[ AFTER, ADD ]---------------------------------
#
   // DEBUT MOD Extended pagination
   $page_string = $start_form . $page_string . $end_form;
   // FIN MOD Extended pagination
#
#-----[ OPEN ]----------------------------------------
#

templates/subsilver/memberlist_body.tpl

#
#-----[ FIND ]---------------------------------
#
   </tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
#
#-----[ REPLACE WITH ]---------------------------------
#
   </form></tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
#
#-----[ FIND ]---------------------------------
#
</table></form>
#
#-----[ REPLACE WITH ]---------------------------------
#
</form>
#
#-----[ OPEN ]----------------------------------------
#

templates/subsilver/viewforum_body.tpl

#
#-----[ FIND ]---------------------------------
#
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
#
#-----[ REPLACE WITH ]---------------------------------
#
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
#
#-----[ FIND ]---------------------------------
#
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
#
#-----[ REPLACE WITH ]---------------------------------
#
   <tr>
     <form method="post" action="{S_POST_DAYS_ACTION}">
       <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" /></span>
       </td>
        </form>
   </tr>
#
#-----[ OPEN ]----------------------------------------
#

templates/subsilver/viewtopic_body.tpl

#
#-----[ FIND ]---------------------------------
#
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall"><b>{PAGINATION}</b><br />
     &nbsp; </span></td>
  </tr>
#
#-----[ REPLACE WITH ]---------------------------------
#
  <tr>
   <td align="left" valign="bottom"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
   <td align="right" valign="bottom"><span class="gensmall"><b>{PAGINATION}</b></span></td>
  </tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kullanıcı avatarı
mojo_jojo
Üye
Üye
 
İleti: 30
Kayıt: 08.12.2005, 02:28
Konum: Adana

Cvp: Extended pagination - mesajlara no ile gitme

İleti Deathtrip 28.01.2007, 01:12

sağol... ilerde kuracağım...
Deathtrip
Üye
Üye
 
İleti: 23
Kayıt: 17.03.2006, 16:05

İleti bizdenbiri 28.01.2007, 01:24

güzel bir mod.. teşekkürler ;)
phpBB,
Senden korkan senin gibi olsun :)

--> Bu benim sitem -- Bu da yeğenim için yaptığım site -->
Kullanıcı avatarı
bizdenbiri
Üye
Üye
 
İleti: 43
Kayıt: 25.11.2005, 18:41
Konum: Kocaeli

Re: Extended pagination - mesajlara no ile gitme

İleti nydarpus 09.08.2007, 00:21

teşekkürler yalnız birde bunun bir baska sekli var idi,
yani sayfa numarası değilde, kutucuk icinde 1-sona kadar sıralı halde olanı
bulabilirmiyiz acaba_?
nydarpus
Üye
Üye
 
İleti: 3
Kayıt: 09.08.2007, 00:19

Re: Extended pagination - mesajlara no ile gitme

İleti semih016 14.12.2007, 23:24

çok güzel bir mod kurucam inşallah :D
semih016
Üye
Üye
 
İleti: 12
Kayıt: 03.12.2007, 13:20

Re: Extended pagination - mesajlara no ile gitme

İleti NEFRİT 24.12.2007, 23:56

mojo_jojo çok güzel bir mod eklemişsin tuttum seni
aslında eskiden arıyordum bunu bulamamıştım heh kısmet nbu güneymiş meher
Kullanıcı avatarı
NEFRİT
Üye
Üye
 
İleti: 287
Kayıt: 17.03.2006, 01:14
Konum: Elazığ


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron