##############################################################
## MOD Title: Jump To Page Mod
## MOD Version: 1.0.0
## MOD Author: GUI < spam@nickm.org > Nick Muerdter http://www.nickm.org/
## MOD Description: Adds a jump field to pagination over 10
## pages, so the user may go to any page.
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit: groupcp.php
## includes/functions.php
## language/lang_english/lang_main.php
## memberlist.php
## modcp.php
## privmsg.php
## search.php
## viewforum.php
## viewtopic.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
## 1.0.0 (01-21-04)
## - Initial Release.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['topics_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
$page_string = $lang['Goto_page'] . ' ' . $page_string;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
if ($total_pages > 10) {
$page_string .= '
';
}
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$lang['jtpm_jump_to_page'] = 'Jump to page';
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['topics_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
modcp.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['topics_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( !empty($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['topics_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$per_page = ($show_results == 'posts') ? $board_config['posts_per_page'] : $board_config['topics_per_page'];
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $per_page : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['topics_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Jump To Page Mod : Begin
$start = (!empty ($HTTP_POST_VARS['jtpm_start'])) ? (intval ($HTTP_POST_VARS['jtpm_start']) - 1) * $board_config['posts_per_page'] : $start;
// Jump To Page Mod : End
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM