[2.0.6] Pagination MOD

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
11
41%
Very Good
12
44%
Good
1
4%
Fair
1
4%
Poor
2
7%
 
Total votes: 27

User avatar
ChocoboBop
Registered User
Posts: 144
Joined: Wed Sep 01, 2004 6:10 pm

Post by ChocoboBop »

Can I get a confirmation that this mod works on 2.0.18? I installed it easy enough but there was no changes to my topics. I still had "1 ... 18, 19, 20" on my larger posts. I left the $begin_end at 3 and $middle at 1, and even switched $middle to 2 but there's no change on my forum.

Also my forum does not display topics as the example does. I do not get the first 3 pages (1, 2, 3, ...) before it reaches the end. For some reason on mine I just get (1, ... 3, 4, 5) when the pages of a topic reaches beyond 4 pages. I have my 'posts per page' set for 15 in my configuration.

lady18wheels
Registered User
Posts: 150
Joined: Mon Aug 15, 2005 11:04 pm

Post by lady18wheels »

Does anyone know why the download isn't available?
Extreme newbie. I don't know squat about any of this.
Want to learn more about trucking in the US?

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky »

lady18wheels wrote: Does anyone know why the download isn't available?

The link in the first post works for me.
Have you hugged someone today?

lady18wheels
Registered User
Posts: 150
Joined: Mon Aug 15, 2005 11:04 pm

Post by lady18wheels »

The message I get is
Internet Explorer cannot download pagination_mod.mod from www.phpbb.com. Internet Explorer was not able to open this site. The requested site is either unavailable or cannot be found. Please try again later.
What does this mean?
Extreme newbie. I don't know squat about any of this.
Want to learn more about trucking in the US?

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky »

Do you get the Downloading pagination_mod.mod in 5 seconds page? Something in IE may be blocking the download of the file because of the mod extension.

Try downloading the file in zipped format from my site here
Have you hugged someone today?

lady18wheels
Registered User
Posts: 150
Joined: Mon Aug 15, 2005 11:04 pm

Post by lady18wheels »

Do you get the Downloading pagination_mod.mod in 5 seconds page?
Yes.

Was able to get it from you though. Thanks much.
Extreme newbie. I don't know squat about any of this.
Want to learn more about trucking in the US?

fonzi1022
Registered User
Posts: 3
Joined: Wed Nov 09, 2005 2:17 pm
Contact:

Post by fonzi1022 »

does this change the pagination on the memberlist as well?

Or is there a different mod for that

thanks

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky »

It will work on any page that has pagination.
Have you hugged someone today?

tony44
Registered User
Posts: 232
Joined: Sun Apr 17, 2005 4:34 pm

Post by tony44 »

Has anyone installed this on 2.0.19?

deadjdona
Registered User
Posts: 8
Joined: Tue Feb 28, 2006 9:09 am

Post by deadjdona »

I try to install it on 19 version but I can't download it (((

eoinoc333
Registered User
Posts: 49
Joined: Fri Aug 19, 2005 9:09 am
Contact:

Post by eoinoc333 »

ChocoboBop wrote: Can I get a confirmation that this mod works on 2.0.18? I installed it easy enough but there was no changes to my topics. I still had "1 ... 18, 19, 20" on my larger posts. I left the $begin_end at 3 and $middle at 1, and even switched $middle to 2 but there's no change on my forum.

Also my forum does not display topics as the example does. I do not get the first 3 pages (1, 2, 3, ...) before it reaches the end. For some reason on mine I just get (1, ... 3, 4, 5) when the pages of a topic reaches beyond 4 pages. I have my 'posts per page' set for 15 in my configuration.


This was also the case for me. Installed on phpbb 2.0.20, and there is no visible change to the pagination on my forum or topics. I'm going to uninstall it...

Eoin

AlexIBN13
Registered User
Posts: 1
Joined: Mon Aug 14, 2006 10:49 pm

Post by AlexIBN13 »

At me too will not turn out to establish this version. :cry:
Where it is possible for a detail to look?

Information Business Network

scott0999
Registered User
Posts: 37
Joined: Mon Jan 08, 2007 12:13 am

Post by scott0999 »

would be nice if you could just type in the page number you want to goto also

User avatar
Bucaneiro
Registered User
Posts: 14
Joined: Sat Jun 14, 2003 4:02 pm
Contact:

Re: [2.0.6] Pagination MOD

Post by Bucaneiro »

I think you wanna this: http://www.phpbb.com/community/viewtopi ... Pagination for jump to a page.

This mod works on 2.22, i have modified for aphrodite_mc if anyone wants, its a great mode, tanks to the autor.

Peter77sx
Registered User
Posts: 3258
Joined: Wed Nov 09, 2005 2:51 pm

Re: [2.0.6] Pagination MOD

Post by Peter77sx »

There we go :)

Code: Select all

############################################################## 
## MOD Title: Pagination MOD 
## MOD Author: Xore < xore at azuriah dot com > (Robert Hetzler) http://www.azuriah.com 
## MOD Description: Alter the pagination link settings
## MOD Version: 1.0.0 
## 
## Installation Level: Easy 
## Installation Time: 4 Minutes 
## Files To Edit: includes/functions.php 
## Included Files: (n/a) 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: Manually variablizing all those hardcoded constants was... interesting
##
## During the installation, replace the values for
##
## 				$begin_end = 3;
##				$from_middle = 1;
##
## With the ones you want for your pagination. A description is supplied.
##
## Be very careful with what you copy and paste.
## 
############################################################## 
## MOD History: 
## 
##   2003-09-23 - Version 1.0.0 
##      - Initial Release 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ OPEN ]------------------------------------------ 
#
includes/functions.php

# 
#-----[ FIND ]------------------------------------------ 
#
	$total_pages = ceil($num_items/$per_page);
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
//
// BEGIN Pagination Mod
//
	$begin_end = 3;
	$from_middle = 1;
/*
	By default, $begin_end is 3, and $from_middle is 1, so on page 6 in a 12 page view, it will look like this:

	a, d = $begin_end = 3
	b, c = $from_middle = 1

 "begin"        "middle"           "end"
    |              |                 |
    |     a     b  |  c     d        |
    |     |     |  |  |     |        |
    v     v     v  v  v     v        v
    1, 2, 3 ... 5, 6, 7 ... 10, 11, 12

	Change $begin_end and $from_middle to suit your needs appropriately
*/
//
// END Pagination Mod
//

# 
#-----[ FIND ]------------------------------------------ 
#
	if ( $total_pages > 10 )
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
	if ( $total_pages > ((2*($begin_end + $from_middle)) + 2) )

# 
#-----[ FIND ]------------------------------------------ 
#
		$init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages;
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
		$init_page_max = ( $total_pages > $begin_end ) ? $begin_end : $total_pages;

# 
#-----[ FIND ]------------------------------------------ 
#
		if ( $total_pages > 3 )
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
		if ( $total_pages > $begin_end )

# 
#-----[ FIND ]------------------------------------------ 
#
				$page_string .= ( $on_page > 5 ) ? ' ... ' : ', ';
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
				$page_string .= ( $on_page > ($begin_end + $from_middle + 1) ) ? ' ... ' : ', ';

# 
#-----[ FIND ]------------------------------------------ 
#
				$init_page_min = ( $on_page > 4 ) ? $on_page : 5;
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
				$init_page_min = ( $on_page > ($begin_end + $from_middle) ) ? $on_page : ($begin_end + $from_middle + 1);

# 
#-----[ FIND ]------------------------------------------ 
#
				$init_page_max = ( $on_page < $total_pages - 4 ) ? $on_page : $total_pages - 4;
# 
#-----[  REPLACE WITH ]------------------------------------------ 
#
				$init_page_max = ( $on_page < $total_pages - ($begin_end + $from_middle) ) ? $on_page : $total_pages - ($begin_end + $from_middle);

# 
#-----[ FIND ]------------------------------------------ 
#
				for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++)
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
				for($i = $init_page_min - $from_middle; $i < $init_page_max + ($from_middle + 1); $i++)

# 
#-----[ FIND ]------------------------------------------ 
#
					if ( $i <  $init_page_max + 1 )
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
					if ( $i <  $init_page_max + $from_middle )

# 
#-----[ FIND ]------------------------------------------ 
#
				$page_string .= ( $on_page < $total_pages - 4 ) ? ' ... ' : ', ';
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
				$page_string .= ( $on_page < $total_pages - ($begin_end + $from_middle) ) ? ' ... ' : ', ';

# 
#-----[ FIND ]------------------------------------------ 
#
			for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
			for($i = $total_pages - ($begin_end - 1); $i < $total_pages + 1; $i++)

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 


Post Reply

Return to “[2.0.x] MOD Database Cleanup”