News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Aa New Damage problem

Started by ProwlingTiger, November 09, 2006, 04:38:26 PM

Previous topic - Next topic

ProwlingTiger

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.

m3talc0re

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 />';
}
The real hell is your life gone wrong.

ProwlingTiger

Awesome! Thanks millions, the skin is too great to give up!

Advertisement: