MyBB Community Forums

Full Version: I need help!!! Last Post Bye Username Date and Time above
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I need help!!! Last Post Bye Username Date and Time above

how can this be solved?

[Image: XB5jqGT.png]

Only Change Positions !

Username Above

Post Date And Time - Below !

can someone help me?

Please ! Thank you
forum admin panel >> Templates & Style >> Templates >> your forum's active theme
>> Forum Bit Templates >> forumbit_depth2_forum_lastpost

find code segment like below
{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}

change like below & save the template
{$lang->by} {$lastpost_profilelink}<br />{$lastpost_date}

[MyBB templates related guidance]
(2019-11-27, 03:06 PM).m. Wrote: [ -> ]forum admin panel >> Templates & Style >> Templates >> your forum's active theme
>> Forum Bit Templates >> forumbit_depth2_forum_lastpost

find code segment like below
{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}

change like below & save the template
{$lang->by} {$lastpost_profilelink}<br />{$lastpost_date}

[MyBB templates related guidance]

hi

good thank you - yes on the homepage it succeeded



but I would like to do the same in my existing post

can help me ?

[Image: ethozRA.png]

Thank you !!!
forumdisplay_thread towards the bottom should look something like this:

<span class="lastpost smalltext">{$lastpostdate}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>	

change it to this:

<span class="lastpost smalltext"><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}<br />
		{$lastpostdate}</span>
(2019-11-27, 05:32 PM)Stage4000 Wrote: [ -> ]forumdisplay_thread towards the bottom should look something like this:

<span class="lastpost smalltext">{$lastpostdate}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>	

change it to this:

<span class="lastpost smalltext"><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}<br />
		{$lastpostdate}</span>

hi @stage4000


Thank you done !




I need some more help

I want the date and time to appear under the title!

So:

[Image: EpOFvgw.png]

can help me ?

Thank you
can you send me your current forumdisplay_thread and forumbit_depth2_forum_lastpost templates please?
(2019-11-27, 06:02 PM)Stage4000 Wrote: [ -> ]can you send me your current forumdisplay_thread and forumbit_depth2_forum_lastpost templates please?

ok

forumdisplay_thread
<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="images/ticon.png"</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$thread['subject']}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="{$mybb->settings['bburl']}/misc.php?action=whoposted&tid={$thread['tid']}" onclick="MyBB.whoPosted({$thread['tid']}); return false;">{$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"><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}<br />
		{$lastpostdate}</span>
	</td>
{$modbit}
</tr>


forumbit_depth2_forum_lastpost


<span class="smalltext">
<a href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lang->by} {$lastpost_profilelink}<br />{$lastpost_date}</span>
<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="images/ticon.png"</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$thread['subject']}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']} <br />
		{$lastpostdate}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="{$mybb->settings['bburl']}/misc.php?action=whoposted&tid={$thread['tid']}" onclick="MyBB.whoPosted({$thread['tid']}); return false;">{$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"><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>
make this change to forumdisplay_thread and it should do the trick
(2019-11-27, 06:07 PM)Stage4000 Wrote: [ -> ]
<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="images/ticon.png"</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$stprf}{$clprf}{$clclr}{$stclr}{$str1}{$thread['subject']}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}{$str2}{$stimg}{$clclr2}{$stclr2}{$climg}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']} <br />
		{$lastpostdate}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="{$mybb->settings['bburl']}/misc.php?action=whoposted&tid={$thread['tid']}" onclick="MyBB.whoPosted({$thread['tid']}); return false;">{$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"><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>
make this change to forumdisplay_thread and it should do the trick

the problem is just moving it, but I should show it in both places!

be visible on both sides, left and right
Please note that I haven't extensively tested this change, and depending on your forum theme it could result in issues, particularly if a thread has many responses that require more than 1 page since the forumdisplay_thread will put page numbers on the thread list.
Pages: 1 2