link "to the last post of the topic" after the first post
5 posters
Page 1 of 1
link "to the last post of the topic" after the first post
link "to the last post of the topic" after the first post
Topics can be long and users often don’t know that they need to click the “go to last post” button, so they click the topic link in the list. everyone will be more comfortable with this function
you need a topic link and add it at the end ....?view=newest
place this link after the first post
with respect to the scripters
Last edited by poesia-verses on April 13th 2024, 3:40 am; edited 1 time in total
Re: link "to the last post of the topic" after the first post
hi @poesia-verses
Mmmmm
don't know if I understood your meaning well
But members can navigate using numbers
They can click on the last number to go to the last page
Mmmmm
don't know if I understood your meaning well
But members can navigate using numbers
They can click on the last number to go to the last page
poesia-verses likes this post
Re: link "to the last post of the topic" after the first post
Hello
please write a script, I think it’s not complicated. But as for clicking on a page, it’s inconvenient and many people don’t know about these pages, some are older people.
Sincerely
please write a script, I think it’s not complicated. But as for clicking on a page, it’s inconvenient and many people don’t know about these pages, some are older people.
Sincerely
Re: link "to the last post of the topic" after the first post
You need to create guides for your members so they would know how the features on the forum works. If you add to many scripts, your forum will be very slow to load.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
كونان2000 likes this post
Re: link "to the last post of the topic" after the first post
hi @poesia-verses ,
SLGray words are true
You should not use too many scripts
SLGray words are true
You should not use too many scripts
- Code:
document.addEventListener("DOMContentLoaded", function() {
var lastLink = document.querySelector(".pagination a:last-child");
var penultimateLink = document.querySelector(".pagination a:nth-last-child(2)");
lastLink.addEventListener("click", function(event) {
event.preventDefault();
window.location.href = penultimateLink.getAttribute("href");
});
});
document.write('<style type="text/css">.pagination a:last-child::after {
content: "Go to the last posts of the topic";
}
.pagination a:last-child {
font-size: 32px;
margin: 15px;
display: block;
background: #0000;
}
.post:first-child {
margin-bottom: 38px;
background-color: #000000;
border-bottom: 10px solid #666;
} </style>');
poesia-verses likes this post
Re: link "to the last post of the topic" after the first post
you need a topic link and add it at the end ....?view=newest
the code moves to the last page, not the last post. The link to the last post is easy to get - see the quote. I'm sorry
Re: link "to the last post of the topic" after the first post
poesia-verses wrote:you need a topic link and add it at the end ....?view=newest
the code moves to the last page, not the last post. The link to the last post is easy to get - see the quote. I'm sorry
Honestly, I didn't understand you well from the beginning
You want a button that takes you to the latest post on the page you are on
- Code:
$(document).ready(function(){
$(".postdetails h3 a").last().addClass("rtrtrt");
});
document.write('<style type="text/css">a.rtrtrt {
color: #0000;
top: 50%;
position: fixed;
background: #0a0908;
} </style>');
poesia-verses likes this post
Re: link "to the last post of the topic" after the first post
again not the same. I need to move FROM THE FIRST POST OF THE TOPIC to the last post of the topic. from the beginning of the topic to the very end.
in the script add to the topic address: ?view=newest
Re: link "to the last post of the topic" after the first post
@كونان2000 he means to have a button that links to the last post if there's multiple pages, he wants that button underneath the first post to be able to redirect to the last post of the last page. If that makes sense. It sounded better in my head.
TonnyKamper, poesia-verses and كونان2000 like this post
Re: link "to the last post of the topic" after the first post
@"Sir Chivas"
exactly. I agree. Thank you
=-=-=-=-=-=-=-=-==-=-=-
here is an example of jumping to the last message
https://help.forumotion.com/t163300-link-to-the-last-post-of-the-topic-after-the-first-post?view=newest
exactly. I agree. Thank you
=-=-=-=-=-=-=-=-==-=-=-
here is an example of jumping to the last message
https://help.forumotion.com/t163300-link-to-the-last-post-of-the-topic-after-the-first-post?view=newest
Re: link "to the last post of the topic" after the first post
I figured it out
You can put this link next to the topic name in the topic. in the template of course
Thank you for the work done, the scripts from this topic will be useful to someone.
- Code:
<a href="?view=newest">Go to last post of topic</a>
You can put this link next to the topic name in the topic. in the template of course
Thank you for the work done, the scripts from this topic will be useful to someone.
كونان2000 likes this post
Re: link "to the last post of the topic" after the first post
hi @poesia-verses
I really apologize to you
I didn't understand you at first
Because my English is not good
You are smart because you discovered the code
Thanks @Sir Chivas and @poesia-verses
I wish you good luck
I really apologize to you
I didn't understand you at first
Because my English is not good
You are smart because you discovered the code
- Code:
<a href="?view=newest">Go to last post of topic</a>
Thanks @Sir Chivas and @poesia-verses
I wish you good luck
Sir Chivas™ and poesia-verses like this post
Re: link "to the last post of the topic" after the first post
If this is solved, please click the big green solved button above this topic.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: link "to the last post of the topic" after the first post
Problem solved & topic archived.
|
Similar topics
» How to post a thread/topic/msg via a direct link?
» Way to Load First Post In Topic Through "Latest Topics" Widget's URL Link
» New post icon link
» Can't Post Link
» Post link not available
» Way to Load First Post In Topic Through "Latest Topics" Widget's URL Link
» New post icon link
» Can't Post Link
» Post link not available
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum