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.

Viewing Newest Forum Post

View previous topic View next topic Go down

Solved Viewing Newest Forum Post

Post by dubkay on 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.

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



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

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on 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.

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 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on 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.

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 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Viewing Newest Forum Post

Post by dubkay on April 30th 2015, 10: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 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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