Quote from: Porr on November 07, 2014, 09:14:58 AMSorry, my mistake. The code is:
Thx :-)
I have some problem with the code for question 1. My forum breaks. Maybe a small error. I am not at home so can not debug.
and awnser 2 works perfect
Code Select
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members'])){
echo '
<li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';
}
echo'