[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Forum
. -> [Folder]  Announcements
. . -> [Subject]  New feature: ability to link to exact post within a thread
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New feature: ability to link to exact post within a thread

Postings by administrators only.

[Refresh] Refresh page


Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Tue 18 Dec 2012 08:52 PM (UTC)

Amended on Tue 18 Dec 2012 09:59 PM (UTC) by Nick Gammon

Message
Following a suggestion by Fiendish, the forum software has been amended to allow for you to link to a particular post. This is especially useful in a long thread.

Reply numbers


Each thread now identifies each post with a reply number (except the first post, the Original Post).

Manual syntax


You can use that reply number in a link:



It is necessary to put the reply number in twice. The first one (&reply=70) lets the forum software calculate the correct page (to save you doing it).

The second one (#reply70) is an "anchor" which tells your web browser to go to that exact part of the page. Anchors are not passed to the web server so we can't just calculate the page number from the anchor alone.

Template syntax


You can use the forum templates to generate that link for you, eg.


[post=10147,70]


The first number is the post number (from the "?id=10147" part of the URL) and the second number is the reply number (70).

The above would generate:

Template:post=10147 Please see the forum thread: http://gammon.com.au/forum/?id=10147 (reply #70).


[EDIT] Added a comma between the thread number and the reply number.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 18 Dec 2012 10:10 PM (UTC)

Amended on Tue 18 Dec 2012 10:43 PM (UTC) by Nick Gammon

Message
Click to generate URL


You can now click on the Reply #xxx link to generate the correct link for copying and pasting.

For example, in the case of the link above, you will see:


Posted by 	Gesslar   (17 posts)  bio 
Date 	        Reply #70 on Tue 14 Feb 2012 09:29 PM


Clicking on "Reply #70" on the page will generate a link to that exact reply (in other words the page will refresh centered on that reply). Then you can copy the URL from the "address" part of your web browser to use that link in another post.

Or just right-click on that link and use your web browser's "copy link" facility.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,805 views.

Postings by administrators only.

[Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]