MyBB Community Forums

Full Version: Combine threads/posts on main forum cat
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been fiddling around with this a bit, but I cannot find that correct place/template to edit to combine these two into one. It's kind of in forumbit_depth1_cat and forumdisplay_subforums, but when I edit those, it doesnt work, just removes a part and makes it into a black box. Anyone know anything?

[Image: UxhCahF.png]

Like this.

[Image: MCXRzqP.png]
Read this topic:
http://community.mybb.com/thread-70325.html

It's for default theme and maybe a bit outdated (don't think forumbit_depth2_cat has to be edited for instance), but you can suit it to your needs. Watch out for the .thead colspan in forumdisplay_subforums and forumbit_depth2_cat - it needs to be set to previous value -1.
Awesome, that worked perfect.
(2013-08-02, 12:56 AM)Destroy666 Wrote: [ -> ]don't think forumbit_depth2_cat has to be edited for instance

'forumbit_depth2_cat' is required to be edited as it takes place when you set a 'category' under the main category. If you don't do that edit - this happens:

[Image: otOUGB7.png]

The first one is a forum, but the second one is a category under the main category.
Is there a way to do the same but in sub forums.

These
[Image: km7kPDi.png]
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>

Change to:

		<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="14%"> <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>

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





Change to:

<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>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">
        <div class="smalltext">{$lang->replies}: <a href="javascript:MyBB.whoPosted({$thread['tid']});"><strong>{$thread['replies']}</strong></a>{$unapproved_posts} | {$lang->views}: <strong>{$thread['views']}</strong></div>

Apply the same trick (not the exact code) with these pairs also:

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

search_results_posts
search_results_posts_post
(2013-08-02, 08:09 AM)effone Wrote: [ -> ]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="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>

Change to:

<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>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">
        <div class="smalltext">{$lang->replies}: <a href="javascript:MyBB.whoPosted({$thread['tid']});"><strong>{$thread['replies']}</strong></a>{$unapproved_posts} | {$lang->views}: <strong>{$thread['views']}</strong></div>
When I change the above big black boxes appear at the end of the end where the checkboxes are. And everything gets moved toward the center.
Missed the {$ratincol} in forumdisplay_threadlist. Sorry. forumdisplay_thread is OK.

For forumdisplay_threadlist:

with:
<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>

Replace:
<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="15%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc">{$lang->replies}</a> {$orderarrow['replies']} / <a href="{$sorturl}&amp;sortby=views&amp;order=desc">{$lang->views}</a> {$orderarrow['views']}</strong></span></td>

Specifically, just replace this:
{$orderarrow['replies']}</strong></span></td>
        <td class="tcat" align="center" width="7%"><span class="smalltext"><strong>
with this
{$orderarrow['replies']} / 

and change the first 7% to 15%. Thats all.

[Image: i8dK5xC.png]
Thanks, that worked perfect.