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.

Viewing Newest Forum Post

2 posters

Go down

Solved Viewing Newest Forum Post

Post by dubkay April 30th 2015, 9:27 pm

Hi there, 

I recently changed my forum's appearance. I noticed that after changing the appearance, when clicking on a topic that someone has replied to, it goes to the original post rather than the most recent reply. I didn't click on anything to change it to be like this but somehow, it has changed on me. Is there a code that can solve this?

My forum is Phpbb3, not phpbb2*

Thanks in advance.
avatar
dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur April 30th 2015, 9:43 pm

Hi @dubkay,

There's 3 options for topics :

1. Clicking the topic title takes you to the beginning of the topic
2. Clicking the icon next to the username takes you to the newest post
3. Clicking any number will take you to that page in the topic

Viewing Newest Forum Post Captur40

The latest topics widget will automatically take you to the newest post in a topic.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay April 30th 2015, 9:57 pm

Right, I was aware of that however earlier, when clicking on what you represent as "1", it would take you to the newest post as well.
avatar
dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur April 30th 2015, 10:05 pm

To my knowledge, I don't recall it doing that on phpbb3. Did you make any modifications to achieve that before you changed your forum appearance ? scratch
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay April 30th 2015, 10:15 pm

I don't believe I did. The theme was changed along with a lot of cosmetic changes but the CSS did not change really at all. Not sure why it changed either. Not a big issue if it can't be reverted to how it was.
avatar
dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur April 30th 2015, 10:19 pm

I can provide you with a script to achieve the result you want. To install it, go to Administration Panel > Modules > JavaScript codes management
( If it's not enabled, make sure to tick "Yes" and click save )

Create a script with the following settings :

Placement : In the sub-forums ( or all pages if you want it to work in searches )
Paste the following code and click submit :
Code:
$(function() {
  for (var r = $('.forumbg .row'), i = 0, j = r.length; i<j; i++) $(r[i]).find('.topictitle').attr('href', $(r[i]).find('.lastpost a[href^="/t"]').attr('href'))
});

After that, it should change the topic title location, linking to the most recent post.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay April 30th 2015, 10:35 pm

Thanks, that worked.
avatar
dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur April 30th 2015, 11:34 pm

You're welcome Smile

Topic archived

If you have anymore questions, feel free to open a new topic. ^^
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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