MyBB Community Forums

Full Version: Thread prefixes not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
That happened to work. Thanks for all your help, you went through a good amount of work to help me out, good job Smile

Update: nevermind, I thought I had it, Prefixes show on a few more places, like "Today's Posts" but when you view a forum area directly using the board index, they don't appear.
Found 'sendthread' in ungrouped templates... adding the code for it now.
I have to be missing something in forumdisplay, because thats what I see in the url when I don't see the prefixes that should be there, so i've narrowed it down a bit, i'll figure it out soon

Edit: I"m not sure anymore, went to view the source, and for the first post in my forum it says forumdisplay.php, and the second one it shows up as showthread.php. Not sure where the edit is required.

It is on a forumdisplay.php page though i'm sure, so my problem i'm assuming is somewhere in a forumdisplay template
Can you take a screenshots of what you mean, please?
sure

When I click on "Todays Posts"
They appear the way they should:
[Image: asdfrre.png]

But when i'm on the board forum index, and I click on a forum area manually to search through the thread listings it gives. For example, I click on "General Programming Discussion" which is a forum area I have on the main forum index page, and no prefixes show:
[Image: sdfnk.png]

Beside the threads in the boxes, there should be a [Perl] Thread prefix beside them. When I click on one of those threads, it shows in the title, here:
[Image: asdfsdf.png]


but NOT in the main thread view list for the forum that it's in (from the main forum board)
ACP > Templates > Forumdisplay Templates > forumdisplay_thread > and see if the following code is present (Just before the <a href="{$thread['threadlink']}")
{$prefix} {$gotounread}{$thread['threadprefix']}
If not then add there.
Have another look at the 'forumdisplay_thread' changes, I posted here: http://community.mybb.com/thread-95890-p...#pid701440
Nope, I copied everything out from that code bit you added from <span> to </span> in the exact place, and it doesn't show. I'll take a look at the default MyBB template for this, as it seems to work. Sorry for not replying in so long, I got caught up in a few things.

Update: Even copying the full code out from the mybb default template 'forumdisplay_thread' to the theme template didn't work.

Here's the template for 'forumdisplay_thread'
<tr>
	<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>
	<td class="{$bgcolor}">
		{$attachment_count}
		<div>
			<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}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}" 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>

I tried uploading a different theme to use though, and on the new theme Whenever I use the quickreply box to post a post in a thread, it doesn't redirect me back to the thread, I just get a blank white page.

There's other issues with that new theme as well, as the forum smiley's are not clickable in the smiley box for posting.
Bump !

Hello,

I have exactly the same problem, I can see the thread prefix when I read the post (prefix in the title) but not in the forumdisplay_thread !

{$prefix} and {$thread['threadprefix']} doesn't work on the forumdisplay_thread template.

Thank you,
Have a nice day,
Kevainxxx
Pages: 1 2