MyBB Community Forums

Full Version: Go to firstpost instead of lastpost?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, currently when i open a thread it redirects to the lastpost, how do i set so that first post is shown instead of lastpost. Thanks
forum display and search results have goto first unread post links (in general, green arrow image )
do you want to have it on the index page at the last column ? or completely change the last post link
Hi, .m. what i am trying to say is, forexample. if you open this thread ( http://community.mybb.com/thread-63082.html ), you'll see the first post but in my case (my forum) you're taken to the last post (i.e page-19's lastpost)

I want to change the postlink from lastpost to firstpost, how do you do that? Thanks
^ please see replies here
Is it possible without using a plugin? Thanks
link of your forum?
strange ...
the default MyBB is going to the first page of the thread
/: I'm sorry i can't provide a link because i'm developing on localhost not a live server. It jumps to last post, i don't know why!
I think if you visit theforum below (also powered by mybb) and open a thread you're taken to the last post and that's what i'm trying to avoid http://yaldaram.com/index.php
(2013-10-05, 01:23 AM)i-Discover Wrote: [ -> ]/: I'm sorry i can't provide a link because i'm developing on localhost not a live server. It jumps to last post, i don't know why!
I think if you visit theforum below (also powered by mybb) and open a thread you're taken to the last post and that's what i'm trying to avoid http://yaldaram.com/index.php

in index?

in /inc/functions_forumlist.php

Find:

$lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost");

Replace:
$lastpost_link = get_thread_link($lastpost_data['lastposttid']);
Hi martec, thank you so much, that sorted out the index, i'm also using a plugin (latest threads) as a sidebar, it has this line, what should i do to also make it point to first post. Thanks again
 $recenttopics .= '<strong><a href="showthread.php?tid=' . $threadRow['tid'] . '&action=lastpost">' . $subject .'</a></strong><br>';        
(2013-10-05, 02:10 AM)i-Discover Wrote: [ -> ]Hi martec, thank you so much, that sorted out the index, i'm also using a plugin (latest threads) as a sidebar, it has this line, what should i do to also make it point to first post. Thanks again
 $recenttopics .= '<strong><a href="showthread.php?tid=' . $threadRow['tid'] . '&action=lastpost">' . $subject .'</a></strong><br>';        

what plugin?
Pages: 1 2