Link to a specific post comment

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Link to a specific post comment

Post by php_mike »

Is there a way to link to a specific comment in a thread?

For example,

the thread
viewtopic.php?f=13&t=40

the second page
viewtopic.php?f=13&t=40&start=10

This shows the start of the comment I'd like to isolate but it also shows the next reply.
viewtopic.php?f=13&t=40&start=11

Is there some way of changing the url so that I can link to a specific comment only?
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2572
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Link to a specific post comment

Post by P_I »

php_mike wrote: Wed Apr 01, 2020 1:59 am Is there a way to link to a specific comment in a thread?
Technically no because phpBB doesn’t have threads, it has topics.

But to answer your question, yes there is. See the little icon beside your name, that is a link to your post. Specifically the link to your post is viewtopic.php?p=15468511#p15468511
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

I'm not seeing that or missing it. BTW, it's someone else's post.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1330
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo

Re: Link to a specific post comment

Post by AlfredoRamos »

php_mike wrote: Wed Apr 01, 2020 1:59 am Is there a way to link to a specific comment in a thread?
Copy the link of the post title, or the document icon just before the username.

Image
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

That still leads to the first comment on the second page. Logged in as a user or not.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2572
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Link to a specific post comment

Post by P_I »

AbaddonOrmuz wrote: Wed Apr 01, 2020 3:13 am
php_mike wrote: Wed Apr 01, 2020 1:59 am Is there a way to link to a specific comment in a thread?
Copy the link of the post title, or the document icon just before the username.

Image
Thanks I was on a tablet last night so it was challenging to provide an image to explain it.

Another way to get the same URL is use the link under the "up arrow" in a quoted message.

Are the examples we are providing here on phpBB not working for you, or is it a problem specific to your board?

ADDED: Let's try a specific example here on phpBB, the Discuss: phpBB 3.2.9 Release topic has two pages.

Using your example,

the topic: viewtopic.php?f=64&t=253458

the second page: viewtopic.php?f=64&t=2534586&start=15

a specific post (by Mick) on the second page: viewtopic.php?p=15435161#p15435161
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

So for my test, I'm trying to see your first reply/comment to my post.

When I click on the tiny icon near the subject, it does highlight the comment but the rest of the comments including my original question show.
If I click on the up arrow, same thing.

Just so you understand why I or someone might want this is because I'd like to share a specific comment someone made. For example, they would have written a how-to or something and I want to share that specifically, along with the images they posted as part of their how-to.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2572
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Link to a specific post comment

Post by P_I »

My original reply is viewtopic.php?p=15468516#p15468516. I get that URL by right-clicking on the icon and copying the link.

Added: re-reading your last comment, are you trying to just isolate the one post? If so, does viewtopic.php?f=26&t=2547186 demonstrate what you are trying to accomplish? I created it by clicking the Quote reply button, then copying the contents into a new post. In the new post, the "up arrow" icon retains the link back to the message I quoted.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

Yes, what you are showing me is exactly what I am asking about.
I've tried what you are telling me but am not seeing the same thing.
Maybe I am missing something and will re-read the whole thread.
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

LOL, nope, still not getting it, sorry.
When I open a new tab using the quote, I get the new message. Are you saying that that URL or that I actually have to create that new post and link to it somehow.

Not sure why I'm not following this.
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

just a test
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

Ok, I was testing and the link you gave me is gone. Now I think I understand and confirm, you were/are saying that in effect, I would be creating a new topic. If I don't want replies on it, I'd have to lock it but that would give me the one single comment I want as it's own.
User avatar
EA117
Registered User
Posts: 2176
Joined: Wed Aug 15, 2018 3:23 am

Re: Link to a specific post comment

Post by EA117 »

"Link to" is the language that made this confusing, because phpBB does indeed let you link to a specific post. (But in context of the topic it was posted in.) "Show only a single post" is what's actually trying to be achieved here, and for which phpBB doesn't appear to already have that solution.

I got excited because search.php actually had an internal "p=" post ID parameter it would recognize, and I thought maybe you could use a search.php URL to isolate that one post & show the entire post. But it doesn't appear to work that way, so no dice.

If the post you wanted to isolate just happened to be the only post by you in that topic, you could use search.php to show only posts authored by you in a specific topic ID. Such as for this topic we're posting in right now, although clearly you have multiple posts in this one:

search.php?author=php_mike&t=2547106&ch=-1

Here is a different one where there is only a single post by you:

search.php?author=php_mike&t=2182462&ch=-1

But that's probably not what you're really needing. Using search.php doesn't put you in viewtopic.php where you could immediately "Reply" or similar. But unfortunately there is no "viewpost.php", nor does viewtopic.php appear to have a "display just a single post" mode.
php_mike
Registered User
Posts: 251
Joined: Fri Aug 30, 2013 3:31 pm

Re: Link to a specific post comment

Post by php_mike »

I must be missing something because what you show me seem to do exactly what I'm after but I've not been able to replicate that, only open the url you gave me and that worked.

I'll have to re-read this again to see what I missed. I sure appreciate the help and ideas.
User avatar
EA117
Registered User
Posts: 2176
Joined: Wed Aug 15, 2018 3:23 am

Re: Link to a specific post comment

Post by EA117 »

In the example URL like search.php?author=php_mike&t=2182462&ch=-1:

author=php_mike is your username here on phpbb.com/community. To make a similar URL for your own board, you would replace that with your username on that board.

t=2182462 is the topic ID number. You see this is the "t=" value when viewing the topic you want to link to, and you just copy that number into this URL.

ch=-1 is the search.php option for "when a match is found, show just a snippet of the post, or show the entire post." -1 shows the entire post.

Are you saying it doesn't work for another topic ID here on phpbb.com/community (if so, show the URL you tried), or just when you try and use it on the site where you actually needed it.

Return to “[3.3.x] Support Forum”