MyBB Central

Full Version: Is this possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings,

Is it possible to do these modifications.

1. Remove and replace the thread ratings column (I know there is a tutorial to remove but I want to replace).

[Image: 49775687wf3.png]

2. Remove this "by XYZ users".

[Image: 23592383es8.png]

3. Replace the ratings column by thread starters like shown in the image below.

[Image: 38293768ls8.png]


TY
Is your forum live, with members online now?
Yeah you can do that via template edits. Look into the "Forum Display Templates" templates.

You'll probably need to change a few templates but this is doable without a plugin or file edits. It should all be there.
Give me a sec. i'll write it up for you. fairly simple really..
Go into Templates>ForumDisplay>Threadlist

Find:

Code:
    <tr>
        <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>
        {$ratingcol}
        <td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
        {$inlinemodcol}
    </tr>

Replace with

Code:
    <tr>
        <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']}</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" align="center" width="80"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
        <td class="tcat" align="right" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
        {$inlinemodcol}
    </tr>

Next go into ForumDisplay>Thread

Select all and replace with ---

Code:
<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}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
            </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>
    <td class="{$bgcolor}" align="center" valign="middle">
<div class="author smalltext">{$thread['profilelink']}</div>
    </td>    
    <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>

That should do it...
Cool beans, it worked Big Grin

But this thing is still there.

[Image: 23592383es8.png]

Any idea how to remove this?

TY.
Okies, guess I had to remove "<div class="author smalltext">{$thread['profilelink']}</div>"
Err. sorry, forgot to remove that. The code is updated.