No none activated user count and shown »  Show posts from    to     

Icy Phoenix


Old Docs - No none activated user count and shown



TheSteffen [ Thu 11 Jan, 2007 19:03 ]
Post subject: No none activated user count and shown
Hello @all,

if you want that users whitch are not activated shouldn't be shown in
memberlist and shouldn't be count.

OPEN includes/functions.php
FIND
Code: [Hide] [Select]
case 'newestuser':
$sql = "SELECT user_id, username
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_id DESC
LIMIT 1";
break;

REPLACE WITH
Code: [Hide] [Select]
case 'newestuser':
$sql = "SELECT user_id, username
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
ORDER BY user_id DESC
LIMIT 1";
break;



OPEN memberlist.php
FIND
Code: [Hide] [Select]
$sql = "SELECT count(*) AS total
FROM " . USERS_TABLE . " u
WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
$where_sql
$alpha_where";

REPLACE WITH
Code: [Hide] [Select]
$sql = "SELECT count(*) AS total
FROM " . USERS_TABLE . " u
WHERE user_id <> " . ANONYMOUS . " AND user_active = 1
$where_sql
$alpha_where";


FIND
Code: [Hide] [Select]
$sql = "SELECT u.*, t.*
FROM " . USERS_TABLE . " u, " . THEMES_TABLE . " t
WHERE u.user_id <> " . ANONYMOUS . "
AND t.themes_id = u.user_style
$where_sql
$alpha_where
ORDER BY $order_by";

REPLACE WITH
Code: [Hide] [Select]
$sql = "SELECT u.*, t.*
FROM " . USERS_TABLE . " u, " . THEMES_TABLE . " t
WHERE u.user_id <> " . ANONYMOUS . " AND user_active = 1
AND t.themes_id = u.user_style
$where_sql
$alpha_where
ORDER BY $order_by";


@MG: Maybe it could be standard in IcyPhoenix.


tiolalu [ Thu 11 Jan, 2007 23:04 ]
Post subject: Re: No None Activated User Count And Shown
Hi! That rules! Great work TheSteffen! (Danke viele)

It's a little bit strange when you clean users and you see that number of users goes down .
Can it be a standard?


Zuker [ Thu 11 Jan, 2007 23:06 ]
Post subject: Re: No none activated user count and shown
Only mighty knows

ps: great work steffen


TheSteffen [ Thu 11 Jan, 2007 23:35 ]
Post subject: Re: No none activated user count and shown
It's not from me Zuker

It's from phpbb... but it was important for my site.

Great you like it


Mighty Gorgon [ Fri 12 Jan, 2007 01:42 ]
Post subject: Re: No none activated user count and shown
TheSteffen wrote: [View Post]
It's not from me Zuker

It's from phpbb... but it was important for my site.

Great you like it

He he he...

Steffen, create a poll... and when we will reach 25 votes casted we will take the decision that the major part of users did choose...

DemocrIcy Phoenix!


jz [ Fri 12 Jan, 2007 16:23 ]
Post subject: Re: No None Activated User Count And Shown
I have to say I like it...

I've been doing this manualy for the last two years, I think it would be a cool feature.

After all who needs non-Active Users


KugeLSichA [ Sun 14 Jan, 2007 22:36 ]
Post subject: Re: No none activated user count and shown
I have vote now and i voted for yes.

but if MG wants to add this, the admin should see ALL users.


KugeLSichA [ Sun 14 Jan, 2007 22:37 ]
Post subject: Re: No none activated user count and shown
btw who have voted before TheSteffen edited his post, please vote again


jz [ Mon 15 Jan, 2007 02:32 ]
Post subject: Re: No None Activated User Count And Shown
voted again


z3d0 [ Mon 15 Jan, 2007 07:30 ]
Post subject: Re: No none activated user count and shown
personally I don't care about the number of members


tiolalu [ Mon 15 Jan, 2007 10:31 ]
Post subject: Re: No None Activated User Count And Shown
Voted again .


Zuker [ Mon 15 Jan, 2007 17:03 ]
Post subject: Re: No none activated user count and shown
z3d0 wrote: [View Post]
personally I don't care about the number of members


me too


Tom [ Fri 19 Jan, 2007 09:08 ]
Post subject: Re: No none activated user count and shown
I like it, but it should be optional.
Like a ACP switch in user management: Show not activated users - yes / no


Mighty Gorgon [ Mon 22 Jan, 2007 01:52 ]
Post subject: Re: No none activated user count and shown
Ok... added with a switch...


TheSteffen [ Mon 22 Jan, 2007 02:13 ]
Post subject: Re: No none activated user count and shown
Thanks, you are the greatest




Powered by Icy Phoenix