Unread Posts Column

Started by ishy, March 02, 2011, 02:15:41 PM

Previous topic - Next topic

ishy

I'd like to change the text in the unread posts column on the main index. I want to make the font smaller, take out "on" and pull the today/date onto one line. Where do I fix this?


ishy


Danny S.

Are you using the default theme? If so, it will be under the following path:

Themes/default/Boardindex.template.php

You will need to adjust the following lines accordingly:

            /* 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 '
                  <p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
                  ', $txt['in'], ' ', $board['last_post']['link'], '<br />
                  ', $txt['on'], ' ', $board['last_post']['time'],'
                  </p>';



Also, to change the font size, you will need to adjust the following in your index.css file:

table.table_list tbody.content td.lastpost
{
   line-height: 1.3em;
   font-size: 85%;
   width: 24%;
}

Advertisement: