Home | Add News | Edit News | Options | Help/About | Logout


Enable Hack Manually - Current/Total Pagination v1.0

Installation notes:

This will add the ability to let your pagination be in the form of: Page 1 of 3.

Add block in "./inc/shows.inc.php":

Automatically Generated, be sure to be very precise on tabs and spaces.

Add this:

// Current/Total Pagination v1.0 - addblock
	$prev_next_msg = str_replace('{total-pages}', $pages_count, $prev_next_msg);
	$prev_next_msg = str_replace('{current-page}', $start_from / $number + 1, $prev_next_msg);
// Current/Total Pagination v1.0 - End addblock

Between:

	$prev_next_msg = str_replace("{pages}", $pages, $prev_next_msg);

And:

	}

End installation notes:

Now you can use {current-page} and {total-pages} in your prev/next template.

Powered by CuteNews v1.3.1 © 2003 CutePHP.