MyBB Community Forums

Full Version: Last post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
No doubt this is a simple question.
On my forum i have the latest threads showing.
In that frame there is a last post followed by the users name.
I simply want to have it so the words last post become a link to the actual last post rather than just currently linking to first post.
I have seen it on another MyBB forum.
I did do a search for this and got loads of stuff unrelated.
Im assuming its a plugin but cant seem to find it.
Sorry for the dumbass question.
Link to my site is you need to check what i am referring to.
HERE
Sorry for the link. It has bad words in the url so best not to post direct link.
Hi,

Please follow the steps below:

Admin CP > Templates > Modify/Delete > *Template Name* > Portal Templates > Expand > Open the template "portal_latestthreads_thread". Replace it will the following:

<tr>
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}&amp;action=lastpost">{$thread['subject']}</a></strong>
<span class="smalltext"><br />
<em>{$lang->latest_threads_lastpost}</em> {$lastposterlink}<br />
{$lastpostdate} {$lastposttime}<br />
<strong>&raquo; </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>&raquo; </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>

Then click "Add Template".

That should do it,
Chris.
Thank you Chriss. That will work just fine.
I did actually want just the last post to become a link.
[Image: captureja0.jpg]
And the main latest topic to be link to first post.
But thats ok. That will work also.
Thank you heaps for your help.
Hi,

Sorry - that can be done:

Simply replace the "portal_latestthreads_thread" template with:

<tr>
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}">{$thread['subject']}</a></strong>
<span class="smalltext"><br />
<em><a href="{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}&amp;action=lastpost">{$lang->latest_threads_lastpost}</a></em> {$lastposterlink}<br />
{$lastpostdate} {$lastposttime}<br />
<strong>&raquo; </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>&raquo; </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>

Chris.
Thankyou Chris. Works a charm.
You are a champion. Cheers. Big Grin