The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

link "to the last post of the topic" after the first post

5 posters

Go down

Solved link "to the last post of the topic" after the first post

Post by poesia-verses April 11th 2024, 6:06 am

link "to the last post of the topic" after the first post Ghfghf10
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
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by كونان2000 April 11th 2024, 11:46 pm

hi @poesia-verses
Mmmmm
don't know if I understood your meaning well Shrug
But members can navigate using numbers
They can click on the last number to go to the last page
link "to the last post of the topic" after the first post Aao_ao10
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by poesia-verses April 12th 2024, 6:13 am

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
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by SLGray April 12th 2024, 6:34 am

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.


link "to the last post of the topic" after the first post Slgray10

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

Male Posts : 51552
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

كونان2000 likes this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by كونان2000 April 12th 2024, 7:09 pm

hi @poesia-verses ,
SLGray words are true
You should not use too many scripts grrr!!!!!


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>');


link "to the last post of the topic" after the first post Aao_ao11
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by poesia-verses April 12th 2024, 7:22 pm

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

Shocked
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by كونان2000 April 12th 2024, 7:49 pm

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

Shocked

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>');
 
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by poesia-verses April 12th 2024, 7:59 pm

bwi Neutral
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
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by Sir Chivas™ April 12th 2024, 8:21 pm

@كونان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. Laughing
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

TonnyKamper, poesia-verses and كونان2000 like this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by poesia-verses April 12th 2024, 8:23 pm

@"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

poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by poesia-verses April 12th 2024, 9:26 pm

I figured it out

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.

poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

كونان2000 likes this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by كونان2000 April 12th 2024, 10:48 pm

hi @poesia-verses
I really apologize to you
I didn't understand you at first
Because my English is not good beu

You are smart because you discovered the code Razz
Code:
<a href="?view=newest">Go to last post of topic</a>
---------------

Thanks @Sir Chivas™ and @poesia-verses

I wish you good luck

كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

Sir Chivas™ and poesia-verses like this post

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by SLGray April 13th 2024, 12:36 am

If this is solved, please click the big green solved button above this topic.


link "to the last post of the topic" after the first post Slgray10

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

Male Posts : 51552
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: link "to the last post of the topic" after the first post

Post by skouliki April 13th 2024, 7:51 am

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

Female Posts : 15383
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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