MyBB Community Forums

Full Version: Prefix at "last post" ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I googled, found this thread: http://community.mybb.com/post-566679.html
I did what it said to configure the functions_forumlist.php file, but the whole latest post just vanished, ofc I made backup on the original file so I'm back on track.

However, I want the prefix to be shown with it full view (so if I have bold text or any color text it shall also be visible) in latest posts.

How do I do this?
Anybody know this!?!?

Anybody know which template that I can find this "Last post" on index page? That way I may be able to modify it myself, if I just can find the right path.
The word Last Post is in the language file.

Template, forumdisplay_thread
Well. I have tried do this but I just can't fix it!
HOW TO DO? Sad


[€dit]
You really sure it's in the forumdisplay_thread ? Because isn't that just the thread itself? it's not the last post?
Because I got a code in there I added some days ago, where it says [sticky] when the thread is sticked, and it ain't really showing up in the last post window at the main index page.


This is how my whole code looks like:
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
<span class="thread_sticky_{$thread['sticky']}"><strong>[STICKY]</strong></span>
<span class="thread_closed_{$thread['closed']}"><strong><font color="red">[CLOSED]</font></strong></span>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>
Comon, anybody knowing this?
You can easily do it using templates conditional! Ask D666 to help you with the conditional Wink
(2013-12-24, 10:53 PM)marcus123 Wrote: [ -> ]You can easily do it using templates conditional! Ask D666 to help you with the conditional Wink

Who's/what's D666!?
Searched on memberlist on the forums here but it says "There were no members found with the search criteria you entered."
It's Destroy666 and hes the best when it comes to this stuff!
(2013-12-26, 01:17 AM)marcus123 Wrote: [ -> ]It's Destroy666 and hes the best when it comes to this stuff!

Thanks. I kindly asked him in PM. But yet no respond.

Well, if anybody happen to get any other solution for this would be awesome. It feels so weird to not have prefix on latest posts when they're existing in the each category/forum plus having them in the ProStats plugin.

This would be standard to have in the source installation of MyBB.

[edit]
Well, only like 2 days have passed now I see. Been feeling so longer, time goes slow these days.
It is not that easy of a solution, you need to think about the length of the whole title to shorter it after the prefix is displayed (since that is how it should be done IMHO). A mess really.
Pages: 1 2