The MTPaginate tag only works within PHP documents!
// Values that can be used in other PHP code on the page
$paginate_num_pages = 3;
$paginate_num_sections = 25;
$paginate_page_selector = 'page';
$paginate_current_page = @$_GET['page'];
// Pin page selector to a valid number (or 'all')
if($paginate_current_page=='')
$paginate_current_page = '1';
if($paginate_current_page != 'all') {
if($paginate_current_page == 'first')
$paginate_current_page = 1;
elseif($paginate_current_page == 'last')
$paginate_current_page = 3;
elseif($paginate_current_page < 1)
$paginate_current_page = 1;
elseif($paginate_current_page > 3)
$paginate_current_page = 3;
$paginate_sections = array( 0
, 10, 20, 25);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 25;
}
if(isset($_SERVER['QUERY_STRING'])) {
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
} else {
$paginate_self = '';
}
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
Make sure that the document extension is .php and that your server supports PHP documents. 1)
echo ' | ';
if($i == $paginate_current_page) {
echo sprintf("Page %d", $i);
} else {
echo "Page %d', $i) . '';
}
}
?>
Michael Ubaldi, December 1, 2005.
Michael Ubaldi, November 1, 2005.
Michael Ubaldi, October 5, 2005.
Michael Ubaldi, September 5, 2005.
Michael Ubaldi, August 1, 2005.
Michael Ubaldi, July 1, 2005.
Michael Ubaldi, June 1, 2005.
Michael Ubaldi, May 31, 2005.
Michael Ubaldi, April 20, 2005.
Michael Ubaldi, March 16, 2005.
Michael Ubaldi, February 1, 2005.
Michael Ubaldi, January 1, 2005.
Michael Ubaldi, December 9, 2004.
Michael Ubaldi, November 20, 2004.
Michael Ubaldi, September 30, 2004.
Michael Ubaldi, September 12, 2004.
Michael Ubaldi, August 7, 2004.
Michael Ubaldi, August 7, 2004.
Michael Ubaldi, June 1, 2004.
Michael Ubaldi, May 1, 2004.
Michael Ubaldi, April 1, 2004.
Michael Ubaldi, March 1, 2004.
Michael Ubaldi, February 1, 2004.
Michael Ubaldi, January 1, 2004.
|