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
(2013-10-05, 02:31 AM)i-Discover Wrote: [ -> ]This plugin on line 139
http://mods.mybb.com/view/recent-topics-on-index-page

you can test ...

find

<a href="showthread.php?tid=' . $threadRow['tid'] . '&action=lastpost">

replace
<a href="showthread.php?tid=' . $threadRow['tid'] . '">

i don´t know if work...
That works but it breaks the google seo url (http://mods.mybb.com/view/google-seo)
if i don't remove
&action=lastpost
the url is shown like this
/Thread-Hi-there?pid=62#pid62

But if i remove
&action=lastpost
the url becomes
showthread.php?tid=10&action=#.Uk9-mFBmh8E


Please let me know if you have an alternative solution Smile
(2013-10-05, 02:51 AM)i-Discover Wrote: [ -> ]That works but it breaks the google seo url (http://mods.mybb.com/view/google-seo)
if i don't remove
&action=lastpost
the url is shown like this
/Thread-Hi-there?pid=62#pid62

But if i remove
&action=lastpost
the url becomes
showthread.php?tid=10&action=#.Uk9-mFBmh8E


Please let me know if you have an alternative solution Smile

try something this... i don´t know if work... i don´t test here...

find

$posttime = my_date($mybb->settings['timeformat'], $threadRow['lastpost']);

Replace

$posttime = my_date($mybb->settings['timeformat'], $threadRow['lastpost']);
$threadlink = get_thread_link($threadRow['tid']);

find

<a href="showthread.php?tid=' . $threadRow['tid'] . '&action=lastpost"> 

replace

<a href="' . $threadlink . '">
Thank you so much, that fixed all the issues 1+1=2 Smile
Pages: 1 2