Not Solved [General] Only show approved members on board statistics
#10
Not Solved
(2018-08-24, 12:50 PM)Ashley1 Wrote: So half the problem can be solved by making patches as follows:

In index.php on line 77:

replaceĀ 
WHERE s.time > '".$timesearch."'

with
WHERE s.time > '".$timesearch."' AND u.usergroup != '5'

and in portal.php on line 242
replace
WHERE s.time>'$timesearch'

with:
WHERE s.time>'$timesearch' AND u.usergroup != '5'

This will exclude the awaiting activation users from who is online, on index.php and portal.php as long as the default group id of 5 is not changed.
That leaves "Please welcome our newest member, ...."

not sure where that is built:


	// Check who's the newest member.
	if(!$stats['lastusername'])
	{
		$newestmember = $lang->nobody;;
	}
	else
	{
		$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
	}
You should find that in language file ($l['stats_newestuser'] ) i.e.
/inc/languages/english/index.lang.php

Any love for me Wink

Cheers
Reply


Messages In This Thread
RE: Only show approved members on board statistics - by WallBB - 2018-08-24, 04:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)