Viewing Newest Forum Post

Go down

Solved Viewing Newest Forum Post

Post by dubkay on Thu Apr 30, 2015 8: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.

dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur on Thu Apr 30, 2015 8: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



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

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on Thu Apr 30, 2015 8: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.

dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur on Thu Apr 30, 2015 9: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
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on Thu Apr 30, 2015 9: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.

dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur on Thu Apr 30, 2015 9: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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on Thu Apr 30, 2015 9:35 pm

Thanks, that worked.

dubkay
New Member

Posts : 15
Reputation : 1
Language : EN

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by Ange Tuteur on Thu Apr 30, 2015 10:34 pm

You're welcome Smile

Topic archived

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

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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