Hi. Unfortunately the links obtained from the “#” in Kakumei theme (or similar) are just anchor links. This is due to the fact that they are generated with post_anchor_link() (file: bb-templates/kakumei/post.php:11).
With “just anchor links” I mean that they are anchors (#post-number) of the current page. They aren’t permalinks. All that links became invalid once you change the “items per page” (and/or other values) from the bbPress admin panel.
All you can do with the links that users have posted is to parse them and change them accordingly to the new server settings but this can (and will) be a long, tedious, hard and prone to errors work.
I have written a plugin called “zaerl Post Permalink” that solved this problem. My plugin export a function that generate this link:
The (1) is preferred if mod_rewrite is used. These links are permanent and do adapt on the fly to the actual settings of the server. I use my function in various places of the template and post.php is one of these.
I can share my work with you if you want. Email me za AT zaerl.com.
p.s. keep in mind that the plugin isn’t retroactive.
So will your plugin be compatible with bbPress 1.03 or is there another solution already integrated in bbPress 1.03?
My plugin works in 1.0.2 which is the official release. When the new bbPress will come (it’s in alpha stage right now) I will update it if necessary. Given what I have seen it will work at 99% without changes. At least if devs don’t add a ‘/post/*’ rewrite rule.
Will my old anchor-links stop working after activating your plugin?
Yes. That are just links. I don’t modify any template function but I just add another way of addressing the posts. Obviously if you deactivate the plugin all the posts permalinks will spawn a 404.