However, it's only semi-applicable to me since I'm not modifying the memberlist, but rather a custom page.
Here's my custom page, minus all the sql stuff.
- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
/**
* Set some variables
*/
$start = request_var('start', 0);
$number = 15;
// sql stuff here
$db->sql_freeresult($result);
$template->assign_vars(array(
'PAGINATION' => generate_pagination(append_sid("{$phpbb_root_path}roster/index.$phpEx", ""), $total_results, $number, $start),
'PAGE_NUMBER' => on_page($total_results, $number, $start),
'TOTAL_RESULTS' => $total_results,
)
);
page_header('Player Roster');
$template->set_filenames(array(
'body' => 'player_roster.html',
));
page_footer();
?>
Now this works alright as the URLs in the pagination show up as -http://www.example.com/roster/index.php?start=15 etc.
However, whenever I try to alter the "generate_pagination" function, the URLs like to change to the extension pagexx.html, which of course aren't existing pages for my script. Is there an easy way to make it so that the URLs are something like:http://www.example.com/roster/15 or -http://www.example.com/roster/view15 and actually have the pagination function write them out correctly that way?
Thanks for your time.

English |
French
