MyBB Community Forums

Full Version: Need help with this
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Is there anyway to move the date the thread was created and the last post under "Started By"?

Pic attached below!
bump!
I'm not very familiar with these templates, but try "forumbit_depth1_forum_lastpost". It seems to have the last-post related items in it.
Well thats a bit lengthy to type in as I've a little less time.

Study the following sample codes applying of which will put the reply and view count under thread title. Compare the codes with the default templates and I guess you can figure out the trick. The similar thing is required to be done with what you need in the exact same two below-mentioned template.

If no, state here and I'll give you the code of what you want when I can manage some times and if nobody helps you in-between.

Modified code to place in "forumdisplay_threadlist":

<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span></td>
<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>

<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span> / <span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']}</strong></span> / <span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>

Modified code to place in "forumdisplay_thread"

<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="jMyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

<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">{$lang->author}: {$thread['profilelink']}</div>
<div class="smalltext">{$lang->replies}: <a href="jMyBB.whoPosted({$thread['tid']});"><strong>{$thread['replies']}</strong></a>{$unapproved_posts} | {$lang->views}: <strong>{$thread['views']}</strong></div>

NB: Repeat same trick to the following template combos as well:

usercp_subscriptions
usercp_subscriptions_thread

usercp_latest_threads
usercp_latest_threads_threads

usercp_latest_subscribed
usercp_latest_subscribed_threads

search_results_threads
search_results_threads_thread
I was able to move it but now I have an extra box.

This is my forumdisplay_thread code:
<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 class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
            <table><tr><td id="tvatar">{$thread_avatar}</td><td><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}<br>Category: {$thread['threadprefix']}<br><font color="black">Started By:</font> {$thread['profilelink']}<br>Last Post Made: <span class="lastpost smalltext">{$lastpostdate} At {$lastposttime}</b><br><a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span></td></tr></table>        
        </div>
	</td>
	{$unapproved_posts}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
	</td>
{$modbit}
</tr>


Pic attached...