Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Pikkeltje on August 12, 2011, 04:33:58 AM

Title: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 04:33:58 AM
At the top of the board you get this:

Hey, *****, you have ** messages, 0 are new.
Total Time Spent Online: **** days, 21 hours and 23 minutes.
Show unread posts since last visit.
Show new replies to your posts.

Among these was a report that new members were registered (there are 2 members waiting), I get this message no longer with SMF 2.0. A still get a  notificationmail, that's all.

Does anyone know where I can find? Is it still on smf 2 ?
Title: Re: Reporting New Members
Post by: Rudolf Zundel on August 12, 2011, 08:36:25 AM
Admin -> Users -> Registration -> Settings

There you can find it.
Title: Re: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 09:56:42 AM
This is when the administrator wants to receive an email, but I would like to mention in the header of the board.
Title: Re: Reporting New Members
Post by: Illori on August 12, 2011, 10:05:24 AM
are you using a theme other then default?
Title: Re: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 10:12:41 AM
I use Nocturno
Title: Re: Reporting New Members
Post by: Illori on August 12, 2011, 10:14:08 AM
ok check your index.template.php file for that theme for some lines like this


// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<li class="notice">', $txt['maintain_mode_on'], '</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>';

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';

echo '
<li>', $context['current_time'], '</li>
</ul>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...


add the lines that you need/want to your theme.
Title: Re: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 11:17:51 AM
These lines are found in the index.template of default, not the theme. If I add one of the lines I get an error message on the board.

// 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>';

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';

echo '
<li>', $context['current_time'], '</li>
</ul>';
}
Title: Re: Reporting New Members
Post by: Illori on August 12, 2011, 11:18:51 AM
then you should post in the themes support thread to get further help from the author of the theme.
Title: Re: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 11:39:20 AM
Damn Nocturno is not listed
Title: Re: Reporting New Members
Post by: Illori on August 12, 2011, 11:41:00 AM
then find a support forum for that theme wherever you downloaded it from.
Title: Re: Reporting New Members
Post by: Pikkeltje on August 12, 2011, 12:54:55 PM
Thanks for your help