Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: ProwlingTiger on November 09, 2006, 04:38:26 PM

Title: Aa New Damage problem
Post by: ProwlingTiger on November 09, 2006, 04:38:26 PM
Okay has anyone else noticed when using the theme Aa New Damage, that it wont say "You have _ new messages?" My members never knew they had PMs until one day I noticed the skin wasnt working properly.
Title: Re: Aa New Damage problem
Post by: m3talc0re on November 10, 2006, 02:34:12 AM
Thanks for pointing this out, I guess it slipped by me, sorry. Here's the fix which I'll be posting in the theme's topic in the Themes Site childboard:

Open Index.template.php for this theme.
Find:

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

}


Add this after it:

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' : '' , '
<span class="smalltext"><a href="', $scripturl, '?action=pm">Private Messages</a>: ', $context['user']['unread_messages'], ' Unread, ', $context['user']['messages'], ' Total.</span><br />';
}
Title: Re: Aa New Damage problem
Post by: ProwlingTiger on November 10, 2006, 04:58:17 PM
Awesome! Thanks millions, the skin is too great to give up!