#################################################################
## Mod Title:   Goto specific page
## Mod Version: 1.0.0
## Author:      mkiefer <mkiefer@earthlink.net>
## Description: Adds a drop-down list to the pagination whenever more than 5 pages are available. This allows users to jump to page #s which may not otherwise be displayed (because "..." may be used instead.
##
## Installation Level:  Easy
## Installation Time:   1-2 Minutes
## Files To Edit:       includes/functions.php## Included Files:      N/A
#################################################################
##
#################################################################
## 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;
# 
#-----[ REPLACE ]----------------------------------------------
# 
	/// --- BEGIN MOD: Goto specific page
	if ( $total_pages > 5 )
	{	
		$select_page = ' <select name="generate_pagination" onChange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }">';
		for($i = 1; $i <= $total_pages; $i++)
		{
			$selected = ( $i == $on_page ) ? ' selected="selected"' : ''; // highlight current page by default
			$select_page .= '<option value="' . append_sid($base_url . "&amp;start=" . ( ( $i - 1 ) * $per_page ) )  . '"' . $selected . '>' . $i . '</option>';
		}
		$select_page .= '</select>:';
	}
	else
		$select_page = '';
	/// --- END MOD: Goto specific page
	
	$page_string = $lang['Goto_page'] . $select_page . ' ' . $page_string;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
