What are you trying to get a link to? There are topics, then there are posts (replies actually) which are just anchor links in a topic. There’s no such concept as a single post in bbPress that I know of (unlike WordPress where you can display a single post with single.php)
What are you trying to do? Maybe post an example of something here that you’re trying to link to.
post.php line 11
<a href="<?php post_anchor_link(); ?>">#</a>
I’m trying to insert the Like button from Facebook into my bbpress-based forum. Therefor i need the exact url of each reply.
is there a code for that? at the moment im using <?php topic_posts_link(); ?>
but thats not the best one, cos it generates a link to the topic url, instead to the reply url.
@chanderbs
a post don’t have its own page like in other forum scripts, if that’s what you looking for
Yes. The post URL is just an anchor URL appended to the topic URL like in many BBS engine out there. As ashfame said you can’t have a page that display only a single post. But what you want can be easily achieved with a plugin.
You want to look here to find such a function: https://trac.bbpress.org/ticket/1207
hey foof, i checked the page, and the source code of post.php don’t actually now what u wanted to show me (or where my answer is… )
@zaerl weird enough, just today im seeing your replies, was it caught by akismet??
Maybe. It seems that Akismet has done a mess here.
@chandersbs
did you check out the patch submitted by foof? Its what you need
I wonder why kevin changed the milestone to 1.5?
okay ashfame, will check again, thanx.
I have created a plugin that expose permalinks to posts. But I’m not very sure that it’s what you want. I have uploaded it five minutes ago. Grab it (if it’s what you need) when the SVN refresh:
https://bbpress.org/plugins/topic/zaerl-post-permalink/
It exports a function:
za_post_permalink($id = 0)
which returns a link in the form:
http://domain.com/post/number if mod_rewrite is used
http://domain.com/?post=number otherwise
if you pass 0
or nothing to the function it takes the current post ID (if any).
Have a nice day.