The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can you automatically create a hyperlink to the latest post in a thread?

View previous topic View next topic Go down

Solved How can you automatically create a hyperlink to the latest post in a thread?

Post by Gray on November 12th 2017, 9:23 am

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://www.revivaldawn-oprp.com/

Description of problem

I'm hoping the solution is fairly simple for this, but I'm trying to create a hyperlink in a custom widget which leads to the latest post of a particular thread. How would I go about doing this?

Note that I'd like this hyperlink to automatically update to point to the latest post every time a new post is posted in the thread.

The thread in question: http://www.revivaldawn-oprp.com/t373-news-coo

Solution

The solution to this was simple as I'd hoped! You simply need to add
Code:
?view=newest
to the url of the thread to direct you to the latest post.

Thanks to Van-Helsing for the solution!


Last edited by Gray on November 17th 2017, 1:49 am; edited 1 time in total

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by skouliki on November 12th 2017, 3:35 pm

avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 3135
Reputation : 491
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by Gray on November 12th 2017, 4:04 pm

There seems to be a misunderstanding. I'd like the link to access the latest post of a single thread.

Allow me to explain further: I've created a quick links widget which provides users with a direct shortcut to various posts on the forum. One of those posts directs to a news thread. This "news" is not a forum, it's just one thread where new posts are added in the form of news.


I'd like that button to direct users to the latest post in that thread.

I'll try experimenting with the javascript you provided, but is there no simpler way to do it?

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by skouliki on November 12th 2017, 4:06 pm

i do not know ...to be honest ..
let's wait for someone else to give advice on this
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 3135
Reputation : 491
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by Gray on November 14th 2017, 5:10 pm

I tried using the custom recent topics widget, but unfortunately, it couldn't solve my problem.

So, bumping this topic.

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by Gray on November 16th 2017, 11:01 pm

Bump.

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by Van-Helsing on November 16th 2017, 11:30 pm

Hello,
You can replace the link of "News Coo":

Code:
http://www.revivaldawn-oprp.com/t373-news-coo

with this link:
Code:
http://www.revivaldawn-oprp.com/t373-news-coo?view=newest

Normally the parameter:

Code:
?view=newest

will you transfer you directly at the last reply of the topic.
Wink
avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by Gray on November 17th 2017, 1:47 am

@Van-Helsing wrote:Hello,
You can replace the link of "News Coo":

Code:
http://www.revivaldawn-oprp.com/t373-news-coo

with this link:
Code:
http://www.revivaldawn-oprp.com/t373-news-coo?view=newest

Normally the parameter:

Code:
?view=newest

will you transfer you directly at the last reply of the topic.
Wink

Thank you sooooo much! This is exactly what I was looking for! Very Happy

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: How can you automatically create a hyperlink to the latest post in a thread?

Post by SLGray on November 17th 2017, 3:26 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40868
Reputation : 2773
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum