Edit: Also added RewriteCond for search.php to make sure multi-page search result work properly.
Quote:
Originally posted by Haakon
However, there is a little problem with the last hack (I think it`s the last one). If you look in member list, the page button is now disabled. Someone spotted it in my forum, and I see you`ve also got the problem. Can you fix it 
I`ve also got a problem now with some of the thread`s last page will be blank. Not sure if this is because of your hack, but maybe you know something about it?
Thanks,
Haakon
|
Please add the following to your existing rewriterules, it should fix the memberlist navigation problem:
RewriteCond %{QUERY_STRING} ^(.*)-([0-9]+)\.html$
RewriteRule ^memberlist.php$ memberlist.php?%1&pagenumber=%2? [L]
RewriteCond %{QUERY_STRING} ^(.*)-([0-9]+)\.html$
RewriteRule ^search.php$ search.php?%1&pagenumber=%2? [L]
Edited my original post to reflect this.
Please note, I have changed the positions for the 'perpage' and the 'pagenumber' from my initial post. ie.
It used to be "f123-2-15.html" it is now: "f123-15-2.html"
where 2 is the page number, 15 is 'how many' per page. I changed both the rewriterules as well as the templates to allow me adding the navigation link hack. Please refer to my original post.