Ticket #459 (assigned enhancement)

Opened 2 years ago

Last modified 10 months ago

jump to calculated page for any requested comment

Reported by: _ck_ Assigned to: keyvan (accepted)
Priority: high Component: paged-comments
Severity: normal 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

example.php.txt (2.3 kB) - added by _ck_ on 08/13/06 16:55:41.
demonstration of function to calculate page for a paged comment

Change History

08/13/06 16:55:41 changed by _ck_

  • attachment example.php.txt added.

demonstration of function to calculate page for a paged comment

09/01/07 20:07:19 changed by keyvan

  • 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.