linking to a particular post

If you have a question or need help, this is the place to be.
Post Reply
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

linking to a particular post

Post by WharfRat » Sat May 24, 2014 1:32 pm

What is the correct way to link to a particular post in a topic?

I understand the f=n and t=nnnn part, but it is the #nnnnn part that I am stuck at

In case it matters, it should be applicable for all of the following:
  • another post on the same page
    a post in the same topic on another page
    a post in another topic
I need to get to a particular post, not just the start of the topic or page

Thanks
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)

jonib
Plugin Developer
Posts: 1318
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: linking to a particular post

Post by jonib » Sat May 24, 2014 4:03 pm

WharfRat wrote:I need to get to a particular post, not just the start of the topic or page
Every post has a subject line that's a link to that post, that's what I use when linking to specific posts. Or are you after something else, then I don't know.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: linking to a particular post

Post by krambriw » Sun May 25, 2014 4:52 am

Code: Select all

http://www.eventghost.net/forum/viewtopic.php?f=2&t=6162#p31186
I understand this as p31186 is your post in (thread) t=6162 in (forum) f=2 (General Support)

User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: linking to a particular post

Post by WharfRat » Sun May 25, 2014 8:07 am

Thanks guys,

I must have been doing something wrong.
That sid= part was throwing me off a bit.

Edit: :oops: from the files of the cut-and-paste anti-pattern (not Erich Gamma et al), I had http://http:// at the start of all my links
Last edited by WharfRat on Sat Aug 30, 2014 11:04 am, edited 1 time in total.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)

User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: linking to a particular post

Post by WharfRat » Fri Aug 29, 2014 8:50 pm

OK, I will summarize everything, because someone asked me in this particular post.

The link is entered into that white text box that is displayed when you are posting.
These can be links to web pages in general, or links to topics and particular posts here at EventGhost.

Of course, to show you how to do it, I will have to place them in code boxes so you can see what should be typed.

The general syntax of a link is:

Code: Select all

[url=XXX]YYY[/url]

for example: [url=http://www.google.com/]uncle Google[/url]
where XXX is the thing you want to link to, and YYY is the descriptive text you want to display for it
and the example looks like: uncle Google


The rest of the examples relate to topics and posts on the EventGhost forum pages.


An easy way to get links to particular topics or particular posts in a topic, is to right-click on the subject line and copy the link.
The subject line for this post is Re: linking to a particular post.
They can then be pasted to replace the XXX part.
You should delete the &sid=ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ part up to the #p or &start characters, if those characters are present.


If a particular post is located on the first page of the topic, then the syntax is:

Code: Select all

[url=XXX#pNNN]YYY[/url]

for example: Remote Controls [url=http://www.eventghost.net/forum/viewtopic.php?f=2&t=6119#p30686]Part I[/url]
where NNN is the number that was assigned by phpBB to that particular post
and the example looks like: Remote Controls Part I


If a particular post is located on a page that is not the first page of the topic, then the syntax is:

Code: Select all

[url=XXX&start=PPP#pNNN]YYY[/url]

for example: Remote Controls [url=http://www.eventghost.net/forum/viewtopic.php?f=2&t=6119&start=15#p30713]0019[/url]
where PPP depends on which page of the topic it is.
page 1 does not use &start
page 2 uses &start=15
page 3 uses &start=30
page 4 uses &start=45
page 5 uses &start=60
etc. where each topic page increases &start by 15
and the example looks like: Remote Controls 0019


That's how it's done.

Now I keep updating a list of useful EventGhost links in a text file, which I can refer to whenever I am posting something.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)

Post Reply