A Conversation for Editorial Feedback
EF: Quote of the Day
Derek Posted Aug 5, 2008
Sorry TRiG, my knowledge of code is infinitesimal. All we want to do is link to a specific post, so if we want to link to post 25, we add '#pi25'? Is today's link wrong because we've got the 'latest' in it? For us dummies here, what should the full URL be to link to that post? I know we've been through this before so I do appreciate your patience.
EF: Quote of the Day
TRiG (Ireland) A dog, so bade in office Posted Aug 7, 2008
A23908205 should answer all your questions.
Specifically, this bit: "To show the last page of a conversation, add &latest=1 to the end of the URL. This doesn't show the last twenty posts. Rather, it shows the last page, given that there are twenty posts to a page. Note that this form of link is unstable: as the conversation moves on, different pages will be called up by the latest=1 command."
Or just have a chat with Jim Lynn.
TRiG.
EF: Quote of the Day
Derek Posted Aug 8, 2008
But we don't necessarily want to point to the last page; we want to point to the specific post. As advised, I'll ask Jim Lynn.
EF: Quote of the Day
Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) Posted Aug 11, 2008
*grabs a random line of code from the 3N Milestones page, edits out things not needed for this discussion*
A completely ridiculous number of posts!The really really relevant part being the "skip=(all the posts before the one you want to link to)&show=(however many you want to show--when I took over the page I snagged this from, I started just using 1 instead of 20)" part
EF: Quote of the Day
Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) Posted Aug 11, 2008
Argh! When I copied this over, I thought I'd missed the last part, and now I see I didn't miss it... And I previewed, too A completely ridiculous number of posts!
Same notes after;)
EF: Quote of the Day
Gnomon - time to move on Posted Aug 12, 2008
The trouble with using "skip" is that you end up with (for example) a group of postings from number 4 to number 23. Then if you click the "previous page" button, it gets confused.
You want something that shows you 20 postings, with the last one being a multiple of 20, and the browser scrolled so that the one we are interested in appears at the top of the window. Trig knows how to do this but I don't think anybody else does.
EF: Quote of the Day
Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) Posted Aug 12, 2008
Oh, OK.
EF: Quote of the Day
Frontpage Archiver Posted Aug 16, 2008
> "All we want to do is link to a specific post"
Eg: F47997?thread=5739127&post=66984877#p66984877
where "&" has to be written as "& amp ;" (without the spaces or quotes) for HTML pages. That link contains the (optional) forum number, thread number and unique post number (as both a jump-to instruction and a position-at instruction).
No need to know the number of posts to skip for pages if you use the unique post number rather than the post index number within the thread. The unique post number can be found lurking in the reply link for that post.
EF: Quote of the Day
TRiG (Ireland) A dog, so bade in office Posted Aug 16, 2008
Yup, there's all sorts of ways to do it (most of them explained in my Guide Entry linked to above). Personally, I prefer the skip and show buttons, because they give you some idea of where in the conversation you're going to land. And it's not too hard to make 'skip' be a multiple of 20.
TRiG.
EF: Quote of the Day
Gnomon - time to move on Posted Aug 16, 2008
But with skip and show where skip is a multiple, you can't make the view land on a particular post. It'll always land on the first post of the 20, so the reader will have no idea which one they're supposed to be reading. That method given above by Front Page Archiver seems to be the best.
EF: Quote of the Day
TRiG (Ireland) A dog, so bade in office Posted Aug 16, 2008
So, as Derek says, you add #pi[local post number] or #p[absolute post number] to the end of the URL. The local post number is the number in that conversation, while the absolute post number is unique across the entire dna system.
TRiG.
EF: Quote of the Day
TRiG (Ireland) A dog, so bade in office Posted Sep 26, 2008
Today's QotD link should be F19585?thread=5900333&skip=20#pi35.
TRiG.
EF: Quote of the Day
TRiG (Ireland) A dog, so bade in office Posted Oct 24, 2008
Will this help you in future?
http://h2g2aviators.com/test/find_post.php
TRiG.
<?php
if (($thread) and ($post)) {
$skip = floor(($post - 1) / 20) * 20;
}
?>
Key: Complain about this post
EF: Quote of the Day
- 1: TRiG (Ireland) A dog, so bade in office (Aug 5, 2008)
- 2: Derek (Aug 5, 2008)
- 3: TRiG (Ireland) A dog, so bade in office (Aug 7, 2008)
- 4: Derek (Aug 8, 2008)
- 5: TRiG (Ireland) A dog, so bade in office (Aug 11, 2008)
- 6: lil ~ Auntie Giggles with added login ~ returned (Aug 11, 2008)
- 7: Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) (Aug 11, 2008)
- 8: Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) (Aug 11, 2008)
- 9: Gnomon - time to move on (Aug 12, 2008)
- 10: Amy Pawloski, aka 'paper lady'--'Mufflewhump'?!? click here to find out... (ACE) (Aug 12, 2008)
- 11: Frontpage Archiver (Aug 16, 2008)
- 12: TRiG (Ireland) A dog, so bade in office (Aug 16, 2008)
- 13: Gnomon - time to move on (Aug 16, 2008)
- 14: TRiG (Ireland) A dog, so bade in office (Aug 16, 2008)
- 15: TRiG (Ireland) A dog, so bade in office (Sep 22, 2008)
- 16: The H2G2 Editors (Sep 22, 2008)
- 17: TRiG (Ireland) A dog, so bade in office (Sep 26, 2008)
- 18: The H2G2 Editors (Sep 26, 2008)
- 19: TRiG (Ireland) A dog, so bade in office (Oct 24, 2008)
- 20: lil ~ Auntie Giggles with added login ~ returned (Oct 24, 2008)
More Conversations for Editorial Feedback
- EF: A87893761 In Praise of the Heroic Theme Song: An Anglo-American TV Adventure [3]
Jul 24, 2024 - EF: A88031388 The Murdering Minister [6]
Feb 13, 2024 - A87877138 Le Chambon-sur-Lignon, a Village that Saved Jews [6]
Aug 22, 2023 - EF: A60698262 The Gaffney Peachoid [8]
Jun 4, 2023 - EF: A16442868 Rosemary's Baby, the Film [3]
May 4, 2023
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."