WordPress.org

Plugin Directory

paged-comments

Opened 11 years ago

Last modified 10 years ago

#459 assigned enhancement

jump to calculated page for any requested comment

Reported by: _ck_ Owned by: keyvan
Priority: high Severity: normal
Plugin: paged-comments Keywords:
Cc:

Description

I've come up with a function to calculate the page that any particular comment is on, so after a comment post the site can redirect the vistor back to the very page (and comment) they just posted on.

This could be extended to a search hack where if comments are searched a visitor could be redirected to the actual comment on it's designated page rather than being forced to use "show all" flat style.

blogged on this here

as a working example, I've enhanced the last two lines of wp-comments-post.php and added the (incomplete) function as attached (I'll post code updated on the blog above as I have time)

Attachments (1)

example.php.txt (2.3 KB) - added by _ck_ 11 years ago.
demonstration of function to calculate page for a paged comment

Download all attachments as: .zip

Change History (2)

@_ck_11 years ago

demonstration of function to calculate page for a paged comment

comment:1 @keyvan10 years ago

  • Priority changed from normal to high
  • Status changed from new to assigned

Again, thanks for this. I'm going to be working on implementing it in a future version.

Note: See TracTickets for help on using tickets.