Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 

No none activated user count and shown

Do you want this in next IcyPhoenix release?

Yes, it's usefull
You can, I don't care about it.
No, because I don't like it.

View Results
Quote Download Post 
Post 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: [Download] [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: [Download] [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: [Download] [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: [Download] [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: [Download] [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: [Download] [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.
 



 
TheSteffenPM  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Quote Download Post 
Post 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?
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
Only mighty knows  :LOL:

ps: great work steffen ;)
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerPMWebsite  
Back to topPage bottom
Quote Download Post 
Post 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  :mricy:
 



 
TheSteffenPM  
Back to topPage bottom
Quote Download Post 
Post 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  :mricy:

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... :icy_lol_flag:

DemocrIcy Phoenix! :mri:
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonPME-mailWebsite  
Back to topPage bottom
Quote Download Post 
Post 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  :mricy:
 



 
jzPM  
Back to topPage bottom
Quote Download Post 
Post 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.  8)
 




____________
:love_firefox:
Play Games at GamesCampus!
 
KugeLSichAPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
BTW who have voted before TheSteffen edited his post, please vote again ;-)
 




____________
:love_firefox:
Play Games at GamesCampus!
 
KugeLSichAPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No None Activated User Count And Shown 
 
voted again  :mrorange:
 



 
jzPM  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
personally I don't care about the number of members  :mrgreen:
 



 
z3d0PMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No None Activated User Count And Shown 
 
Voted again :D .
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
z3d0 wrote: [View Post]
personally I don't care about the number of members  :mrgreen:


me too
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerPMWebsite  
Back to topPage bottom
Quote Download Post 
Post 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
 




____________
No support via PM or E-Mail!
FAP 3, yeah baby, yeah! :mrblue:
 
TomPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
Ok... added with a switch... :wink:
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonPME-mailWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: No none activated user count and shown 
 
Thanks, you are the greatest  :mricy:
 



 
TheSteffenPM  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events