News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Is there

Started by The Domain Shop, October 05, 2010, 03:39:13 PM

Previous topic - Next topic

The Domain Shop

is there a mod that will remove last post info on the right like in the image

Spoogs

might be best to ask the theme Author (I'm sure Shortie can help with that)

The Domain Shop

Ok just thought i would see if a mod was available first before bothering shortie :)

kat

If you look at the theme's BoardIndex.Template.php, you could remove these sections of code:

                <td class="catbg" valign="middle" align="center" width="22%">
                    '. $txt[22].'
                </td>




/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];


Not sure if that won't just leave a blank space on the right, though.

Matthew K.

Kat - It'd be different code if it's 2.0.

kat

This is true.

I wonder which version he's using?

Spoogs

2.0RC3 is what he's using.

The Domain Shop

Sorry guys yes its 2.0RC3 i'm using.

kat

Bugger.

Lemme go have a look at RC3, then...

kat

OK...

From your post, I can't tell if you're looking at the Board index, or within a category.

In the theme's BoardIndex.template.php, try removing this:

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</td>
<td class="lastpost">';


If the theme doesn't have a BoardIndex.template.php, you'll need to remove it from the file in the default theme's directory.

If that's not in the right place, as it were, let me know and we'll figure-out where you DO want this.

The Domain Shop

Thanks for that solved now ;)


Advertisement: