[phpBB Debug] PHP Notice: in file /includes/_ads/BackLinksCom.php on line 42: file_get_contents(http://www.backlinks.com/engine.php?LinkUrl=http%3A%2F%2Fcanver.net%2Fviewtopic.php%3Fp%3D38050&Key=M0RD-L3E6-99X3&OpenInNewWindow=1): failed to open stream: HTTP request failed! HTTP/1.1 409 Conflict
Tüm Sayfa Numaraları [Full Pagenation Mod] : Bu mod sayesinde viewtopic.php deki sayfa numaralarının tamamı görünür yani bu şekilde olan sayfa numaraları ; 1, 2, 3 ... 15, 16, 17 Next Page ...
 

Tüm Sayfa Numaraları [Full Pagenation Mod]

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

Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti CeNK 30.04.2006, 15:49

Bu mod sayesinde viewtopic.php deki sayfa numaralarının tamamı görünür yani bu şekilde olan sayfa numaraları ;

1, 2, 3 ... 15, 16, 17 Next
Page 1 of 28

Bu şekilde çıkacaktır ;
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 NEXT


[syntax="php"]#################################################################
## Mod İsmi : Full Pagination
## Mod Versiyonu: 1.0.1
## MOD YAPIMCISI: Meik Sievertsen < acyd.burn@gmx.de >
##
##MOD AÇIKLAMASI:
## This Mod will generate Page Numbers in Viewtopic in this format:
## Goto Page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 and so on.
##
## Revision History:
##
## 2002-05-20 - made the mod phpBB 2.0.0 compatible
## 2002-03-23 - initial version 1.0.0
##
## KURULUM SEVİYESİ : BASİT
## KURULUM SÜRESİ : 5 DK
## EDİTLENECEK DOSYALAR: functions.php, viewtopic.php
## Included Files: 0
##
#################################################################
##
#################################################################
##
## Author Note:
## I have tested this with a thread of 114 pages. After i have seen
## the result, i have changed the function, so that the page numbers
## will be generated in 20th blocks...
## You can change this by altering the value of $break_page. a value
## of 0 means 'no blocking'.
##
## This Mod only gives an example for the viewtopic page. You can
## enable the full pagination for every page where it occurs. Just
## replace the occurrence of 'generate_pagination' with 'generate_full_pagination'.
## For example, in memberlist.php, viewforum.php and so on.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ AÇ ]---------------------------------------------
#
/phpBB2/includes/functions.php

#
#-----[ BUL ]---------------------------------------------
#
//
// Pagination routine, generates
// page number sequence

#
#-----[ ÖNCESİNE EKLE ]---------------------------------------
#
//
// Full Pagination routine, generates
// page number sequence
//
function generate_full_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE)
{
global $lang;

//
// You can change this value, see the Author Notes for details
//
$break_page = 20;

$total_pages = ceil($num_items/$per_page);

if ( $total_pages == 1 )
{
return '';
}

$on_page = floor($start_item / $per_page) + 1;
$page_string = '';

for ($i = 1; $i < $total_pages + 1; $i++)
{
if ($break_page > 0)
{
if ((($i-1) % $break_page) == 0)
{
$page_string .= '<br />';
}
}
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
if ( $i < $total_pages )
{
$page_string .= ', ';
}
}

if ( $add_prevnext_text )
{
if ( $on_page > 1 )
{
$page_string = ' <a href="' . append_sid($base_url . "&amp;start=" . ( ( $on_page - 2 ) * $per_page ) ) . '">' . $lang['Previous'] . '</a>&nbsp;&nbsp;' . $page_string;
}

if ( $on_page < $total_pages )
{
$page_string .= '&nbsp;&nbsp;<a href="' . append_sid($base_url . "&amp;start=" . ( $on_page * $per_page ) ) . '">' . $lang['Next'] . '</a>';
}
}

$page_string = $lang['Goto_page'] . ' ' . $page_string;

return $page_string;
}

#
#-----[ AÇ ]---------------------------------------------
#
/phpBB2/viewtopic.php

#
#-----[ BUL ]---------------------------------------------
#
$pagination = ( $highlight_active ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=" . $HTTP_GET_VARS['highlight'], $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);

#
#-----[ DEĞİŞTİR ]---------------------------------------------------------------
#
$pagination = ( $highlight_active ) ? generate_full_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=" . $HTTP_GET_VARS['highlight'], $total_replies, $board_config['posts_per_page'], $start) : generate_full_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);

#
#-----[ KAYDET VE KAPAT ]------------------------------------------
#
# EoM[/syntax]
Kullanıcı avatarı
CeNK
Üye
Üye
 
İleti: 584
Kayıt: 01.11.2005, 15:21
Konum: İstanbul

İleti tankaya61 30.04.2006, 17:33

eyw. kurdum guzel oldu ;)
Kullanıcı avatarı
tankaya61
Üye
Üye
 
İleti: 233
Kayıt: 22.01.2006, 14:57

Cvp: Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti murtaza 02.05.2006, 00:48

100 sayfa olursa
cirkin durmazmi ama???

Sevgiyle
Ögretmenim canim benim , canim benim...
Seni ben pek cok , pek cok severim.
Sen bir anaaaa , sen bir baabaaaaaa
Kalani neyyydiii yaaa unuttum , bu siirin sözlerini ariyorum...
Kullanıcı avatarı
murtaza
Üye
Üye
 
İleti: 1187
Kayıt: 15.11.2005, 17:15
Konum: Yurt Dışı

Cvp: Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti wolverine12 02.05.2006, 11:50

murtaza yazdı:100 sayfa olursa
cirkin durmazmi ama???

Sevgiyle


haklısın
wolverine12
Üye
Üye
 
İleti: 210
Kayıt: 21.03.2006, 14:35

İleti murtaza 04.05.2006, 18:53

Bence bunu böyle acilir kutuda yapmak daha güzel olur
hani böyle tema secerken o asagi ok isaretine tikliyoz ya

tema secimleri geliyo

burdada ´tema diil
hangi sayfaya gitmemizi istedigiimizi yazariz

yani bence daha hos güzel durur
ve daha akillica

ama öyle bi mod varmi yada yapilirmi bilmem

varsa ben kurcamda

Sevgiyle
Ögretmenim canim benim , canim benim...
Seni ben pek cok , pek cok severim.
Sen bir anaaaa , sen bir baabaaaaaa
Kalani neyyydiii yaaa unuttum , bu siirin sözlerini ariyorum...
Kullanıcı avatarı
murtaza
Üye
Üye
 
İleti: 1187
Kayıt: 15.11.2005, 17:15
Konum: Yurt Dışı

İleti Napster 04.05.2006, 19:25

murtaza yazdı:Bence bunu böyle acilir kutuda yapmak daha güzel olur
hani böyle tema secerken o asagi ok isaretine tikliyoz ya

tema secimleri geliyo

burdada ´tema diil
hangi sayfaya gitmemizi istedigiimizi yazariz

yani bence daha hos güzel durur
ve daha akillica

ama öyle bi mod varmi yada yapilirmi bilmem

varsa ben kurcamda

Sevgiyle


Katılıyorum murtaza.Gerçekten güzel bi fikir.Böyle olsa daha hoş olur.
Napster
Kullanıcı avatarı
Napster
Üye
Üye
 
İleti: 537
Kayıt: 15.11.2005, 18:55
Konum: İstanbul

İleti murtaza 05.05.2006, 02:07

Iste benim buldugum güzel seyler
bilgisizlik nedeniyle

hep teoride kaliyo anacim :(

Sevgiyle
Ögretmenim canim benim , canim benim...
Seni ben pek cok , pek cok severim.
Sen bir anaaaa , sen bir baabaaaaaa
Kalani neyyydiii yaaa unuttum , bu siirin sözlerini ariyorum...
Kullanıcı avatarı
murtaza
Üye
Üye
 
İleti: 1187
Kayıt: 15.11.2005, 17:15
Konum: Yurt Dışı

Cvp: Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti emrag 05.05.2006, 10:47

bu eklenti 1'den 100'e kadar olan sayfalarda dropdown box 100 den sonraki sayfalarda sayfa numarasını yazabileceğiniz bir kutucuk halini alıyor. isterseniz bu 100 mesaja kadar olan kısmı şu bölümden değiştirebilirsiniz. if ( $total_pages < 100 )

Kod: Tümünü seç
##############################################################
## MOD Title: Pagination Select List & Input Box
## MOD Author: chatasos < chatasos@psclub.gr > (Tassos Chatzithomaoglou) http://www.psclub.gr
## MOD Description: This mod adds a select list or an input box to your pagination options, to help you in case of many pages.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 3 minutes
## Files To Edit: includes/functions.php
## 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:
##
##   - Javascript must be enabled in order for the mod to work correctly.
##
##   - The select list or the input box are displayed wherever the default phpbb pagination is used :
##   viewforum, viewtopic, memberlist, search, etc., when there are more than 10 pages to be displayed.
##
##   - In select list, you just choose the page from the drop-down list and you are transferred there.
##
##   - In the input box, you write the page number into it, you press enter and you are transferred there.
##
##   - You can change the number of pages which make the select list or input box to appear,
##   by changing "10" to your own value, in the following line:
##
##      if ( $total_pages > 10 )
##
##   - The select list is displayed when the number of pages is smaller than 100 and the input box is displayed
##   when the number of pages is bigger than 100. You can change this value (100) to your own, in the following line:
##
##      if ( $total_pages < 100 )
##
##############################################################
## MOD History:
##
##   2005-09-15 - Version 1.0.1
##   - Fixed possible template "incompatibility"
##   - Changed functionality in order to use only one of the choices depending on the number of pages
##
##   2005-09-03 - Version 1.0.0
##   - First release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
   $page_string = $lang['Goto_page'] . ' ' . $page_string;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
   /****************************************
   * MOD: Pagination Select List & Input Box
   ****************************************/
   // BEGIN : BEFORE, ADD
   if ( $total_pages > 10 )
   {   
      if ( $total_pages < 100 )
      {
         $select_list = '<select onChange="if (this.options[this.selectedIndex].value != -1) { window.location.href = this.options[this.selectedIndex].value; }">';

         for ($i = 1; $i <= $total_pages; $i++)
         {
            $select_list .= '<option value="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) ) . '"' . ( ( $i == $on_page ) ? ' selected="selected"' : '' ) . '>' . $i . '</option>';
         }

         $select_list .= '</select> ';
         $input_box = '';
      }
      else
      {
         $input_box = '<input type="text" size="4" value="'.$on_page.'" onKeyPress="var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; if ( keyCode == 13 ) { var page_no = parseInt(this.value, 10); if ( !isNaN(page_no) && page_no <= '.$total_pages.' && page_no > 0) { var start = String((page_no - 1)*'.$per_page.'); window.location.href = \'' . append_sid($base_url . '&amp;start=\'+start+\'') . '\'; return false;} else { this.value = '.$on_page.'; return false;} }" /> ';
         $select_list = '';
      }
   }
   else
   {
      $input_box = '';
      $select_list = '';
   }

   $page_string = $input_box . $select_list . $page_string;
   // END : BEFORE, ADD

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
emrag
Üye
Üye
 
İleti: 94
Kayıt: 05.10.2005, 16:25

Cvp: Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti vai777 11.12.2006, 17:19

hem dropdown şeklinde hemde liste şeklinde çıkıo
sadece dropdown olsa olmazmı :S
vai777
Üye
Üye
 
İleti: 14
Kayıt: 09.12.2006, 06:48

Re: Tüm Sayfa Numaraları [Full Pagenation Mod]

İleti NEFRİT 25.12.2007, 01:04

CeNK yazdı:Bu mod sayesinde viewtopic.php deki sayfa numaralarının tamamı görünür yani bu şekilde olan sayfa numaraları ;

1, 2, 3 ... 15, 16, 17 Next
Page 1 of 28

Bu şekilde çıkacaktır ;
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 NEXT



cenk yavrum çok ayıp ama nefrit in yazdığı mesajları kendinin gibi göstermen ayıptanda öte bişey pis cenk :razz:
Kullanıcı avatarı
NEFRİT
Üye
Üye
 
İleti: 287
Kayıt: 17.03.2006, 01:14
Konum: Tekirdağ


Duyurular & Güncellemeler



Kimler çevrimiçi

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

cron