News:

Wondering if this will always be free?  See why free is better.

Main Menu

[Tips&Tricks] Bold topics that have new posts?

Started by mark7144, March 07, 2006, 07:21:33 AM

Previous topic - Next topic

mark7144

Can someone tell me how to make it so when a topic has a new post the whole topic can be bolded?

For example, like this forum: http://forums.digitalpoint.com/

mark7144

#1
I've included how to do this below in order to help those who may search for something like this in the future:

Quote from: forsakenlad on March 10, 2006, 02:55:11 PM
@Mark:

In order to do it, open up your MessageIndex.template.php file and search for:

<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>';

And replace it with:

<span id="msg_' . $topic['first_post']['id'] . '"', $topic['new'] && $context['user']['is_logged'] ? ' style="font-weight: bold;"' : '', '>', $topic['first_post']['link'], '</span>';

Hope it helps.

That was for the SAF theme, I'm not sure whether that will work the same for other themes. Thanks to forsakenlad for telling me how to do this.

Mods, you may want to consider adding this thread to the Tips and Tricks section

kai920

Found this post helpful.  this should go into tips and tricks!

Advertisement: