Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: tennis4you - elokuu 31, 2011, 08:30:57 AP

Otsikko: Topics with new post bold?
Kirjoitti: tennis4you - elokuu 31, 2011, 08:30:57 AP
Any way to get the title of the post to be bold when there is a new post?  I think I had that function until I just upgraded to 2.0.  I searched the mods but did not see it.
Otsikko: Re: Topics with new post bold?
Kirjoitti: All Colours Sam - elokuu 31, 2011, 08:41:42 AP
where exactly do you wwant the tittles to become bold?
Otsikko: Re: Topics with new post bold?
Kirjoitti: tennis4you - elokuu 31, 2011, 09:11:45 AP
I guess in the forum boards themselves, if that makes sense?

So when you click on a board from the index the titles of the posts will be bold when there are new posts (Yeah, I know there is already a nice little orange tag that says "new").
Otsikko: Re: Topics with new post bold?
Kirjoitti: All Colours Sam - elokuu 31, 2011, 05:38:18 IP
OK, on your MessageIndex.template.php  find this:


', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] ? '</strong>' : '';



and replace with this:

', $topic['is_sticky'] || $topic['new'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], (!$context['can_approve_posts'] && !$topic['approved'] ? '&nbsp;<em>(' . $txt['awaiting_approval'] . ')</em>' : ''), '</span>', $topic['is_sticky'] || $topic['new'] ? '</strong>' : '';