[Bb-trac] Re: [bbPress] #1058: hook to the first reply
bbPress
bb-trac at lists.bbpress.org
Sat Mar 21 22:48:03 GMT 2009
#1058: hook to the first reply
-------------------------+--------------------------------------------------
Reporter: Null | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0-beta
Component: Back-end | Version: 0.9.0.4
Severity: minor | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by _ck_):
It's way too much mysql overhead to calculate the 2nd post because
post_position #2 may not actually be the 2nd post if it's been deleted.
It far easier to inject an anchor at the very bottom of the first post and
link to that instead.
It could be done via a plugin that appends post_text and checks the
$bb_post->post_position to see if it's equal to 1
If it's equal to 1 then append `<a name="first-reply"></a>`
Then your first reply is always at `http ://topic-link-blah-blah#first-
reply `
There's no need for this in the core because most people don't link to the
first reply.
Note that my unread-posts plugin already solves the problem of linking to
the first unread reply per user.
--
Ticket URL: <http://trac.bbpress.org/ticket/1058#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list