Jump To Last Post -...
 
Notifications
Clear all

Script [Solved] Jump To Last Post - 2 different links ?

7 Posts
4 Users
4 Likes
459 Views
Posts: 93
Topic starter
(@nutritionchat)
Estimable Member
Joined: 4 years ago

Hi Support

I like the topic thread jumping to the last post - very useful - but it takes several seconds on a busy topic - it seems to load the first page, and then jump to the last page.

However, clicking on the user avatar also takes you to the last post, and this method is quicker as it links directly to the page too.

So can we have the topic link work in the same way as the avatar link ? (And maybe even remove the avatar link entirely, as it's not intuitive at all.)

Topic link = .../forum-unavailable-to-view-unless-logged-in/#post-81306

Avatar link = .../forum-unavailable-to-view-unless-logged-in/paged/2/#post-81306

6 Replies
Posts: 126
(@cotner)
Estimable Member
Joined: 2 years ago

I was not a fan of this myself... I was given this code to add to my theme function.php file to skip that extra step.

/* wpForo Custom: Go to Unread without redirect */
add_filter('wpforo_build_direct_unread_post_url', '__return_true');
1 Reply
(@nutritionchat)
Joined: 4 years ago

Estimable Member
Posts: 93

Thanks @cotner - that works perfectly!

@robert and @chris - could we have a repository of code snippets, please? It would be very useful! It's not so easy to find these hacks via forum search.

Tutrix
Posts: 1186
(@tutrix)
Noble Member
Joined: 4 years ago

Posted by: @nutritionchat

And maybe even remove the avatar link entirely, as it's not intuitive at all.

i have changed this

  • the avatar is now linked to the member profile 😉 
  • and only the arrow or feather with the post

 

 

Posts: 126
(@cotner)
Estimable Member
Joined: 2 years ago

Posted by: @nutritionchat

@robert and @chris - could we have a repository of code snippets, please? It would be very useful! It's not so easy to find these hacks via forum search.

I am 100% in support of this... A repository with a quick description, the code, and where to use it.

Robert
Posts: 10478
Admin
(@robert)
Support Team
Joined: 8 years ago

Posted by: @nutritionchat

@robert and @chris - could we have a repository of code snippets, please? It would be very useful! It's not so easy to find these hacks via forum search.

Here are almost all code snippets:

https://wpforo.com/community/recent/?view=prefix&prefixid=11

 

And Custom CSS Codes:

https://wpforo.com/community/recent/?view=prefix&prefixid=12

 

1 Reply
(@nutritionchat)
Joined: 4 years ago

Estimable Member
Posts: 93

@robert ... great ! You guys never cease to impress ...