Simple Machines Community Forum
Customizing SMF => Graphics and Templates => Topic started by: halpern on April 21, 2006, 08:51:28 PM
-
When individuals make new posts, is there a way to have it so the post is in bold versus having the New icon next to the thread? Just curious. I know most other boards just have a bold setting for when there is a new post. TIA..
-
Did you figure this out? I would like to know also.
-
You can remove the new icon by finding this (or similar) and removing or commenting it out in Themes/Theme_Name/MessageIndex.template.php
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';
And to make new topics appear bold, edit the same file and change:
echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';
to:
echo '
', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] || ($topic['new'] && $context['user']['is_logged']) ? '</b>' : '';
Note, this is for the SMF 1.1 RC2 Core theme.
Edit: A few minutes after time posted - Fixed bug where it would show all topic links as bold for guests.
-
cant seem to find MessangeIndex.template.php in the theme folder but I can find the Index.template.php & the code is not there either.
-
cant seem to find MessangeIndex.template.php in the theme folder but I can find the Index.template.php & the code is not there either.
Go to the default...
The theme you are using certainly uses some of the default files..
-
karlpox, halpern, Jos, do any of you still need assistance with this? I am going to marked this as solved as I have posted a solution on how to do this and as N3lson pointed out if the file is not in your custom theme, you would want to edit it in the default theme directory.
Let me know if any of you need further assistance with this. :)