Jump to content


Photo

Linking to SPECIFIC posts on THIS forum


  • Please log in to reply
2 replies to this topic

#1 Xx7

Xx7
  • Members
  • 612 posts

Posted 16 June 2012 - 06:33 PM

How do I link to a specific post on a webpage rather than the general link to the web address?

#2 JSLover

JSLover
  • Members
  • 920 posts

Posted 17 June 2012 - 09:38 AM

Above each post is this...

Post subject: Linking to SPECIFIC posts on THIS forum ------------------- SPACE ------------------- Posted Image Posted: Sat, Jun 16, 2012 --- 6/16/12 2:33:41pm
...the per-post subject is a link to that post, which uses a URL like this...

http://www.autohotkey.com/community/viewtopic.php?f=1&t=87689#p544122
...the 544122 is the "post number" of your post. However, Note: with a link like this, if a post is moved to a different topic (or different page, in the same topic), this type of link will break/stop working.

The icon next to Posted:, which is either Posted Image or Posted Image...depending on if you've read that post or not, is ALSO a link, but (for some strange reason) it uses a different URL...

http://www.autohotkey.com/community/viewtopic.php?p=544122#p544122
...again, the 544122 is the post number. It's included twice, cuz phpBB looks up the post number after p= & the browser scrolls to #p544122 once that page loads. Since this type of link includes p=, phpBB will find the post, even if it gets moved.

It takes more effort, but I prefer to link with URLs like this...

http://www.autohotkey.com/community/viewtopic.php?f=1&t=87689&p=544122#p544122
...so it shows the topic number in the link/URL (&, as above, since this type of link includes p=, phpBB will find the post, even if it gets moved).

I also prefer to link with the Subject of the destination post as the text of the link (instead of a bare URL)...(I also purple-link them, cuz it's prettier)...

Linking to SPECIFIC posts on THIS forum
...to see the source of that, quote my post & look at the code in the textarea (I tried to put it in a code block, but it fails to show the REAL source).

#3 Xx7

Xx7
  • Members
  • 612 posts

Posted 18 June 2012 - 10:51 PM

Great, thanks JSLover! :)